Sage 4.7.1 in Ubuntu Oneiric

Since I am starting a clean install of the new Ubuntu, I proceeded to reinstall Sage. After the usual steps, and running sage, I got an error message, which I had not seen before, starting with:

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)

/usr/local/share/sage-4.7.1/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 

and ending with:

/usr/local/share/sage-4.7.1/local/lib/python2.6/site-packages/numpy/linalg/linalg.py in <module>()
     21         isfinite, size, finfo, absolute, log, exp
     22 from numpy.lib import triu
---> 23 from numpy.linalg import lapack_lite
     24 from numpy.matrixlib.defmatrix import matrix_power
     25 from numpy.compat import asbytes

ImportError: libgfortran.so.3: cannot open shared object file: No such file or directory
Error importing ipy_profile_sage - perhaps you should run %upgrade?
WARNING: Loading of ipy_profile_sage failed.

After some trial and error, I found good keywords to ask google:

sage importerror ubuntu 11.10 libgfortran.so.3

The first result: apt get – How to install gfortran?, from the AskUbuntu site, had the answer: install the package libgfortran3.

About these ads
This entry was posted in Math and tagged , . Bookmark the permalink.

2 Responses to Sage 4.7.1 in Ubuntu Oneiric

  1. Neeraj says:

    Any suggestion on the error —
    ImportError: libgfortran.so.3: cannot open shared object file: No such file or directory
    in sage while plotting a graph…i have checked that i have libgfortran3 installed…

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s