sage 4.1.2 MacOSX 10.4.11 set-up error

2 views
Skip to first unread message

abaco68

unread,
Oct 19, 2009, 1:40:36 PM10/19/09
to sage-support
Hi
I have installed sage 4.1.2 on a PowerBook 5.58 with MacOSX 10.4.11 a
cording to
the procedure detailed in the README.txt file.
The first time I run sage it tries to initialize the installation but
it fails with the error message
enclosed hereafter. I have tried twice to download the .dmg file,
unpack it, copy the sage folder
to my disk , then run sage and I always get the same error.
I must add that the sage folder is copied to an external firewire disk
to a folder that has
the same permissions as the "/Applications" folder on the internal
harddisk.

Thanks for any help / suggestion

Giovanni

Error mesage follows here:



ImportError Traceback (most recent call
last)

/Volumes/MyBookData385/Applications/sage/local/bin/<string> in <module>
()

/Volumes/MyBookData385/Applications/sage/local/lib/python2.6/site-
packages/sage/misc/preparser_ipython.py in <module>()
6
###########################################################################

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

/Volumes/MyBookData385/Applications/sage/local/lib/python2.6/site-
packages/sage/misc/interpreter.py in <module>()
100
101 import os
--> 102 import log
103
104 import remote_file

/Volumes/MyBookData385/Applications/sage/local/lib/python2.6/site-
packages/sage/misc/log.py in <module>()
63
64 import interpreter
---> 65 import latex
66 import misc
67

/Volumes/MyBookData385/Applications/sage/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

/Volumes/MyBookData385/Applications/sage/local/lib/python2.6/site-
packages/sage/misc/misc.py in <module>()
26
27 import operator, os, stat, socket, sys, signal, time, weakref,
resource, math
---> 28 import sage.misc.prandom as random
29
30 from banner import version, banner

/Volumes/MyBookData385/Applications/sage/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: dlopen(/Volumes/MyBookData385/Applications/sage/local/lib/
python2.6/site-packages/sage/misc/randstate.so, 2): Library not
loaded: /home/wstein/screen/varro/build/sage-4.1.2/local/lib/libgmp.
3.dylib
Referenced from: /Volumes/MyBookData385/Applications/sage/local/lib//
libcsage.dylib
Reason: no suitable image found. Did find:
/Volumes/MyBookData385/Applications/sage/local/lib//libgmp.
3.dylib: incompatible cpu-subtype
WARNING: Failure executing code: 'import sage.misc.preparser_ipython;
sage.misc.preparser_ipython.magma_colon_equals=True'
---------------------------------------------------------------------------
ImportError Traceback (most recent call
last)

/Volumes/MyBookData385/Applications/sage/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

/Volumes/MyBookData385/Applications/sage/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)

/Volumes/MyBookData385/Applications/sage/local/lib/python2.6/site-
packages/sage/misc/misc.py in <module>()
26
27 import operator, os, stat, socket, sys, signal, time, weakref,
resource, math
---> 28 import sage.misc.prandom as random
29
30 from banner import version, banner

/Volumes/MyBookData385/Applications/sage/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: dlopen(/Volumes/MyBookData385/Applications/sage/local/lib/
python2.6/site-packages/sage/misc/randstate.so, 2): corrupt binary,
library ordinal too big
Error importing ipy_profile_sage - perhaps you should run %upgrade?
WARNING: Loading of ipy_profile_sage failed.

Stan Schymanski

unread,
Oct 20, 2009, 2:32:22 AM10/20/09
to sage-s...@googlegroups.com
Dear Giovanni,

Could you tell me where you found a dmg for 10.4.11? I tried to compile
from source on my 10.4.11 box without success, then I tried to download
a binary instead, but only found binaries for 10.5 and 10.6.

Cheers,
Stan

abaco68

unread,
Oct 20, 2009, 2:54:48 AM10/20/09
to sage-support
Dear Stan

I found it here, for instance:

http://mirror.switch.ch/mirror/sagemath/osx/index.html

but indeed only for PowerPC

Regards

Giovanni

Stan Schymanski

unread,
Oct 20, 2009, 3:45:39 AM10/20/09
to sage-s...@googlegroups.com
Ah, sorry, I didn't see the PowerBook bit. I don't know what causes the
error, but if you don't want to wait for someone to solve the problem, I
would suggest to compile from source. This takes a few hours but usually
works well and I have been told that the self-compiled version even runs
faster.

Stan

abaco68

unread,
Oct 20, 2009, 4:08:06 AM10/20/09
to sage-support
Thanks for the suggestion,
by the way I understand from you first message that you had troubles
compiling from source on MacOSX 10.4.11,
in case I decide to try it myself,
is it a PowerPC machine?
What kind of problem did you encounter?

Regards
Giovanni

Stan Schymanski

unread,
Oct 20, 2009, 5:04:42 AM10/20/09
to sage-s...@googlegroups.com
I have an intel machine and got the following error message: An error
occurred while installing gnutls-2.2.1.p4.

It could be that something went wrong when I copied the source code to a
different directory before compiling, so I'll try it again in the
directory where I untarred the original code. I already sent an email to
devel about that, but so far no replies.

Cheers,
Stan

gsw

unread,
Oct 24, 2009, 3:20:06 PM10/24/09
to sage-support
Hi there,

sorry for delayed answer. This snippet from the above log shows what
the problem is:

...
Reason: no suitable image found. Did find:
/Volumes/MyBookData385/Applications/sage/local/lib//libgmp.
3.dylib: incompatible cpu-subtype
...

It means (with a very high probability ...) you took a Sage binary
built on MacPPC with a G5 processor, and now try to run it on a MacPPC
with only a G4 processor (or maybe a G3, there are still some in use
out there with Sage running on them).
Yesterday I uploaded a(nother) MacPPC OS X 10.4 Sage binary
"sage-4.1.2-OSX10.4-32bit-G4-PowerMacintosh-Darwin.dmg" (note the
"G4" in the name) to

http://sage.math.washington.edu/home/weberg/bdist/

for exactly this reason. It should appear sooner or later in the usual
download places (maybe not, if Sage 4.2 is released very soon), but
anyway, you can fetch it from there.

Cheers,
Georg
Reply all
Reply to author
Forward
0 new messages