Hi Alex,

On Sun, Feb 21, 2010 at 4:16 PM, Alex Ghitza <aghi...@gmail.com> wrote:

<SNIP>

> I could not use the binary
> posted by Minh

Did you get a message like this when you do "./sage"?

mv...@t2 sage-4.3.0.1]$ ./sage
----------------------------------------------------------------------
| Sage Version 4.3.0.1, Release Date: 2010-01-28                     |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------
The Sage install tree may have moved.
Regenerating Python.pyo and .pyc files that hardcode the install PATH
(please wait at most a few minutes)...
Do not interrupt this.
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)

/scratch/mvngu/sage-4.3.0.1/local/lib/python2.6/site-packages/IPython/ipmaker.py
in force_import(modname)
     64         reload(sys.modules[modname])
     65     else:
---> 66         __import__(modname)
     67
     68

/scratch/mvngu/sage-4.3.0.1/local/bin/ipy_profile_sage.py in <module>()
      5     preparser(True)
      6
----> 7     import sage.all_cmdline
      8     sage.all_cmdline._init_cmdline(globals())
      9

/scratch/mvngu/sage-4.3.0.1/local/lib/python2.6/site-packages/sage/all_cmdline.py
in <module>()
     12 try:
     13
---> 14     from sage.all import *
     15     from sage.calculus.predefined import x
     16     preparser(on=True)

/scratch/mvngu/sage-4.3.0.1/local/lib/python2.6/site-packages/sage/all.py
in <module>()
     66 from sage.misc.sh import sh
     67
---> 68 from sage.libs.all       import *
     69
     70 get_sigs()

/scratch/mvngu/sage-4.3.0.1/local/lib/python2.6/site-packages/sage/libs/all.py
in <module>()
      1 from sage.rings.memory import pmem_malloc
      2
----> 3 import sage.libs.ntl.all  as ntl
      4
      5 #import sage.libs.cf.cf as cf


/scratch/mvngu/sage-4.3.0.1/local/lib/python2.6/site-packages/sage/libs/ntl/all.py
in <module>()
     24 
#*****************************************************************************

     25
---> 26 from sage.libs.ntl.ntl_ZZ import (
     27                  ntl_setSeed, \
     28                  ntl_ZZ as ZZ,

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.


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

Without the above conditional in your .profile, you might get the
above error message.

-- 
Regards
Minh Van Nguyen

-- 
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