I'm forwarding this to sage-support. On 4 April 2011 14:27, Apostolos Syropoulos <[email protected]> wrote: > > > Hello,
Hell Apostolos > I am trying to build sage on OpenSolaris and it fails. What version of OpenSolaris? What build? > I have installed in my system > gcc-4.5.2 and I have used the compiler to compile many-many things. I have > set the environment variables as follows: > > $ export SAGE_FORTRAN=gfortran-4.5.2; > ; export SAGE_PORT=yes I would advise you do not set SAGE64=yes, as 64-bit builds on Solaris or OpenSolaris are not very stable. > and the configure script complains that > > checking for /usr/lib/libgfortran.so... yes > configure: The environment variable > configure: SAGE_FORTRAN_LIB=/usr/lib/libgfortran.so > configure: is a not a 32-bit dynamic library. SAGE64 was > configure: not set to "yes", so you intend to build 32-bit. > configure: The environment variables SAGE_FORTRAN_LIB and/or SAGE64 > configure: are not set properly. > configure: error: Exiting, due to the incorrect configuration of environment > var > iables > ERROR: You do not have all of the prerequisites needed > to build Sage from source. See the errors above. Odd. > Note that > > $ ls -l /usr/lib/libgfortran.so > lrwxrwxrwx 1 root root 20 2010-12-21 20:05 /usr/lib/libgfortran.so -> > libgfortran.so.3.0.0 > $ ldd /usr/lib/libgfortran.so > libm.so.2 => /lib/libm.so.2 > libc.so.1 => /lib/libc.so.1 > libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 > $ file /usr/lib/libgfortran.so.3.0.0 > /usr/lib/libgfortran.so.3.0.0: ELF 32-bit LSB shared object, Intel 80386, > version 1, dynamically linked, not stripped > > So obviously the configuration script is buggy as it fails to detect that > this is indeed the correct > library. However, I have checked that Can you give me the output of $ command -v file The script checks if a library is 32-bit or 64-bit by greping the output of "file". Your version of 'file' is giving a very different output file to what I get: Could it be that you have the GNU version of "file" in your PATH before the Sun one? If so, a simple fix would be to copy the Sun one to somewhere else and put that "somewhere else" first in the PATH. IF that is the problem, I will change the script so it calls /usr/bin/file, and so not a GNU version. > $ export SAGE_FORTRAN_LIB=/usr/lib/libgfortran.so.3.0.0 > > does not help and I am getting exactly the same message. And of course > it fails to configure with > > $ export SAGE64=yes > > giving a similar error message. Can you please tell me what is going on? > > Regards, > A.S. > > > > ---------------------- > Apostolos Syropoulos > Xanthi, Greece > http://obelix.ee.duth.gr/~apostolo > http://asyropoulos.wordpress.com > http://hypercomputation.blogspot.com/ > -- 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 URL: http://www.sagemath.org
