Tips for installing 2.12 from source on Ubuntu 12.04/64 bits

Discussions on installation issues go here.
julian
Developer
Posts: 20
Joined: 08 Nov 2011, 15:55

Tips for installing 2.12 from source on Ubuntu 12.04/64 bits

Postby julian » 18 May 2012, 13:51

In order to compile from source on Ubuntu 12.04 / 64 bits (actually, Mint 13RC), I ran into some problems because various files couldn't be found. On the other hand, I also installed from source on Mint 13RC / 32 bits, and this worked flawlessly.

I was able to fix the 64bit-problem by creating the following symbolic links in /usr/lib:

Code: Select all

sudo ln -s /usr/local/lib/libgmpxx.so.4 /usr/lib/libgmpxx.so.4 sudo ln -s /usr/lib/gcc/x86_64-linux-gnu/crt1.o /usr/lib/crt1.o sudo ln -s /usr/lib/gcc/x86_64-linux-gnu/crti.o /usr/lib/crti.o sudo ln -s /usr/lib/gcc/x86_64-linux-gnu/crtn.o /usr/lib/crtn.o sudo ln -s /usr/lib/gcc/x86_64-linux-gnu/4.6/crtbegin.o /usr/lib/crtbegin.o sudo ln -s /usr/lib/gcc/x86_64-linux-gnu/4.6/crtbeginS.o /usr/lib/crtbeginS.o sudo ln -s /usr/lib/gcc/x86_64-linux-gnu/4.6/crtend.o /usr/lib/crtend.o sudo ln -s /usr/lib/gcc/x86_64-linux-gnu/4.6/crtendS.o /usr/lib/crtendS.o sudo ln -s /usr/lib/gcc/x86_64-linux-gnu/4.6/libgcc_s.so /usr/lib/libgcc_s.so sudo ln -s /usr/lib/gcc/x86_64-linux-gnu/4.6/libgcc.a /usr/lib/libgcc.a
As far as I understand, the problem arises because Canonical uses these paths for their multiarchitecture installations (and they persist even if you only use one single architecture), but debian hasn't yet figured out a good way to handle that generally. I admit that my solution isn't very clean, but I couldn't get ./configure to work in any other way. One thing I tried was to say

Code: Select all

./configure LDFLAGS=-L/usr/lib/gcc/x86_64-linux-gnu/4.6/
but this only solved the problem of not finding libgcc and libgcc_s , however it didn't solve the problem of not finding, e.g., crtbegin.o .

I hope that this helps somebody, and would appreciate further feedback.
Best,
Julian

blorenz
Developer
Posts: 139
Joined: 10 Jan 2011, 17:21

Re: Tips for installing 2.12 from source on Ubuntu 12.04/64

Postby blorenz » 22 May 2012, 14:39

That should not be necessary.
I just installed the list of packages recommended for 11.10 on the installation page, configure went fine and it is compiling without any errors so far. (ubuntu 12.04 64bit desktop live cd)
Perhaps you are missing g++ . Only gcc is installed by default.

julian
Developer
Posts: 20
Joined: 08 Nov 2011, 15:55

Re: Tips for installing 2.12 from source on Ubuntu 12.04/64

Postby julian » 22 May 2012, 14:54

No, I actually had installed g++ (and compiled boost, gmp, mpfr etc. myself) prior to trying to install polymake. But I didn't compile gcc/g++ myself, instead I used the version that comes with the OS because that's supposed to be adapted to the Ubuntu quirks.

It might be just that Mint 13RC http://linuxmint.com is screwed up w.r.t. Ubuntu, even though they derive from them.

Best,
Julian


Return to “Installing polymake”