On Sun, 03 Jan 2010 22:52:46 +0000, "Dr. David Kirkby" 
<david.kir...@onetel.net> wrote:
> I note in a recent update to the top level README.txt, Minh has better 
> documented what SAGE_FORTRAN does - it is not as obvious as one might think.
> 
> I believe there is something else missing, though I'm only 99% sure of this.
> 
> The example shows:
> 
> export SAGE_FORTRAN=/exact/path/to/gfortran
> export SAGE_FORTRAN_LIB=/path/to/fortran/libs/libgfortran.so
> 
> I believe if one is making a 64-bit build, then the path will be different, 
> and 
> perhaps
> 
> SAGE_FORTRAN_LIB=/path/to/fortran/libs/sparcv9/libgfortran.so
> (SPARC )
> 
> SAGE_FORTRAN_LIB=/path/to/fortran/libs/amd64/libgfortran.so
> (Solaris x86/x64)
> 
> I'm not 100% sure of these, but when I tried a 64-bit build on Open Solaris 
> (x86), a 32-bit version of libgfortran.so was copied to $SAGE_ROOT/local/lib, 
> which I'm pretty sure would screw things up.
> 
> Normally Solaris knows the 64-bit versions of libraries are in 'sparcv9' or 
> 'amd64' directories, but in this case, I believe the fact we are specifying 
> an 
> absolute path to a file, we should specify the 64-bit library on 64-bit 
> builds.
> 

This is not the case in Archlinux.  I have a 32-bit machine and a 64-bit
machine, and for both of them the fortran library is at

/usr/lib/libgfortran.so


Also, I think that /path/to/fortran/libs/ is making a (maybe too
subtle?) suggestion that the user check where the appropriate fortran
libraries are on his/her own system.  Maybe this point should just be
emphasised in the README.txt (e.g. something along the lines "it is
important to ensure that you give the path to the correct fortran
libraries").


Best,
Alex


-- 
Alex Ghitza -- Lecturer in Mathematics -- The University of Melbourne
-- Australia -- http://www.ms.unimelb.edu.au/~aghitza/

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to