## 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: 331
Joined: 25 Dec 2010, 17:40

### Re: Installing polymake on Ubuntu 14.04

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

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: 331
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: 331
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: 331
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?
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.19845648109912872, "perplexity": 12220.103343419249}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2019-18/segments/1555578548241.22/warc/CC-MAIN-20190422075601-20190422101254-00057.warc.gz"}