installation of Sage

65 views
Skip to first unread message

Michael

unread,
Sep 5, 2010, 8:57:38 AM9/5/10
to sage-support
Hello!

Since yesterday I have been trying to Install Sage 4.5.2 on my
netbook. After many years of using Windows I just changed to Linux (32
Bit, Opensuse 11), so I'm not yet used to working with this operating
system. So I downloaded the binary installation archive from sage.org
and followed exactly the instructions of the Installation Guide. I
could unpack the archive without any problems, but then typing
"/.sage" in the commandline didn't do anything or started Sage with a
bunch of errors ("couldn't open gap"...) so sage was not even able to
compute 3+4. Is there a mistake in the binary or the Installation
guide? I tried at least 5 times to install Sage properly, so I hope,
it wasn't just my own mistake.

Thanks a lot for your help!

Michael

Jorge E. ´Sanchez Sanchez

unread,
Sep 5, 2010, 2:31:30 PM9/5/10
to sage-s...@googlegroups.com
Hi Michael

have you tried just typing

sage

after the system prompt (something ending with $)

Regards
Jorge

> Date: Sun, 5 Sep 2010 05:57:38 -0700
> Subject: [sage-support] installation of Sage
> From: michael.hel...@rwth-aachen.de
> To: sage-s...@googlegroups.com
> --
> To post to this group, send email to sage-s...@googlegroups.com
> To unsubscribe from this group, send email to sage-support...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/sage-support
> URL: http://www.sagemath.org

Mitesh Patel

unread,
Sep 5, 2010, 4:08:23 PM9/5/10
to sage-s...@googlegroups.com

Could you give the entire output from running './sage'?

Michael

