[sage-support] Re: sage 4.3.4 or 4.3.5 on solaris sparc

2010-04-19 Thread adrian
IT WORKED!!!

I just heard from the systems administrator, and the problem was,
indeed, the path to the gcc libraries.  Everything works so far.

Thank you very much for your patience and prompt answer.

-Adrian.
On Apr 2, 1:58 pm, Dr. David Kirkby david.kir...@onetel.net wrote:
 adrian wrote:
  We did not compile sage, but used the one that was pre-compiled.  The
  error is
  ---
  ImportError: ld.so.1: python: fatal: relocation error: file /opt/local/
  src/sage-4.3.4-Solaris-sun4u-SunOS/local/lib//libntl.so: symbol
  _ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_i:
  referenced symbol not found
  WARNING: Failure executing code: 'import sage.misc.preparser_ipython;
  sage.misc.preparser_ipython.magma_colon_equals=True'
  ---

  We did put the paths for some libraries, and tried to make it work.
  Interestingly, it can compute 1+2, but not much more than that.

  This is what the output says:

 A few thoughts on this.

 1) What version of 'tar' is first in your path? If it is the Sun version of 
 tar,
 it is incapable of extracting the tar file correctly.

 If so, try this, which will use a GNU version of tar.

 $ /usr/sfw/bin/gtar xfz sage-4.3.4-Solaris-sun4u-SunOS.tar.gz

 2) Can you try

 $ rm -rf $HOME/.sage

 which will clear out any debris which might be left from previous failed

 When you try to run sage for the first time, you should get a message about
 rebuilding parts of sage,

 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.

 and I believe it calls 'ranlib', 'ar' or similar. If /usr/ccs/bin is not in 
 the
 path, it will not find them which might result in a corrupted installation.

 If these are not found, it would be sensible that we report an error and exit,
 but I don't think that happens.

 3) If that does not work, can you try the binary from this URL - use p7zip to
 decompress it, which is standard with recent releases of Solaris 10, though a
 patch (only available with a contract), is needed for older updates of 
 Solaris 10.

 http://boxen.math.washington.edu/home/kirkby/Solaris-binaries/sage-4

 It was built a Sun Blade 1000 and has been used on a Sun T5240 too.

 Dave

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


[sage-support] Re: sage 4.3.4 or 4.3.5 on solaris sparc

2010-04-02 Thread adrian
We did not compile sage, but used the one that was pre-compiled.  The
error is
---
ImportError: ld.so.1: python: fatal: relocation error: file /opt/local/
src/sage-4.3.4-Solaris-sun4u-SunOS/local/lib//libntl.so: symbol
_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_i:
referenced symbol not found
WARNING: Failure executing code: 'import sage.misc.preparser_ipython;
sage.misc.preparser_ipython.magma_colon_equals=True'
---

We did put the paths for some libraries, and tried to make it work.
Interestingly, it can compute 1+2, but not much more than that.

This is what the output says:

[hilbert/opt/local/src/sage-4.3.4-Solaris-sun4u-SunOS] ./sage
--
| Sage Version 4.3.4, Release Date: 2010-03-19   |
| Type notebook() for the GUI, and license() for information.|
--
---
ImportError   Traceback (most recent call
last)

/opt/local/src/sage-4.3.4-Solaris-sun4u-SunOS/local/bin/string in
module()

/opt/local/src/sage-4.3.4-Solaris-sun4u-SunOS/local/lib/python2.6/site-
packages/sage/misc/preparser_ipython.py in module()
  6
###

  7
 8 import sage.misc.interpreter
  9
 10 import preparser

/opt/local/src/sage-4.3.4-Solaris-sun4u-SunOS/local/lib/python2.6/site-
packages/sage/misc/interpreter.py in module()
100
101 import os
-- 102 import log
103
104 import remote_file

/opt/local/src/sage-4.3.4-Solaris-sun4u-SunOS/local/lib/python2.6/site-
packages/sage/misc/log.py in module()
 63
 64 import interpreter
--- 65 import latex
 66 import misc
 67

/opt/local/src/sage-4.3.4-Solaris-sun4u-SunOS/local/lib/python2.6/site-
packages/sage/misc/latex.py in module()
 40 import random
 41
--- 42 from misc import tmp_dir, graphics_filename
 43 import sage_eval
 44 from sage.misc.misc import SAGE_DOC

/opt/local/src/sage-4.3.4-Solaris-sun4u-SunOS/local/lib/python2.6/site-
packages/sage/misc/misc.py in module()
 36
 37 import operator, os, stat, socket, sys, signal, time, weakref,
