On Feb 5, 12:26 pm, mrotsliah <[email protected]> wrote:

Hi,

> The machine is a server, and I am now the one that takes care of it.
> I kind of just got handed the job.

Ok, I used to maintain some HPUX 10 systems and it was a scary
experience to touch anything since it just broke existing stuff, so I
can see a case of keeping an old system running, i.e. "if it ain't
broken don't fix it" to "never change a running system". :)

>  A few users wanted an updated
> version of Sage for research purposes.  I can look into updating gcc.
> So, if I update gcc, do you think there will be other problems?

Nope. I would suggest to pick either gcc 3.4.6 or gcc 4.2.3 or higher.
Install with some prefix, i.e. --prefix=/usr/local/gcc-3.4.6. Given
the age of the distro you are using I would go with gcc 3.4.6 since
the newer gcc 4.2.x and higher might require a more current glibc than
you have. You need at least C and C++ support. Then before building
Sage set PATH and LD_LIBRARY_PATH to pick up the gcc in $PREFIX, i.e.
do not set CC and CXX to point to absolute paths of gcc and g++. Then
building Sage will work with high probability, i.e. I have done the
above on at least a dozen different boxen that had crappy gcc
releases. You need to change the sage script then to set PATH and
LD_LIBRARY_PATH so that if a user starts sage it automatically picks
the right gcc and libstdc++.so runtime. Not doing that will make sage
fail to start or in some cases might introduce subtle crashes. And
from experience not having to user to remember to source some env
makes it much easier on you when you have to debug mysterious "Sage
segfaulted" calls for help. :)

And advanced scenario is to install gcc into $SAGE_ROOT/local before
building Sage and building gcc with C, C++ and gfortran support. Then
you need to set SAGE_FORTRAN so that you don't use the binary g95.
That way you don't need to set PATH or LD_LIBRARY_PATH. There is also
a toolchain.sh option, but that is pretty much undocumented and hence
I would not recommend to use it yet.

Let us know if you run into any trouble or have more questions.

> Thanks
>

Cheers,

Michael
--~--~---------~--~----~------------~-------~--~----~
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://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to