Tips for installing 2.12 from source on Ubuntu 12.04/64 bits
Posted: 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:
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
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
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
Code: Select all
./configure LDFLAGS=-L/usr/lib/gcc/x86_64-linux-gnu/4.6/
I hope that this helps somebody, and would appreciate further feedback.
Best,
Julian