Ask Your Question

Installing ERROR in Linux Mint 13

asked 2013-05-16 16:15:11 -0600

mresimulator gravatar image

updated 2013-05-17 02:30:00 -0600

tmonteil gravatar image

Hi experts!.

Im a new user of LINUX. I installed Linux Mint 13 in my Intel atom N2600 (GMA 3600) Acer Netbook. I download the file 'sage-5.9-linux-32bit-ubuntu_13.04-i686-Linux.tar.lzma'. I followed the next instructions for install SAGE 5.9:

1) GO to download folder in Terminal.
2) tar sage-5.9-linux-32bit-ubuntu_13.04-i686-Linux.tar.lzma
3) sudo mv sage-5.9-linux-32bit-ubuntu_13.04-i686-Linux.tar /usr/local/SAGE
4) ln -s /usr/local/SAGE/sage /sbin/sage

When I type 'sage' i see this:

joseluismietta@joseluisnetbook ~ $ sage
| Sage Version 5.9, Release Date: 2013-04-30                         |
| Type "notebook()" for the browser-based notebook interface.        |
| Type "help()" for help.                                            |
The Sage installation tree has moved
from /var/lib/buildbot/build/sage/arando-1/arando_binary/build/sage-5.9
  to /usr/local/SAGE
Updating various hardcoded paths...
(Please wait at most a few minutes.)
Done updating paths.

Thats fine but when i try to plot some graph i receive a ERROR:

sage: var('x')  
sage: plot(cos(x),0,1)
ImportError                               Traceback (most recent call last)
<ipython-input-2-70dec8f1f084> in <module>()
----> 1 plot(cos(x),Integer(0),Integer(1))

/usr/local/SAGE/local/lib/python2.7/site-packages/IPython/core/ in __call__(self, result)
    236             self.start_displayhook()
    237             self.write_output_prompt()
--> 238             format_dict = self.compute_format_data(result)
    239             self.write_format_data(format_dict)
    240             self.update_user_ns(result)

/usr/local/SAGE/local/lib/python2.7/site-packages/IPython/core/ in compute_format_data(self, result)
    148             MIME type representation of the object.
    149         """
--> 150         return
    152     def write_format_data(self, format_dict):

/usr/local/SAGE/local/lib/python2.7/site-packages/IPython/core/ in format(self, obj, include, exclude)
    124                     continue
    125             try:
--> 126                 data = formatter(obj)
    127             except:
    128                 # FIXME: log the exception

/usr/local/SAGE/local/lib/python2.7/site-packages/sage/misc/sage_extension.pyc in __call__(self, obj)
    236         s = format_obj(obj)
    237         if s is None:
--> 238             s = super(SagePlainTextFormatter, self).__call__(obj)
    239         return s

/usr/local/SAGE/local/lib/python2.7/site-packages/IPython/core/ in __call__(self, obj)
    445                 type_pprinters=self.type_printers,
    446                 deferred_pprinters=self.deferred_printers)
--> 447             printer.pretty(obj)
    448             printer.flush()
    449             return stream.getvalue()

/usr/local/SAGE/local/lib/python2.7/site-packages/IPython/lib/ in pretty(self, obj)
    358                             if callable(meth):
    359                                 return meth(obj, self, cycle)
--> 360             return _default_pprint(obj, self, cycle)
    361         finally:
    362             self.end_group()

/usr/local/SAGE/local/lib/python2.7/site-packages/IPython/lib/ in _default_pprint(obj, p, cycle)
    478     if getattr(klass, '__repr__', None) not in _baseclass_reprs:
    479         # A user-provided repr.
--> 480         p.text(repr(obj))
    481         return
    482     p.begin_group(1, '<')

/usr/local/SAGE/local/lib/python2.7/site-packages/sage/structure/ in sage.structure.sage_object.SageObject.__repr__ (sage/structure/sage_object.c:1897)()

/usr/local/SAGE/local/lib/python2.7/site-packages/sage/plot/graphics.pyc in _repr_(self)
    823         """
    824         if SHOW_DEFAULT:
--> 825   
    826             return ''
    827         else:

/usr/local/SAGE/local/lib/python2.7/site-packages/sage/misc/decorators.pyc in wrapper ...
edit retag flag offensive close merge delete


In your case, it seems that you do not have the good version of the standard C library. Could you check with your packet manager which version of glibc is installed on your computer ?

vdelecroix gravatar imagevdelecroix ( 2013-05-16 23:55:59 -0600 )edit

3 answers

Sort by ยป oldest newest most voted

answered 2013-05-17 02:29:36 -0600

tmonteil gravatar image

updated 2013-06-19 13:01:42 -0600

glibc is provided by the libc6 package. As you can check, Linux Mint 13 is based on Ubuntu 12.04 (precise), whose libc6 has version 2.15. The binary you downloaded on was compiled on a Ubuntu 13.04, whose libc6 has version 2.17, which explains the error you get.

There are (at least) 2 workarounds to your problems:

  • upgrade to linux Mint 15 (Mint 14 also provides glibc-2.15, so it won't help you). But this version seems to be release-candidate, so it is up to you to wait until it becomes the official release.

  • Compile sage by yourself. It is not as hard as you might expect, you will basically only have to install a few package, and the run the make command in your Sage directory.

By the way, you put a symbolic link to the binary to /sbin/ directory (your step 4). As you can see, this directory is aimed at system binaries (those run by root), but sage is intented to be run by a simple user. In order not to get bad habits, i would advise to put your link in /usr/local/bin/ instead.

Welcome to the Linux world :)

edit flag offensive delete link more

answered 2013-05-20 10:46:30 -0600

mresimulator gravatar image

Thanks for your help!

I fix-it: I just install sage from repositories and that's all.

Thanks again.

Best regards!

edit flag offensive delete link more


You mean this repository right ? I thought it was offline. Thanks for mention it !

koukourikos gravatar imagekoukourikos ( 2013-05-24 05:25:35 -0600 )edit

answered 2013-05-17 07:50:03 -0600

koukourikos gravatar image

I can see that your CPU (Intel atom N2600) supports 64bit (You can verify that by using the command:

lscpu | grep Architecture

or visiting this link

So if your Linux Mint installation is 64bit (check it with the following command:)

uname -m

you can just grab the sage-5.9-linux-64bit-ubuntu_12.04.2_lts-x86_64-Linux.tar.lzma file from the 64bit directory from the sage mirror that you use.

Of course if you have installed the 32bit version then you have to upgrade your distribution. In this case its better to go with the 64bit version because as you can see from the 64bit directory their sage packages get support for longer periods.(Ubuntu 8.04 64bit is still in the list !)

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2013-05-16 16:15:11 -0600

Seen: 1,255 times

Last updated: Jun 19 '13