cannot find -lcsage error when creating clone
After a fresh install of my Ubuntu 12.04 system I have trouble creating a clone (before the fresh install all worked without problems). The operation stops with the following error:
/usr/bin/ld: cannot find -lcsage
I can fix the error my manually copying libcsage.so into the ../devel/sage-test3/c_lib folder and the running
./sage -b test3
I have tried with different Sage binaries, the effect is always the same. This the complete output from the operation:
Now cloning the current Sage library branch...
hg clone sage sage-test3
Not trusting file /home/chris/Downloads/sage-5.3v/devel/sage-main/.hg/hgrc from untrusted user chris, group chris
updating to branch default
2725 files updated, 0 files merged, 0 files removed, 0 files unresolved
Copying over all Cython auto-generated .c, .cpp and .h files...
Copying over build directory...
Copying over all auto-generated reference manual .rst files...
Copying over documentation output...
Building sage-test3...
sage -b test3
----------------------------------------------------------
sage: Building and installing modified Sage library files.
Installing c_lib
gcc -o src/convert.os -c -fPIC -I/home/chris/Downloads/sage-5.3v/local/include -I/home/chris/Downloads/sage-5.3v/local/include/python2.7 -I/home/chris/Downloads/sage-5.3v/local/include/NTL -Iinclude src/convert.c
In file included from /home/chris/Downloads/sage-5.3v/local/include/python2.7/Python.h:8:0,
from include/interrupt.h:32,
from include/memory.h:23,
from /home/chris/Downloads/sage-5.3v/local/include/pari/pari.h:42,
from include/convert.h:12,
from src/convert.c:14:
/home/chris/Downloads/sage-5.3v/local/include/python2.7/pyconfig.h:1161:0: Warnung: »_POSIX_C_SOURCE« redefiniert [standardmäßig aktiviert]
/usr/include/features.h:215:0: Anmerkung: dies ist die Stelle der vorherigen Definition
gcc -o src/interrupt.os -c -fPIC -I/home/chris/Downloads/sage-5.3v/local/include -I/home/chris/Downloads/sage-5.3v/local/include/python2.7 -I/home/chris/Downloads/sage-5.3v/local/include/NTL -Iinclude src/interrupt.c
In file included from /home/chris/Downloads/sage-5.3v/local/include/python2.7/Python.h:8:0,
from include/stdsage.h:35,
from src/interrupt.c:33:
/home/chris/Downloads/sage-5.3v/local/include/python2.7/pyconfig.h:1161:0: Warnung: »_POSIX_C_SOURCE« redefiniert [standardmäßig aktiviert]
/usr/include/features.h:215:0: Anmerkung: dies ist die Stelle der vorherigen Definition
gcc -o src/memory.os -c -fPIC -I/home/chris/Downloads/sage-5.3v/local/include -I/home/chris/Downloads/sage-5.3v/local/include/python2.7 -I/home/chris/Downloads/sage-5.3v/local/include/NTL -Iinclude src/memory.c
gcc -o src/mpn_pylong.os -c -fPIC -I/home/chris/Downloads/sage-5.3v/local/include -I/home/chris/Downloads/sage-5.3v/local/include/python2.7 -I/home/chris/Downloads/sage-5.3v/local/include/NTL -Iinclude src/mpn_pylong.c
gcc -o src/mpz_pylong.os -c -fPIC -I/home/chris/Downloads/sage-5.3v/local/include -I/home/chris/Downloads/sage-5.3v/local/include/python2.7 -I/home/chris/Downloads/sage-5.3v/local/include/NTL -Iinclude src/mpz_pylong.c
gcc -o src/mpz_longlong.os ...