Compiling Singular from source
Ken · Wed May 28, 2014 3:55 pm
Hello,
for many hours I have been trying to compile Singular 4 on Mac OS X 10.9.3 from source, this is how I tried:
1. clone recent git repository to /Applications/Singular
2. cd /Applications/Singular
2.0 ./autogen.sh
2.1 mkdir BUILD
2.2 cd BUILD
2.3 /Applications/Singular/configure --prefix=/Applications/Singular/BUILD/
2.3 make
2.4 make check
2.5 make install
Everything worked out fine before I tried to link & compile tt.cc from the standalone.test directory. First I read the HOWTO-libsingular because I guess the singular.uni-kl.de/Manual/modules.pdf is quite obsolete.
So I switched to /Applications/Singular and executed ./libsingular-config.in --libs and ... --cflags and typed in g++ [output from the first command] -o tt tt.cc [output from the second command] but since the values from entering the two commands already look strange, it did not work out:
clang: error: no such file or directory: '@USEPPROCSDYNAMICLD@'
clang: error: no such file or directory: '@SINGULAR_CFLAGS@'
clang: error: no such file or directory: '@FLINT_CFLAGS@'
clang: error: no such file or directory: '@NTL_CFLAGS@'
clang: error: no such file or directory: '@GMP_CFLAGS@'
Then reading the "obsolete" manual I tried to fix the arguments for g++ in the way the compiler finds its libraries:
g++ -I/Applications/Singular -I/Applications/Singular/BUILD/include -I/Applications/Singular/BUILD/include/singular -DSING_NDEBUG -DOM_NDEBUG -o tt tt.cc
But then an error message came up like this, I guess it means something is working on 64 bit used to work with 32bit systems...:
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
So far I do not know how to proceed any further... I will be happy for any advice helping me to fix this problem.
Best regards.
for many hours I have been trying to compile Singular 4 on Mac OS X 10.9.3 from source, this is how I tried:
1. clone recent git repository to /Applications/Singular
2. cd /Applications/Singular
2.0 ./autogen.sh
2.1 mkdir BUILD
2.2 cd BUILD
2.3 /Applications/Singular/configure --prefix=/Applications/Singular/BUILD/
2.3 make
2.4 make check
2.5 make install
Everything worked out fine before I tried to link & compile tt.cc from the standalone.test directory. First I read the HOWTO-libsingular because I guess the singular.uni-kl.de/Manual/modules.pdf is quite obsolete.
So I switched to /Applications/Singular and executed ./libsingular-config.in --libs and ... --cflags and typed in g++ [output from the first command] -o tt tt.cc [output from the second command] but since the values from entering the two commands already look strange, it did not work out:
clang: error: no such file or directory: '@USEPPROCSDYNAMICLD@'
clang: error: no such file or directory: '@SINGULAR_CFLAGS@'
clang: error: no such file or directory: '@FLINT_CFLAGS@'
clang: error: no such file or directory: '@NTL_CFLAGS@'
clang: error: no such file or directory: '@GMP_CFLAGS@'
Then reading the "obsolete" manual I tried to fix the arguments for g++ in the way the compiler finds its libraries:
g++ -I/Applications/Singular -I/Applications/Singular/BUILD/include -I/Applications/Singular/BUILD/include/singular -DSING_NDEBUG -DOM_NDEBUG -o tt tt.cc
But then an error message came up like this, I guess it means something is working on 64 bit used to work with 32bit systems...:
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
So far I do not know how to proceed any further... I will be happy for any advice helping me to fix this problem.
Best regards.