I'm using openSUSE 11.3 on x86_64. I try to install SAGE on it, and I
downloaded the Ubuntu tarball (the Fedora tarball gives the same errors).
However, when I run 'sage' I get those errors:
>> ./sage
----------------------------------------------------------------------
| Sage Version 4.6, Release Date: 2010-10-30 |
| Type notebook() for the GUI, and license() for information. |
----------------------------------------------------------------------
The Sage install tree may have moved
(from /scratch/wstein/build/sage-4.6 to
/home/renan/sage-4.6-linux-64bit-ubuntu_10.04.1_lts-x86_64-Linux)
Changing various hardcoded paths
(please wait at most a few minutes)...
Do not interrupt this.
sh: symbol lookup error: sh: undefined symbol: rl_filename_rewrite_hook
sh: symbol lookup error: sh: undefined symbol: rl_filename_rewrite_hook
sh: symbol lookup error: sh: undefined symbol: rl_filename_rewrite_hook
sh: symbol lookup error: sh: undefined symbol: rl_filename_rewrite_hook
sh: symbol lookup error: sh: undefined symbol: rl_filename_rewrite_hook
sh: symbol lookup error: sh: undefined symbol: rl_filename_rewrite_hook
sh: symbol lookup error: sh: undefined symbol: rl_filename_rewrite_hook
sh: symbol lookup error: sh: undefined symbol: rl_filename_rewrite_hook
sh: symbol lookup error: sh: undefined symbol: rl_filename_rewrite_hook
sh: symbol lookup error: sh: undefined symbol: rl_filename_rewrite_hook
sh: symbol lookup error: sh: undefined symbol: rl_filename_rewrite_hook
sh: symbol lookup error: sh: undefined symbol: rl_filename_rewrite_hook
ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (69, 0))
---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
/home/renan/sage-4.6-linux-64bit-ubuntu_10.04.1_lts-x86_64-Linux/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
/home/renan/sage-4.6-linux-64bit-ubuntu_10.04.1_lts-x86_64-Linux/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
/home/renan/sage-4.6-linux-64bit-ubuntu_10.04.1_lts-x86_64-Linux/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)
/home/renan/sage-4.6-linux-64bit-ubuntu_10.04.1_lts-x86_64-Linux/local/lib/python2.6/site-packages/sage/all.py
in <module>()
62 get_sigs()
63
---> 64 from sage.misc.all import * # takes a while
65
66 from sage.misc.sh import sh
/home/renan/sage-4.6-linux-64bit-ubuntu_10.04.1_lts-x86_64-Linux/local/lib/python2.6/site-packages/sage/misc/all.py
in <module>()
65 from sage_eval import sage_eval, sageobj
66
---> 67 from sage_input import sage_input
68
69 from cython import cython_lambda, cython_create_local_so
/home/renan/sage-4.6-linux-64bit-ubuntu_10.04.1_lts-x86_64-Linux/local/lib/python2.6/site-packages/sage/misc/sage_input.py
in <module>()
161 """
162
--> 163 from sage.misc.functional import parent
164 import math
/home/renan/sage-4.6-linux-64bit-ubuntu_10.04.1_lts-x86_64-Linux/local/lib/python2.6/site-packages/sage/misc/functional.py
in <module>()
36
37
---> 38 from sage.rings.complex_double import CDF
39 from sage.rings.real_double import RDF, RealDoubleElement
40
/home/renan/sage-4.6-linux-64bit-ubuntu_10.04.1_lts-x86_64-Linux/local/bin/complex_double.pyx
in init sage.rings.complex_double (sage/rings/complex_double.c:16534)()
/home/renan/sage-4.6-linux-64bit-ubuntu_10.04.1_lts-x86_64-Linux/local/lib/python2.6/site-packages/sage/rings/complex_field.pyc
in ComplexField(prec, names)
87 if not C is None:
88 return C
---> 89 C = ComplexField_class(prec)
90 cache[prec] = weakref.ref(C)
91 return C
/home/renan/sage-4.6-linux-64bit-ubuntu_10.04.1_lts-x86_64-Linux/local/lib/python2.6/site-packages/sage/rings/complex_field.pyc
in __init__(self, prec)
187 ParentWithGens.__init__(self, self._real_field(),
('I',), False, category = Fields())
188 # self._populate_coercion_lists_()
--> 189
self._populate_coercion_lists_(coerce_list=[complex_number.RRtoCC(self._real_field(),
self)])
190
191 def __reduce__(self):
/home/renan/sage-4.6-linux-64bit-ubuntu_10.04.1_lts-x86_64-Linux/local/lib/python2.6/site-packages/sage/rings/complex_number.so
in sage.rings.complex_number.RRtoCC.__init__
(sage/rings/complex_number.c:14798)()
/home/renan/sage-4.6-linux-64bit-ubuntu_10.04.1_lts-x86_64-Linux/local/lib/python2.6/site-packages/sage/categories/map.so
in sage.categories.map.Map.__init__ (sage/categories/map.c:1974)()
/home/renan/sage-4.6-linux-64bit-ubuntu_10.04.1_lts-x86_64-Linux/local/lib/python2.6/site-packages/sage/categories/homset.pyc
in Hom(X, Y, category)
150 # For the moment, this is the category, for compatibility
with the current implementations
151 # of Homset in rings, schemes, ...
--> 152 H = category.hom_category().parent_class(X, Y, category =
category)
153
154 ##_cache[key] = weakref.ref(H)
/home/renan/sage-4.6-linux-64bit-ubuntu_10.04.1_lts-x86_64-Linux/local/lib/python2.6/site-packages/sage/categories/rings.pyc
in __new__(cls, X, Y, category)
115 <class
'sage.rings.number_field.morphism.CyclotomicFieldHomset_with_category'>
116 """
--> 117 from sage.rings.homset import RingHomset
118 return RingHomset(X, Y, category = category)
119
/home/renan/sage-4.6-linux-64bit-ubuntu_10.04.1_lts-x86_64-Linux/local/lib/python2.6/site-packages/sage/rings/homset.pyc
in <module>()
15
16 import morphism
---> 17 import quotient_ring
18
19 def is_RingHomset(H):
/home/renan/sage-4.6-linux-64bit-ubuntu_10.04.1_lts-x86_64-Linux/local/lib/python2.6/site-packages/sage/rings/quotient_ring.pyc
in <module>()
30 import commutative_ring
31 import ideal
---> 32 import sage.rings.polynomial.multi_polynomial_ideal
33 import sage.structure.parent_gens
34 from sage.interfaces.all import singular as singular_default,
is_SingularElement
/home/renan/sage-4.6-linux-64bit-ubuntu_10.04.1_lts-x86_64-Linux/local/lib/python2.6/site-packages/
sage/rings/polynomial/multi_polynomial_ideal.py in <module>()
227 from __future__ import with_statement
228
--> 229 from sage.interfaces.all import (singular as singular_default,
230 macaulay2 as macaulay2_default,
231 magma as magma_default)
/home/renan/sage-4.6-linux-64bit-ubuntu_10.04.1_lts-x86_64-Linux/local/lib/python2.6/site-packages/sage/interfaces/all.py
in <module>()
6
7 from expect import is_ExpectElement
----> 8 from gap import gap, gap_reset_workspace, gap_console,
gap_version, is_GapElement, Gap
9 from gap3 import gap3, gap3_console, gap3_version, Gap3
10 from genus2reduction import genus2reduction, Genus2reduction
/home/renan/sage-4.6-linux-64bit-ubuntu_10.04.1_lts-x86_64-Linux/local/lib/python2.6/site-packages/sage/interfaces/gap.py
in <module>()
1160 #print "Automatically updating the cached Gap workspace:"
1161 #print WORKSPACE
-> 1162 gap_reset_workspace(verbose=False)
1163
1164 # Delete all gap workspaces that haven't been used in at
least 1
/home/renan/sage-4.6-linux-64bit-ubuntu_10.04.1_lts-x86_64-Linux/local/lib/python2.6/site-packages/sage/interfaces/gap.py
in gap_reset_workspace(max_workspace_size, verbose)
1151 pass
1152 # end for
-> 1153 g.save_workspace()
1154
1155
/home/renan/sage-4.6-linux-64bit-ubuntu_10.04.1_lts-x86_64-Linux/local/lib/python2.6/site-packages/sage/interfaces/gap.py
in gap_reset_workspace(max_workspace_size, verbose)
1151 pass
1152 # end for
-> 1153 g.save_workspace()
1154
1155
/home/renan/sage-4.6-linux-64bit-ubuntu_10.04.1_lts-x86_64-Linux/local/lib/python2.6/site-packages/sage/interfaces/gap.py
in save_workspace(self)
955 # be included in the body of a loop or function, or
called from a
956 # break loop.
--> 957 self.eval('SaveWorkspace("%s");'%WORKSPACE,
allow_use_file=False)
958
959 # Todo -- this -- but there is a tricky "when does it end"
issue!
/home/renan/sage-4.6-linux-64bit-ubuntu_10.04.1_lts-x86_64-Linux/local/lib/python2.6/site-packages/sage/interfaces/gap.py
in eval(self, x, newlines, strip, **kwds)
352 if not input_line.endswith(';'):
353 input_line += ';'
--> 354 result = Expect.eval(self, input_line, **kwds)
355 if not newlines:
356 result = result.replace("\\\n","")
/home/renan/sage-4.6-linux-64bit-ubuntu_10.04.1_lts-x86_64-Linux/local/lib/python2.6/site-packages/sage/interfaces/expect.pyc
in eval(self, code, strip, synchronize, locals, **kwds)
1039 try:
1040 with gc_disabled():
-> 1041 return '\n'.join([self._eval_line(L, **kwds) for
L in code.split('\n') if L != ''])
1042 except KeyboardInterrupt:
1043 # DO NOT CATCH KeyboardInterrupt, as it is being caught
/home/renan/sage-4.6-linux-64bit-ubuntu_10.04.1_lts-x86_64-Linux/local/lib/python2.6/site-packages/sage/interfaces/gap.py
in _eval_line(self, line, allow_use_file, wait_for_prompt)
452 try:
453 if self._expect is None:
--> 454 self._start()
455 E = self._expect
456 #import pdb; pdb.set_trace()
/home/renan/sage-4.6-linux-64bit-ubuntu_10.04.1_lts-x86_64-Linux/local/lib/python2.6/site-packages/sage/interfaces/gap.py
in _start(self)
885 self._session_number = n
886 return
--> 887 raise RuntimeError, msg
888
889 if self.__use_workspace_cache and self.__make_workspace:
RuntimeError: Unable to start gap
Error importing ipy_profile_sage - perhaps you should run %upgrade?
WARNING: Loading of ipy_profile_sage failed.
And any operation fails, e.g.
sage: 3+3
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
/home/renan/sage-4.6-linux-64bit-ubuntu_10.04.1_lts-x86_64-Linux/local/bin/<ipython
console> in <module>()
NameError: name 'Integer' is not defined
Any suggestions (preferrably that do not involve recompiling, as this
will take a long time)?
Thanks!
--
Renan Birck Pinheiro - Grupo de Microeletr�nica - Eng. El�trica/UFSM
http://renanbirck.blogspot.com | http://twitter.com/renan2112
skype: renan.ee.ufsm | MSN: renan...@hotmail.com
This should be a really noticieable FAQ.
It happens in many distros and versions (I've had the same problem on
archlinux since 4.5.2)
Recompiling .. ok, if you got the resources (but then, why download a binary?)
Easier solution :
suppose you unpacked the tarball into /opt/sage-4.6
then go
/opt/sage-4.6/local/lib
and DELETE libreadline*
(... or symlink those files to the system's ones (not sage's) )
That problem is caused due to a libreadline library mismatch between
those packaged with sage and those from the system.
I got 4.6 today, and same problem arose. Solution worked once more
again, delete sage's libreadline's thing.
Hmm. I would never have thought of that, and didn't find anything by
Googling. Indeed this should be on the FAQ.
Thanks.