Hi,
I've just tried to install SAGE 2.7 from the source. The computer is
a dual Xeon (64-bit) Dell running Fedora 6.
It seems that the problem is Fortran.
It seems that system has gfortran installed:
boole[/scratch/local/sage-2.7]$ locate gfortran
/scratch/local/sage-2.7/spkg/installed/gfortran-20070719
/scratch/local/sage-2.7/spkg/standard/gfortran-20070719.spkg
/usr/bin/gfortran
/usr/lib/gcc/x86_64-redhat-linux/4.1.1/libgfortran.a
/usr/lib/gcc/x86_64-redhat-linux/4.1.1/libgfortran.so
/usr/lib/gcc/x86_64-redhat-linux/4.1.1/libgfortranbegin.a
/usr/lib/gcc/x86_64-redhat-linux/4.1.1/32/libgfortran.a
/usr/lib/gcc/x86_64-redhat-linux/4.1.1/32/libgfortran.so
/usr/lib/gcc/x86_64-redhat-linux/4.1.1/32/libgfortranbegin.a
/usr/lib64/libgfortran.so.1
/usr/lib64/libgfortran.so.1.0.0
/usr/share/doc/gcc-gfortran-4.1.1
/usr/share/doc/gcc-gfortran-4.1.1/ChangeLog.bz2
/usr/share/doc/gcc-gfortran-4.1.1/ChangeLog.gomp.bz2
/usr/share/doc/gcc-gfortran-4.1.1/ChangeLog.libgfortran.bz2
/usr/share/info/gfortran.info.gz
/usr/share/man/man1/gfortran.1.gz
I've got (in the log):
-----------
checking for gfortran... gfortran
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether gfortran accepts -g... yes
....
checking for gfortran option to produce PIC... -fPIC
checking if gfortran PIC flag -fPIC works... yes
checking if gfortran static flag -static works... yes
checking if gfortran supports -c -o file.o... yes
checking whether the gfortran linker (ld -m elf_x86_64) supports
shared libraries... yes
------------
so, it seems that the installer found gfortran. On the other hand, it
seems that SAGE install its own version later:
------------
Deleting directories from past builds of previous/current versions of
gfortran-20070719
Extracting package
/scratch/local/sage-2.7/spkg/standard/gfortran-20070719.spkg ...
-rw-r--r-- 1 finotti users 1559 Jul 20 00:59
/scratch/local/sage-2.7/spkg/standard/gfortran-20070719.spkg
gfortran-20070719/
gfortran-20070719/g77
gfortran-20070719/README.txt
gfortran-20070719/spkg-install
Finished extraction
...
Successfully installed gfortran-20070719
****************************************************
Host system
uname -a:
Linux boole.math.utk.edu 2.6.20-1.2962.fc6 #1 SMP Tue Jun 19 18:50:05
EDT 2007 x86_64 x86_64 x86_64 GNU/Linux
------------
Then it tries to install f2c-1, but fails:
------------
sage-spkg installed/f2c-1 2>&1
f2c-1
Machine:
Linux boole.math.utk.edu 2.6.20-1.2962.fc6 #1 SMP Tue Jun 19 18:50:05
EDT 2007 x86_64 x86_64 x86_64 GNU/Linux
Deleting directories from past builds of previous/current versions of f2c-1
Extracting package /scratch/local/sage-2.7/spkg/standard/f2c-1.spkg ...
...
ranlib libf2c.a
make[2]: Leaving directory `/scratch/local/sage-2.7/spkg/build/f2c-1/src/libf2c'
Unable to find libgfortran.a. Please install it in /usr/lib/libgfortran.a
^^^^^^^^^^^^^^^^^^^^^^
------------
This is at the very end of the output of the installation.
If I triy to start SAGE:
boole[/scratch/local/sage-2.7]$ ./sage
----------------------------------------------------------------------
| SAGE Version 2.7, Release Date: 2007-07-19 |
| Type notebook() for the GUI, and license() for information. |
----------------------------------------------------------------------
---------------------------------------------------------------------------
<type 'exceptions.ImportError'> Traceback (most recent call last)
/scratch/local/sage-2.7/local/bin/<string> in <module>()
<type 'exceptions.ImportError'>: No module named sage.misc.preparser_ipython
WARNING: Failure executing code: 'import sage.misc.preparser_ipython;
sage.misc.preparser_ipython.magma_colon_equals=True'
---------------------------------------------------------------------------
<type 'exceptions.ImportError'> Traceback (most recent call last)
/scratch/local/sage-2.7/local/bin/<ipython console> in <module>()
<type 'exceptions.ImportError'>: No module named sage.misc.misc
<ERROR: name 'sage_prompt' is not defined>
I've checked $SAGEHOME/spkg/build/f2c-1/spkg-install, and it seems
that I could copy
"/usr/lib/gcc/x86_64-redhat-linux/4.1.1/libgfortran.a" to
"$SAGE_ROOT/lib/libgfortran.a", but I thought I should check first and
report a potential bug.
Thanks,
Luis
P.S.:
* Could I use the precompiled? (The README.txt says "This binary will
*only* work on AMD 64-bit computers", but I think 64-bit Xeons use the
AMD64 kernel, so I wasn't sure... )
* The README.txt in $SAGEROOT says
"If you have a machine with n processors, say,
type
export MAKE="make -j4""
Shoud it say "If you have a machine with *4* processors"?
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~----------~----~----~----~------~----~------~--~---