Alex Ghitza wrote:
On Sun, 21 Feb 2010 19:51:34 +1100, Minh Nguyen <nguyenmi...@gmail.com> wrote:
Hi Alex,
Did you get a message like this when you do "./sage"?
[snippety snip]
ImportError: ld.so.1: python: fatal: relocation error: file
/scratch/mvngu/sage-4.3.0.1/local/lib//libgmpxx.so.3: symbol
_ZNKSt5ctypeIcE13_M_widen_initEv: referenced symbol not found
Error importing ipy_profile_sage - perhaps you should run %upgrade?
WARNING: Loading of ipy_profile_sage failed.
Yep, that's exactly it.
This might be related to how/which GCC version you source on t2.math.
Here is how I source the GCC version I use on t2.math in my .profile:
if [ `uname -s` = "SunOS" ]; then
# Sun linker/asembler
. /usr/local/gcc-4.4.1-sun-linker/gcc441sun
fi
And this did indeed fix it for me. Thanks Minh and David!
I think once again, it shows that gcc's C, C++ and Fortran libraries should all
be included with Sage. Otherwise, the build relies on the end user having a
similar setup. This is not specific to Solaris, but one can probably get away
with not doing this more on Linux, as generally Linux will come with some
semi-recent compiler. But if someone does not have the compiler installed, or
has an old version, it is quite possible the binaries will break on Linux too.
Dave
--
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