Ask Your Question
0

cannot find -lcsage error when creating clone

asked 2012-10-28 11:49:32 -0500

ChrisK gravatar image

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 ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2012-10-28 22:38:59 -0500

ChrisK gravatar image

After a night of fiddling aroung I think I have solved the problem myself: The 'g++' package seemed to have been missing. At least after I installed it the problem disappeared.

Chris

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2012-10-28 11:49:32 -0500

Seen: 164 times

Last updated: Oct 28 '12