resource, math
--- 38 import sage.misc.prandom as random
 39
 40 from banner import version, banner

/opt/local/src/sage-4.3.4-Solaris-sun4u-SunOS/local/lib/python2.6/site-
packages/sage/misc/prandom.py in module()
 54 # setting seeds should only be done through
sage.misc.randstate .

 55
--- 56 from sage.misc.randstate import current_randstate
 57
 58 def _pyrand():

ImportError: ld.so.1: python: fatal: relocation error: file /opt/local/
src/sage-4.3.4-Solaris-sun4u-SunOS/local/lib//libntl.so: symbol
_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_i:
referenced symbol not found
WARNING: Failure executing code: 'import sage.misc.preparser_ipython;
sage.misc.preparser_ipython.magma_colon_equals=True'
---
ImportError   Traceback (most recent call
last)

/opt/local/src/sage-4.3.4-Solaris-sun4u-SunOS/local/lib/python2.6/site-
packages/IPython/ipmaker.pyc in force_import(modname)
 64 reload(sys.modules[modname])
 65 else:
--- 66 __import__(modname)
 67
 68

/opt/local/src/sage-4.3.4-Solaris-sun4u-SunOS/local/bin/
ipy_profile_sage.py in module()
  1 import os
  2 if 'SAGE_CLEAN' not in os.environ:
 3 import sage.misc.misc
  4 from sage.misc.interpreter import preparser, _ip
  5 preparser(True)

/opt/local/src/sage-4.3.4-Solaris-sun4u-SunOS/local/lib/python2.6/site-
packages/sage/misc/misc.py in module()
 36
 37 import operator, os, stat, socket, sys, signal, time, weakref,
resource, math
--- 38 import sage.misc.prandom as random
 39
 40 from banner import version, banner

/opt/local/src/sage-4.3.4-Solaris-sun4u-SunOS/local/lib/python2.6/site-
packages/sage/misc/prandom.py in module()
 54 # setting seeds should only be done through
sage.misc.randstate .

 55
--- 56 from sage.misc.randstate import current_randstate
 57
 58 def _pyrand():

ImportError: ld.so.1: python: fatal: relocation error: file /opt/local/
src/sage-4.3.4-Solaris-sun4u-SunOS/local/lib//libntl.so: symbol
_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_i:
referenced symbol not found
Error importing ipy_profile_sage - perhaps you should run %upgrade?
WARNING: Loading of ipy_profile_sage failed.

ERROR: name 'sage_prompt' is not defined1+2
3
ERROR: name 'sage_prompt' is not definedpi
---
NameError Traceback (most recent call
last)


Re: [sage-support] Re: sage 4.3.4 or 4.3.5 on solaris sparc

2010-04-02 Thread Dr. David Kirkby

adrian wrote:

We did not compile sage, but used the one that was pre-compiled.  The
error is
---
ImportError: ld.so.1: python: fatal: relocation error: file /opt/local/
src/sage-4.3.4-Solaris-sun4u-SunOS/local/lib//libntl.so: symbol
_ZSt16__ostream_insertIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_PKS3_i:
referenced symbol not found
WARNING: Failure executing code: 'import sage.misc.preparser_ipython;
sage.misc.preparser_ipython.magma_colon_equals=True'
---

We did put the paths for some libraries, and tried to make it work.
Interestingly, it can compute 1+2, but not much more than that.

This is what the output says:


A few thoughts on this.

1) What version of 'tar' is first in your path? If it is the Sun version of tar, 
it is incapable of extracting the tar file correctly.


If so, try this, which will use a GNU version of tar.


$ /usr/sfw/bin/gtar xfz sage-4.3.4-Solaris-sun4u-SunOS.tar.gz


2) Can you try

$ rm -rf $HOME/.sage

which will clear out any debris which might be left from previous failed

When you try to run sage for the first time, you should get a message about 
rebuilding parts of sage,


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.


and I believe it calls 'ranlib', 'ar' or similar. If /usr/ccs/bin is not in the 
path, it will not find them which might result in a corrupted installation.


If these are not found, it would be sensible that we report an error and exit, 
but I don't think that happens.



3) If that does not work, can you try the binary from this URL - use p7zip to 
decompress it, which is standard with recent releases of Solaris 10, though a 
patch (only available with a contract), is needed for older updates of Solaris 10.



http://boxen.math.washington.edu/home/kirkby/Solaris-binaries/sage-4.3.4-Solaris-sun4u-SunOS.tar.7z

It was built a Sun Blade 1000 and has been used on a Sun T5240 too.

Dave


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

To unsubscribe, reply using remove me as the subject.