## Installing polymake on Ubuntu 14.04

Discussions on installation issues go here.

Moderator: Moderators

Gilles Bonnet
Posts: 5
Joined: 10 Feb 2015, 19:02

### Installing polymake on Ubuntu 14.04

Hello.
First, thanks to the development team of Polymake for their work. I am not an expert of computer science, so please forgive me if I am asking stupid questions or forget to mention important details because I don't know if they are relevant.
I have tried to install Polymake on my laptop. I'm using Ubuntu 14.04.
I followed the instructions given on the "how to install" page.
Now, when I tried to run Polymake, I got the following message:

Code: Select all

Can't locate loadable object for module Polymake::Ext in @INC (@INC contains: /usr/local/share/polymake/perllib /usr/local/lib/polymake/perlx /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at /usr/local/share/polymake/perllib/Polymake/Namespaces.pm line 18. Compilation failed in require at /usr/local/share/polymake/perllib/Polymake/Namespaces.pm line 18. BEGIN failed--compilation aborted at /usr/local/share/polymake/perllib/Polymake/Namespaces.pm line 18. Compilation failed in require at /usr/local/share/polymake/perllib/Polymake.pm line 27. BEGIN failed--compilation aborted at /usr/local/share/polymake/perllib/Polymake.pm line 27. Compilation failed in require at /usr/local/bin/polymake line 163. BEGIN failed--compilation aborted at /usr/local/bin/polymake line 163.
I have no idea what to do now. Any help is welcome.

gawrilow
Main Author
Posts: 330
Joined: 25 Dec 2010, 17:40

### Re: Installing polymake on Ubuntu 14.04

Please try

Code: Select all

find /usr/local/lib/polymake -name Ext.so
If nothing is found: your make install of polymake must have failed; please retry and watch out for suspicious messages.

If something is found: the path must contain the perl version number and your machine architecture. Do they still correspond to your current perl version (seems to be 5.18.2)? Consult perl -V when in doubt. Have you occasionally upgraded the system or the perl interpreter package since you've built polymake?

Gilles Bonnet
Posts: 5
Joined: 10 Feb 2015, 19:02

### Re: Installing polymake on Ubuntu 14.04

Thanks for your quick answer.
It found this path:

Code: Select all

/usr/local/lib/polymake/perlx/5.14.2/x86_64-linux-gnu-thread-multi/auto/Polymake/Ext/Ext.so 
The Perl version mentioned here is 5.14.2. But the Perl version on my computer is 5.18.2.
When I tried to install it this weekend I checked before that everything was updated (included Perl). But I actually did a first attempt to install polymake 6 months ago. Maybe the problem comes from this previous old installation attempt.
What should I do now?

gawrilow
Main Author
Posts: 330
Joined: 25 Dec 2010, 17:40

### Re: Installing polymake on Ubuntu 14.04

The easiest (albeit not the quickest) way out of the mess is to delete everything under /usr/local/{lib,share}/polymake as well as /usr/local/bin/polymake*, then repeat ./configure; make; make install in the current source tree (optimally the youngest perpetuum beta snapshot, the last release would also do).

Gilles Bonnet
Posts: 5
Joined: 10 Feb 2015, 19:02

### Re: Installing polymake on Ubuntu 14.04

Thanks!! everything seems to be working fine now.

lkastner
Developer
Posts: 8
Joined: 27 May 2012, 23:35

### Re: Installing polymake on Ubuntu 14.04

Sorry for reviewing this old thread, but we are having the exact same problem. We are on Ubuntu 14.04, but on a Windows10 machine, this is their new feature, not a virtual machine. We can build and install polymake, but the Ext.so is missing. No obvious errors during building or installation though. The folders are created correctly. We have tried deleting everything and reinstalling multiple times. This is with the 3.0r2 version from the website. Any ideas?

Thanks,
Lars

gawrilow
Main Author
Posts: 330
Joined: 25 Dec 2010, 17:40

### Re: Installing polymake on Ubuntu 14.04

Do you see Ext.so anywhere, e.g. under build.XXX in the unpacked source tree? Just try an exhaustive find'.

lkastner
Developer
Posts: 8
Joined: 27 May 2012, 23:35

### Re: Installing polymake on Ubuntu 14.04

Thank you, we found the files and copied them to the right place. I should have thought of that myself.

gawrilow
Main Author
Posts: 330
Joined: 25 Dec 2010, 17:40

### Re: Installing polymake on Ubuntu 14.04

Any idea why they haven't been copied automatically during make install'? Missing permissions?

Return to “Installing polymake”