Hello,
I am trying to install Sage on my PC. I am using Suse 12.2 (i586). I tried to install sage from the source and got an error message about installing pynac. I am not very good at linux so i did not try much things. I hope that someone can help me. I am copying the error log here:
Extracting package /home/ogul/sage-5.3/spkg/standard/pynac-0.2.4.spkg
-rw-r--r-- 1 ogul users 529090 May 23 12:30 /home/ogul/sage-5.3/spkg/standard/pynac-0.2.4.spkg
Finished extraction
****************************************************
Host system:
Linux
linux-33wm.coastal.edu 3.4.6-2.10-desktop #1 SMP PREEMPT Thu Jul 26 09:36:26 UTC 2012 (641c197) i686 i686 i386 GNU/Linux
****************************************************
C compiler: gcc
C compiler version:
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i586-suse-linux/4.7/lto-wrapper
Target: i586-suse-linux
Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib --libexecdir=/usr/lib --enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.7 --enable-ssp --disable-libssp --disable-libitm --disable-plugin --with-bugurl=
http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux' --disable-libgcj --disable-libmudflap --with-slibdir=/lib --with-system-zlib --enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-version-specific-runtime-libs --enable-linker-build-id --program-suffix=-4.7 --enable-linux-futex --without-system-libunwind --with-arch-32=i586 --with-tune=generic --build=i586-suse-linux
Thread model: posix
gcc version 4.7.1 20120723 [gcc-4_7-branch revision 189773] (SUSE Linux)
****************************************************
Starting build...
Running build_pynac...
configure: loading site script /usr/share/site/i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for python... /home/ogul/sage-5.3/local/bin/python
checking for python version... 2.7
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.7/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python2.7/site-packages
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/home/ogul/sage-5.3/spkg/build/pynac-0.2.4/src':
configure: error: C compiler cannot create executables
See `config.log' for more details
make[2]: Entering directory `/home/ogul/sage-5.3/spkg/build/pynac-0.2.4/src'
make[2]: *** No targets specified and no makefile found. Stop.
make[2]: Leaving directory `/home/ogul/sage-5.3/spkg/build/pynac-0.2.4/src'
Error building pynac.
real 0m1.472s
user 0m0.219s
sys 0m0.176s
************************************************************************
Error installing package pynac-0.2.4
************************************************************************
Please email sage-devel (
http://groups.google.com/group/sage-devel)
explaining the problem and including the relevant part of the log file
/home/ogul/sage-5.3/spkg/logs/pynac-0.2.4.log
Describe your computer, operating system, etc.
If you want to try to fix the problem yourself, *don't* just cd to
/home/ogul/sage-5.3/spkg/build/pynac-0.2.4 and type 'make' or whatever is appropriate.
Instead, the following commands setup all environment variables
correctly and load a subshell for you to debug the error:
(cd '/home/ogul/sage-5.3/spkg/build/pynac-0.2.4' && '/home/ogul/sage-5.3/sage' -sh)
When you are done debugging, you can type "exit" to leave the subshell.
************************************************************************
make[1]: *** [installed/pynac-0.2.4] Error 1
make[1]: Leaving directory `/home/ogul/sage-5.3/spkg'
real 92m19.950s
user 81m13.599s
sys 8m49.809s
Error building Sage.
make: *** [build] Error 1
ogul@linux-33wm:~/sage-5.3> grep -li "^Error" spkg/logs/*
spkg/logs/pynac-0.2.4.log
ogul@linux-33wm:~/sage-5.3> grep -li "^Error installing" spkg/logs/*
spkg/logs/pynac-0.2.4.log
The file pynac-0.2.4.log has the following:
pynac-0.2.4
====================================================
Extracting package /home/ogul/sage-5.3/spkg/standard/pynac-0.2.4.spkg
-rw-r--r-- 1 ogul users 529090 May 23 12:30 /home/ogul/sage-5.3/spkg/standard/pynac-0.2.4.spkg
Finished extraction
****************************************************
Host system:
Linux
linux-33wm.coastal.edu 3.4.6-2.10-desktop #1 SMP PREEMPT Thu Jul 26 09:36:26 UTC 2012 (641c197) i686 i686 i386 GNU/Linux
****************************************************
C compiler: gcc
C compiler version:
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i586-suse-linux/4.7/lto-wrapper
Target: i586-suse-linux
Configured with: ../configure --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --libdir=/usr/lib --libexecdir=/usr/lib --enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.7 --enable-ssp --disable-libssp --disable-libitm --disable-plugin --with-bugurl=
http://bugs.opensuse.org/ --with-pkgversion='SUSE Linux' --disable-libgcj --disable-libmudflap --with-slibdir=/lib --with-system-zlib --enable-__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch --enable-version-specific-runtime-libs --enable-linker-build-id --program-suffix=-4.7 --enable-linux-futex --without-system-libunwind --with-arch-32=i586 --with-tune=generic --build=i586-suse-linux
Thread model: posix
gcc version 4.7.1 20120723 [gcc-4_7-branch revision 189773] (SUSE Linux)
****************************************************
Starting build...
Running build_pynac...
configure: loading site script /usr/share/site/i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for python... /home/ogul/sage-5.3/local/bin/python
checking for python version... 2.7
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.7/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python2.7/site-packages
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/home/ogul/sage-5.3/spkg/build/pynac-0.2.4/src':
configure: error: C compiler cannot create executables
See `config.log' for more details
make[2]: Entering directory `/home/ogul/sage-5.3/spkg/build/pynac-0.2.4/src'
make[2]: *** No targets specified and no makefile found. Stop.
make[2]: Leaving directory `/home/ogul/sage-5.3/spkg/build/pynac-0.2.4/src'
Error building pynac.
real 0m1.472s
user 0m0.219s
sys 0m0.176s
************************************************************************
Error installing package pynac-0.2.4
************************************************************************
Please email sage-devel (
http://groups.google.com/group/sage-devel)
explaining the problem and including the relevant part of the log file
/home/ogul/sage-5.3/spkg/logs/pynac-0.2.4.log
Describe your computer, operating system, etc.
If you want to try to fix the problem yourself, *don't* just cd to
/home/ogul/sage-5.3/spkg/build/pynac-0.2.4 and type 'make' or whatever is appropriate.
Instead, the following commands setup all environment variables
correctly and load a subshell for you to debug the error:
(cd '/home/ogul/sage-5.3/spkg/build/pynac-0.2.4' && '/home/ogul/sage-5.3/sage' -sh)
When you are done debugging, you can type "exit" to leave the subshell.
************************************************************************
thanks again.