unread,
Sep 6, 2010, 4:11:32 AM9/6/10
to sage-support
I just tried it once more with he same result. This is the output I
get: (For me it's kind of cryptic, but maybe one of you can help me.)
Thanks a lot!
----------------------------------------------------------------------
| Sage Version 4.5.2, Release Date: 2010-08-05 |
| 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.
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
---------------------------------------------------------------------------
RuntimeError Traceback (most recent call
last)

/home/michael/Downloads/sage-4.5.2-linux-32bit-opensuse_11.1_i586-i686-
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/michael/Downloads/sage-4.5.2-linux-32bit-opensuse_11.1_i586-i686-
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/michael/Downloads/sage-4.5.2-linux-32bit-opensuse_11.1_i586-i686-
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/michael/Downloads/sage-4.5.2-linux-32bit-opensuse_11.1_i586-i686-
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/michael/Downloads/sage-4.5.2-linux-32bit-opensuse_11.1_i586-i686-
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/michael/Downloads/sage-4.5.2-linux-32bit-opensuse_11.1_i586-i686-
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
165

/home/michael/Downloads/sage-4.5.2-linux-32bit-opensuse_11.1_i586-i686-
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/michael/Downloads/sage-4.5.2-linux-32bit-opensuse_11.1_i586-i686-
Linux/local/bin/complex_double.pyx in init sage.rings.complex_double
(sage/rings/complex_double.c:14319)()

/home/michael/Downloads/sage-4.5.2-linux-32bit-opensuse_11.1_i586-i686-
Linux/local/lib/python2.6/site-packages/sage/rings/complex_field.py in
ComplexField(prec, names)
84 if not C is None:
85 return C
---> 86 C = ComplexField_class(prec)
87 cache[prec] = weakref.ref(C)
88 return C

/home/michael/Downloads/sage-4.5.2-linux-32bit-opensuse_11.1_i586-i686-
Linux/local/lib/python2.6/site-packages/sage/rings/complex_field.py in
__init__(self, prec)
184 ParentWithGens.__init__(self, self._real_field(),
('I',), False, category = Fields())
185 # self._populate_coercion_lists_()

--> 186
self._populate_coercion_lists_(coerce_list=[complex_number.RRtoCC(self._real_field(),
self)])
187
188 def __reduce__(self):

/home/michael/Downloads/sage-4.5.2-linux-32bit-opensuse_11.1_i586-i686-
Linux/local/lib/python2.6/site-packages/sage/rings/complex_number.so
in sage.rings.complex_number.RRtoCC.__init__ (sage/rings/
complex_number.c:13971)()

/home/michael/Downloads/sage-4.5.2-linux-32bit-opensuse_11.1_i586-i686-
Linux/local/lib/python2.6/site-packages/sage/categories/map.so in
sage.categories.map.Map.__init__ (sage/categories/map.c:1951)()

/home/michael/Downloads/sage-4.5.2-linux-32bit-opensuse_11.1_i586-i686-
Linux/local/lib/python2.6/site-packages/sage/categories/homset.py 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/michael/Downloads/sage-4.5.2-linux-32bit-opensuse_11.1_i586-i686-
Linux/local/lib/python2.6/site-packages/sage/categories/rings.py 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/michael/Downloads/sage-4.5.2-linux-32bit-opensuse_11.1_i586-i686-
Linux/local/lib/python2.6/site-packages/sage/rings/homset.py in
<module>()
15
16 import morphism
---> 17 import quotient_ring
18
19 def is_RingHomset(H):

/home/michael/Downloads/sage-4.5.2-linux-32bit-opensuse_11.1_i586-i686-
Linux/local/lib/python2.6/site-packages/sage/rings/quotient_ring.py 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/michael/Downloads/sage-4.5.2-linux-32bit-opensuse_11.1_i586-i686-
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/michael/Downloads/sage-4.5.2-linux-32bit-opensuse_11.1_i586-i686-
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/michael/Downloads/sage-4.5.2-linux-32bit-opensuse_11.1_i586-i686-
Linux/local/lib/python2.6/site-packages/sage/interfaces/gap.py in
<module>()
1140 #print "Automatically updating the cached Gap workspace:"

1141 #print WORKSPACE

-> 1142 gap_reset_workspace(verbose=False)
1143
1144 # Delete all gap workspaces that haven't been used in at
least 1


/home/michael/Downloads/sage-4.5.2-linux-32bit-opensuse_11.1_i586-i686-
Linux/local/lib/python2.6/site-packages/sage/interfaces/gap.py in
gap_reset_workspace(max_workspace_size, verbose)
1131 pass
1132 # end for

-> 1133 g.eval('SaveWorkspace("%s");'%WORKSPACE)
1134
1135

/home/michael/Downloads/sage-4.5.2-linux-32bit-opensuse_11.1_i586-i686-
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/michael/Downloads/sage-4.5.2-linux-32bit-opensuse_11.1_i586-i686-
Linux/local/lib/python2.6/site-packages/sage/interfaces/expect.py in
eval(self, code, strip, synchronize, locals, **kwds)
981 try:
982 with gc_disabled():
--> 983 return '\n'.join([self._eval_line(L, **kwds)
for L in code.split('\n') if L != ''])
984 except KeyboardInterrupt:
985 # DO NOT CATCH KeyboardInterrupt, as it is being
caught


/home/michael/Downloads/sage-4.5.2-linux-32bit-opensuse_11.1_i586-i686-
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/michael/Downloads/sage-4.5.2-linux-32bit-opensuse_11.1_i586-i686-
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.

sage:

Dan Drake

unread,
Sep 6, 2010, 5:03:40 AM9/6/10
to sage-s...@googlegroups.com
On Mon, 06 Sep 2010 at 01:11AM -0700, Michael wrote:
> I just tried it once more with he same result. This is the output I
> get: (For me it's kind of cryptic, but maybe one of you can help me.)
> Thanks a lot!
> ----------------------------------------------------------------------
> | Sage Version 4.5.2, Release Date: 2010-08-05 |
> | 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.
> sh: symbol lookup error: sh: undefined symbol:
> rl_filename_rewrite_hook
> sh: symbol lookup error: sh: undefined symbol:
[etc]

Googling "sh: undefined symbol: rl_filename_rewrite_hook" immediately
led me to this thread:

http://www.mail-archive.com/sage-s...@googlegroups.com/msg16822.html

There, the problem seemed related to different compiler versions,
although the error above is probably readline related.

Dan

--
--- Dan Drake
----- http://mathsci.kaist.ac.kr/~drake
-------

signature.asc

Simon King

unread,
Sep 6, 2010, 6:58:20 AM9/6/10
to sage-support
Hi!

On Sep 6, 10:03 am, Dan Drake <dr...@kaist.edu> wrote:
> ...
> Googling "sh: undefined symbol: rl_filename_rewrite_hook" immediately
> led me to this thread:
>
> http://www.mail-archive.com/sage-s...@googlegroups.com/msg16822.html
>
> There, the problem seemed related to different compiler versions,
> although the error above is probably readline related.

OK, but what concrete steps do you suggest to solve the problem?

Mind that the OP is new to Linux (and Sage), and that he tries to
install Sage on a netbook (so, compiling from source might exceed the
computer's resources).

Cheers,
Simon

Innigo

unread,
Sep 7, 2010, 8:19:47 PM9/7/10
to sage-support
Is it possilbe it's just because "the sage install tree may have
moved"? There seems to be a fair few import errors and a lot not
found. Suse 11 should have the latest gcc shouldn't it? It's not just
a permissions or $PATH thing? Apologies in advance if this is naively
hopeful.

Michael

unread,
Sep 8, 2010, 1:08:40 PM9/8/10
to sage-support
I just installed the latest version of gcc, but there are still the
same errors. Anyway, does it make any difference for the binary
version?

Michael

unread,
Sep 11, 2010, 5:19:53 PM9/11/10
to sage-support
It's getting quite a bit annoying to me. Even the new version of Sage
doesn't work. There are exactly the same error messages again, but I
did exactly as it was said in the installation guide (unpack the
downloaded file, change into the resulting directory and type ./sage
in the terminal). Is it possible, that I have to move the downloaded
tar.gz-file to another directory, that I can't execute the program in
the directory "Downloads" where it gets by the download?

Best regards,

Michael

On 8 Sep., 19:08, Michael <michael.helmut.mert...@rwth-aachen.de>
wrote:

Michael

unread,
Sep 11, 2010, 5:25:36 PM9/11/10
to sage-support
Nope, just did the whole thing again with the unpacked directory moved
to my home folder. Same problem.

On 11 Sep., 23:19, Michael <michael.helmut.mert...@rwth-aachen.de>
wrote:

John H Palmieri

unread,
Sep 11, 2010, 6:15:16 PM9/11/10
to sage-support
Have you tried building from the source distribution? Download it,
unpack the tar file, and type "make". Then wait a few hours. (I
suppose there may be some incompatibility between the binary
distribution and your system.)


On Sep 11, 2:25 pm, Michael <michael.helmut.mert...@rwth-aachen.de>
wrote:

Mitesh Patel

unread,
Sep 11, 2010, 6:19:47 PM9/11/10
to sage-s...@googlegroups.com
On 09/06/2010 05:58 AM, Simon King wrote:
> On Sep 6, 10:03 am, Dan Drake <dr...@kaist.edu> wrote:
>> ...
>> Googling "sh: undefined symbol: rl_filename_rewrite_hook" immediately
>> led me to this thread:
>>
>> http://www.mail-archive.com/sage-s...@googlegroups.com/msg16822.html

I found

http://groups.google.com/group/sage-devel/browse_thread/thread/3f0f6d8c6ead4816/cb77c0fdf55a8e85

in which William suggests

cd SAGE_ROOT
rm local/lib/*readline*

as a possible workaround. (Or you can 'mv' the files outside the Sage
tree.) Does this help?

>> There, the problem seemed related to different compiler versions,
>> although the error above is probably readline related.
>
> OK, but what concrete steps do you suggest to solve the problem?
>
> Mind that the OP is new to Linux (and Sage), and that he tries to
> install Sage on a netbook (so, compiling from source might exceed the
> computer's resources).

Michael, is your system fully updated to the latest stable packages for
your openSUSE version? Also, how much RAM does your computer have?

Michael

unread,
Sep 12, 2010, 10:16:19 AM9/12/10
to sage-support
I tried what you said, but there occured an error again. I'll post the
relevant lines below. I tired to open the subshell and debug the
program, but that didn't work either. There seems to be a missing
".py"-file or something, I do not fully understand what I get there.

I hope you can help me to fix that. Thanks!

Here the command line output from the occurance of the error on:

sage: An error occurred while installing sqlite-3.6.22
Please email sage-devel http://groups.google.com/group/sage-devel
explaining the problem and send the relevant part of
of /home/michael/Downloads/sage-4.5.3/install.log. Describe your
computer, operating system, etc.
If you want to try to fix the problem yourself, *don't* just cd to
/home/michael/Downloads/sage-4.5.3/spkg/build/sqlite-3.6.22 and type
'make check' or whatever is appropriate.
Instead, the following commands setup all environment variables
correctly and load a subshell for you to debug the error:
(cd '/home/michael/Downloads/sage-4.5.3/spkg/build/sqlite-3.6.22' && '/
home/michael/Downloads/sage-4.5.3/sage' -sh)
When you are done debugging, you can type "exit" to leave the
subshell.
make[1]: *** [installed/sqlite-3.6.22] Fehler 1
make[1]: Leaving directory `/home/michael/Downloads/sage-4.5.3/spkg'

real 2m20.436s
user 1m48.602s
sys 0m17.172s
Error building Sage.
./sage -docbuild all html 2>&1 | tee -a dochtml.log
python: can't open file '/home/michael/Downloads/sage-4.5.3/devel/sage/
doc/common/builder.py': [Errno 2] No such file or directory
michael@linux-pu35:~/Downloads/sage-4.5.3> cd '/home/michael/Downloads/
sage-4.5.3/spkg/build/sqlite-3.6.22' && '/home/michael/Downloads/
sage-4.5.3/sage' -sh

Starting subshell with Sage environment variables set.
Be sure to exit when you are done and do not do anything
with other copies of Sage!

Bypassing shell configuration files ...

bash: symbol lookup error: bash: undefined symbol:
rl_filename_rewrite_hook
Exited Sage subshell.
michael@linux-pu35:~/Downloads/sage-4.5.3/spkg/build/sqlite-3.6.22>

Michael

unread,
Sep 12, 2010, 10:18:01 AM9/12/10
to sage-support
I am afraid I don't know what stable packages are. My computer has got
987 MB RAM.

On 12 Sep., 00:19, Mitesh Patel <qed...@gmail.com> wrote:
> On 09/06/2010 05:58 AM, Simon King wrote:
>
> > On Sep 6, 10:03 am, Dan Drake <dr...@kaist.edu> wrote:
> >> ...
> >> Googling "sh: undefined symbol: rl_filename_rewrite_hook" immediately
> >> led me to this thread:
>
> >>http://www.mail-archive.com/sage-s...@googlegroups.com/msg16822.html
>
> I found
>
> http://groups.google.com/group/sage-devel/browse_thread/thread/3f0f6d...

Michael

unread,
Sep 12, 2010, 10:19:27 AM9/12/10
to sage-support
I also tried what you wrote, but that did not help. Thank you anyway!

On 12 Sep., 16:16, Michael <michael.helmut.mert...@rwth-aachen.de>
wrote:
> I tried what you said, but there occured an error again. I'll post the
> relevant lines below. I tired to open the subshell and debug the
> program, but that didn't work either. There seems to be a missing
> ".py"-file or something, I do not fully understand what I get there.
>
> I hope you can help me to fix that. Thanks!
>
> Here the command line output from the occurance of the error on:
>
> sage: An error occurred while installing sqlite-3.6.22
> Please email sage-develhttp://groups.google.com/group/sage-devel

Mitesh Patel

unread,
Sep 12, 2010, 5:14:20 PM9/12/10
to sage-s...@googlegroups.com
> I am afraid I don't know what stable packages are. My computer has got
> 987 MB RAM.

I'm not familar with the openSUSE distribution, but your installation
should have a semi-automatic update utility that checks openSUSE servers
(or mirrors) for newer packages (with bug and security fixes, etc.) than
you have on your system and installs them. I'm just asking whether
you've run this utility recently.

Mitesh Patel

unread,
Sep 12, 2010, 5:34:25 PM9/12/10
to sage-s...@googlegroups.com
On 09/12/2010 09:16 AM, Michael wrote:
> On 12 Sep., 00:15, John H Palmieri <jhpalmier...@gmail.com> wrote:
>> Have you tried building from the source distribution? Download it,
>> unpack the tar file, and type "make". Then wait a few hours. (I
>> suppose there may be some incompatibility between the binary
>> distribution and your system.)
>
> I tried what you said, but there occured an error again. I'll post the
> relevant lines below. I tired to open the subshell and debug the
> program, but that didn't work either. There seems to be a missing
> ".py"-file or something, I do not fully understand what I get there.
>
> I hope you can help me to fix that. Thanks!
>
> Here the command line output from the occurance of the error on:

Could you give us a link to SAGE_ROOT/spkg/logs/sqlite-3.6.22.log ?

> ./sage -docbuild all html 2>&1 | tee -a dochtml.log
> python: can't open file '/home/michael/Downloads/sage-4.5.3/devel/sage/
> doc/common/builder.py': [Errno 2] No such file or directory

The builder.py error here is secondary. We're tracking this problem at

http://trac.sagemath.org/sage_trac/ticket/9799

> michael@linux-pu35:~/Downloads/sage-4.5.3> cd '/home/michael/Downloads/
> sage-4.5.3/spkg/build/sqlite-3.6.22' && '/home/michael/Downloads/
> sage-4.5.3/sage' -sh
>
> Starting subshell with Sage environment variables set.
> Be sure to exit when you are done and do not do anything
> with other copies of Sage!
>
> Bypassing shell configuration files ...
>
> bash: symbol lookup error: bash: undefined symbol:
> rl_filename_rewrite_hook

According to

http://forums.opensuse.org/english/get-help-here/pre-release-beta/433623-11-3-milestone-2-died-after-bash-update.html

you may need to update bash. I think you can check for updates with YaST:

http://en.opensuse.org/YaST_Software_Management

Michael

unread,
Sep 13, 2010, 2:45:52 PM9/13/10
to sage-support
All right, I run that utility at least once a week, so that should e
fine.

Michael

unread,
Sep 13, 2010, 2:57:19 PM9/13/10
to sage-support
Here is a copy of the file you wanted, I hope it helps:

Warning: Attempted to overwrite SAGE_ROOT environment variable
sqlite-3.6.22
Machine:
Linux linux-pu35.site 2.6.34.4-0.1-desktop #1 SMP PREEMPT 2010-08-20
19:21:29 +0200 i686 i686 i386 GNU/Linux
Deleting directories from past builds of previous/current versions of
sqlite-3.6.22
Extracting package /home/michael/Downloads/sage-4.5.3/spkg/standard/
sqlite-3.6.22.spkg ...
-rw-r--r-- 1 michael users 1080534 26. Jul 05:53 /home/michael/
Downloads/sage-4.5.3/spkg/standard/sqlite-3.6.22.spkg
sqlite-3.6.22/
sqlite-3.6.22/SPKG.txt
sqlite-3.6.22/.hg/
sqlite-3.6.22/.hg/00changelog.i
sqlite-3.6.22/.hg/requires
sqlite-3.6.22/.hg/undo.dirstate
sqlite-3.6.22/.hg/store/
sqlite-3.6.22/.hg/store/00changelog.i
sqlite-3.6.22/.hg/store/00manifest.i
sqlite-3.6.22/.hg/store/data/
sqlite-3.6.22/.hg/store/data/_s_p_k_g.txt.i
sqlite-3.6.22/.hg/store/data/spkg-install.i
sqlite-3.6.22/.hg/store/data/.hgignore.i
sqlite-3.6.22/.hg/store/data/patches/
sqlite-3.6.22/.hg/store/data/patches/_makefile.in.i
sqlite-3.6.22/.hg/store/undo
sqlite-3.6.22/.hg/attic/
sqlite-3.6.22/.hg/dirstate
sqlite-3.6.22/.hg/undo.branch
sqlite-3.6.22/src/
sqlite-3.6.22/src/depcomp
sqlite-3.6.22/src/sqlite3.pc
sqlite-3.6.22/src/aclocal.m4
sqlite-3.6.22/src/README
sqlite-3.6.22/src/ltmain.sh
sqlite-3.6.22/src/configure
sqlite-3.6.22/src/shell.c
sqlite-3.6.22/src/configure.ac
sqlite-3.6.22/src/config.guess
sqlite-3.6.22/src/install-sh
sqlite-3.6.22/src/config.sub
sqlite-3.6.22/src/missing
sqlite-3.6.22/src/sqlite3.1
sqlite-3.6.22/src/sqlite3.c
sqlite-3.6.22/src/sqlite3.h
sqlite-3.6.22/src/Makefile.am
sqlite-3.6.22/src/Makefile.in
sqlite-3.6.22/src/sqlite3ext.h
sqlite-3.6.22/src/INSTALL
sqlite-3.6.22/src/sqlite3.pc.in
sqlite-3.6.22/patches/
sqlite-3.6.22/spkg-install
sqlite-3.6.22/.hgignore
Finished extraction
****************************************************
Host system
uname -a:
Linux linux-pu35.site 2.6.34.4-0.1-desktop #1 SMP PREEMPT 2010-08-20
19:21:29 +0200 i686 i686 i386 GNU/Linux
****************************************************
****************************************************
CC Version
gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i586-suse-linux/4.5/lto-wrapper
Target: i586-suse-linux
Configured with: ../configure --prefix=/usr --infodir=/usr/share/info
--mandir=/usr/share/man --libdir=/usr/lib --libexecdir=/usr/lib --
enable-languages=c,c++,objc,fortran,obj-c++,java,ada --enable-
checking=release --with-gxx-include-dir=/usr/include/c++/4.5 --enable-
ssp --disable-libssp --disable-plugin --with-bugurl=http://
bugs.opensuse.org/ --with-pkgversion='SUSE Linux' --disable-libgcj --
disable-libmudflap --with-slibdir=/lib --with-system-zlib --enable-
__cxa_atexit --enable-libstdcxx-allocator=new --disable-libstdcxx-pch
--enable-version-specific-runtime-libs --program-suffix=-4.5 --enable-
linux-futex --without-system-libunwind --enable-gold --with-plugin-ld=/
usr/bin/gold --with-arch-32=i586 --with-tune=generic --build=i586-suse-
linux
Thread model: posix
gcc version 4.5.0 20100604 [gcc-4_5-branch revision 160292] (SUSE
Linux)
****************************************************
bash: symbol lookup error: bash: undefined symbol:
rl_filename_rewrite_hook

real 0m0.020s
user 0m0.002s
sys 0m0.005s
sage: An error occurred while installing sqlite-3.6.22
Please email sage-devel http://groups.google.com/group/sage-devel
explaining the problem and send the relevant part of
of /home/michael/Downloads/sage-4.5.3/install.log. Describe your
computer, operating system, etc.
If you want to try to fix the problem yourself, *don't* just cd to
/home/michael/Downloads/sage-4.5.3/spkg/build/sqlite-3.6.22 and type
'make check' or whatever is appropriate.
Instead, the following commands setup all environment variables
correctly and load a subshell for you to debug the error:
(cd '/home/michael/Downloads/sage-4.5.3/spkg/build/sqlite-3.6.22' && '/
home/michael/Downloads/sage-4.5.3/sage' -sh)
When you are done debugging, you can type "exit" to leave the
subshell.

I tired to update bash, but it doesn't semm to make any difference.

Thanks again!
> http://forums.opensuse.org/english/get-help-here/pre-release-beta/433...

Mitesh Patel

unread,
Sep 13, 2010, 9:05:55 PM9/13/10
to sage-s...@googlegroups.com
On 09/13/2010 01:57 PM, Michael wrote:
> sqlite-3.6.22
> [...]

> bash: symbol lookup error: bash: undefined symbol:
> rl_filename_rewrite_hook
> [...]

>
> I tired to update bash, but it doesn't semm to make any difference.


Just to be sure: Did you try

cd SAGE_ROOT
mv local/lib/*readline* /path/to/some/temp/dir

with the binary Sage distribution? You could also try this in the
compilation from scratch; run "make" again to continue the build.

The Sage SQLite package (and other packages) depends on the Sage
Readline package. We may see the bash error here because this is where
your system's bash first finds a newly-built but incompatible Readline
library under SAGE_ROOT.

Michael

unread,
Sep 15, 2010, 3:12:12 PM9/15/10
to sage-support
YIPPIE!

It finally worked, I can now use Sage on my computer. The *readline*-
command did help indeed (I must have done something wrong trying it
for the first time).

THANK YOU ALL SO MUCH!

Best regards,
Michael

Mitesh Patel

unread,
Sep 15, 2010, 6:06:23 PM9/15/10
to sage-s...@googlegroups.com
On 09/15/2010 02:12 PM, Michael wrote:
> On 14 Sep., 03:05, Mitesh Patel <qed...@gmail.com> wrote:
>> On 09/13/2010 01:57 PM, Michael wrote:
>>> sqlite-3.6.22
>>> [...]
>>> bash: symbol lookup error: bash: undefined symbol:
>>> rl_filename_rewrite_hook
>>> [...]
>>
>>> I tired to update bash, but it doesn't semm to make any difference.
>>
>> Just to be sure: Did you try
>>
>> cd SAGE_ROOT
>> mv local/lib/*readline* /path/to/some/temp/dir
>>
>> with the binary Sage distribution? You could also try this in the
>> compilation from scratch; run "make" again to continue the build.
>>
>> The Sage SQLite package (and other packages) depends on the Sage
>> Readline package. We may see the bash error here because this is where
>> your system's bash first finds a newly-built but incompatible Readline
>> library under SAGE_ROOT.
>>
> YIPPIE!
>
> It finally worked, I can now use Sage on my computer. The *readline*-
> command did help indeed (I must have done something wrong trying it
> for the first time).
>
> THANK YOU ALL SO MUCH!

Have fun with Sage!

There's an existing ticket for upgrading the Readline spkg:

http://trac.sagemath.org/sage_trac/ticket/9523

Reply all
Reply to author
Forward
0 new messages