Page 1 of 1

Installing polymake on Ubuntu 14.04

Posted: 10 Feb 2015, 19:17
by Gilles Bonnet
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.

Re: Installing polymake on Ubuntu 14.04

Posted: 11 Feb 2015, 08:58
by gawrilow
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?

Re: Installing polymake on Ubuntu 14.04

Posted: 11 Feb 2015, 21:18
by Gilles Bonnet
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?

Re: Installing polymake on Ubuntu 14.04

Posted: 11 Feb 2015, 22:07
by gawrilow
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).

Re: Installing polymake on Ubuntu 14.04

Posted: 12 Feb 2015, 23:49
by Gilles Bonnet
Thanks!! everything seems to be working fine now. :D

Re: Installing polymake on Ubuntu 14.04

Posted: 07 Dec 2016, 00:13
by lkastner
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

Re: Installing polymake on Ubuntu 14.04

Posted: 07 Dec 2016, 08:26
by gawrilow
Do you see Ext.so anywhere, e.g. under build.XXX in the unpacked source tree? Just try an exhaustive `find'.

Re: Installing polymake on Ubuntu 14.04

Posted: 07 Dec 2016, 16:41
by lkastner
Thank you, we found the files and copied them to the right place. I should have thought of that myself.

Re: Installing polymake on Ubuntu 14.04

Posted: 07 Dec 2016, 17:03
by gawrilow
Any idea why they haven't been copied automatically during `make install'? Missing permissions?