Ask Your Question
0

Why the software does not work in Ubuntu and Fedora ?

asked 2013-05-31 10:02:15 +0200

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

I want to install Sagemath on Ubuntu , I download the binaries and extract it. But when I run sage by calling the command: sage , nothing happens. When I go to the Sage's folder and I click the Sage file, it opens with gedit. However, into the properties of the file, I clicked on the "Execution" box.

I am a new linux user. Using windows xp and vmware, I have no problem.

I also tried to install Sage on Fedora but there are the same problems.

Thank you for your help!

edit retag flag offensive close merge delete

5 Answers

Sort by ยป oldest newest most voted
1

answered 2013-05-31 19:19:14 +0200

tmonteil gravatar image

updated 2013-05-31 19:19:40 +0200

There should be a file named libcsage.so in the directory /home/oli/sage-5.9-linux-64bit-ubuntu_12.04.2_lts-x86_64-Linux/local/lib/. Do you see it ? For this, type:

ls ~/sage-5.9-linux-64bit-ubuntu_12.04.2_lts-x86_64-Linux/local/lib/libcsage.so

If ther is No such file or directory, could you unpack the tarball sage-5.9-linux-64bit-ubuntu_12.04.2_lts-x86_64-Linux.tar.lzma again, and see if there is some message, saying that the archive is incomplete or something like that.

tar xvf sage-5.9-linux-64bit-ubuntu_12.04.2_lts-x86_64-Linux.tar.lzma

If there is a complain, you should download the tarball again and check its integrity by typing:

md5sum sage-5.9-linux-64bit-ubuntu_12.04.2_lts-x86_64-Linux.tar.lzma

and compare with the corresponding line in this file

edit flag offensive delete link more
1

answered 2013-06-02 18:07:38 +0200

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

On Fedora >= 18 you just have to run

sudo yum install sagemath
edit flag offensive delete link more

Comments

Thanks. And have you tested and compared the execution speed of different algorithms on different linux distributions. Are there a faster linux distributions? ( exucuse me for my english langage!!!)

moroplogo gravatar imagemoroplogo ( 2013-06-04 13:54:41 +0200 )edit
1

answered 2013-05-31 11:06:19 +0200

tmonteil gravatar image

updated 2013-06-01 11:37:30 +0200

A possible reason could be that the sage script is not in your path. Open a terminal, go to Sage's folder (using the command cd) and then type:

./sage

(notice the dot and the slash before the word sage). If this works, read this to understand what happened.

edit flag offensive delete link more
0

answered 2013-05-31 21:23:23 +0200

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

Thanks

I downloaded again with another server and I can use sage normaly .

It's very pleasure to resolve a problem with your help!

edit flag offensive delete link more
0

answered 2013-05-31 19:06:48 +0200

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

Thanks tmonteil for your help! This is what gives the code: ./sage

oli@oli-Aspire-7720Z:~/sage-5.9-linux-64bit-ubuntu_12.04.2_lts-x86_64-Linux$ cd ~/sage-5.9-linux-64bit-ubuntu_12.04.2_lts-x86_64-Linux && chmod +x sage && ./sage
----------------------------------------------------------------------
| Sage Version 5.9, Release Date: 2013-04-30                         |
| Type "notebook()" for the browser-based notebook interface.        |
| Type "help()" for help.                                            |
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/oli/sage-5.9-linux-64bit-ubuntu_12.04.2_lts-x86_64-Linux/local/bin/sage-ipython", line 6, in <module>
    from sage.misc.interpreter import SageTerminalApp
  File "/home/oli/sage-5.9-linux-64bit-ubuntu_12.04.2_lts-x86_64-Linux/local/lib/python2.7/site-packages/sage/misc/interpreter.py", line 67, in <module>
    import os, log, re, new, sys
  File "/home/oli/sage-5.9-linux-64bit-ubuntu_12.04.2_lts-x86_64-Linux/local/lib/python2.7/site-packages/sage/misc/log.py", line 65, in <module>
    import latex
  File "/home/oli/sage-5.9-linux-64bit-ubuntu_12.04.2_lts-x86_64-Linux/local/lib/python2.7/site-packages/sage/misc/latex.py", line 60, in <module>
    from sage.misc.cachefunc import cached_function, cached_method
ImportError: libcsage.so: cannot open shared object file: No such file or directory
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "/home/oli/sage-5.9-linux-64bit-ubuntu_12.04.2_lts-x86_64-Linux/local/lib/python/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "/home/oli/sage-5.9-linux-64bit-ubuntu_12.04.2_lts-x86_64-Linux/local/lib/python2.7/site-packages/sage/misc/temporary_file.py", line 51, in delete_tmpfiles
    from sage.misc.misc import SAGE_TMP
  File "/home/oli/sage-5.9-linux-64bit-ubuntu_12.04.2_lts-x86_64-Linux/local/lib/python2.7/site-packages/sage/misc/misc.py", line 39, in <module>
    import sage.misc.prandom as random
  File "/home/oli/sage-5.9-linux-64bit-ubuntu_12.04.2_lts-x86_64-Linux/local/lib/python2.7/site-packages/sage/misc/prandom.py", line 58, in <module>
    from sage.misc.randstate import current_randstate
ImportError: libcsage.so: cannot open shared object file: No such file or directory
Error in sys.exitfunc:
Traceback (most recent call last):
  File "/home/oli/sage-5.9-linux-64bit-ubuntu_12.04.2_lts-x86_64-Linux/local/lib/python/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "/home/oli/sage-5.9-linux-64bit-ubuntu_12.04.2_lts-x86_64-Linux/local/lib/python2.7/site-packages/sage/misc/temporary_file.py", line 51, in delete_tmpfiles
    from sage.misc.misc import SAGE_TMP
  File "/home/oli/sage-5.9-linux-64bit-ubuntu_12.04.2_lts-x86_64-Linux/local/lib/python2.7/site-packages/sage/misc/misc.py", line 39, in <module>
    import sage.misc.prandom as random
  File "/home/oli/sage-5.9-linux-64bit-ubuntu_12.04.2_lts-x86_64-Linux/local/lib/python2.7/site-packages/sage/misc/prandom.py", line 58, in <module>
    from sage.misc.randstate import current_randstate
ImportError: libcsage.so: cannot open shared object file: No such file or directory





oli@oli-Aspire-7720Z:~/sage-5.9-linux-64bit-ubuntu_12.04.2_lts-x86_64-Linux$ ./sage
----------------------------------------------------------------------
| Sage Version 5.9, Release Date: 2013-04-30                         |
| Type "notebook()" for the browser-based notebook interface.        |
| Type "help()" for help.                                            |
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/oli/sage-5.9-linux-64bit-ubuntu_12.04.2_lts-x86_64-Linux/local/bin/sage-ipython", line 6, in <module>
    from sage.misc.interpreter import SageTerminalApp
  File "/home/oli/sage-5.9-linux-64bit-ubuntu_12.04.2_lts-x86_64-Linux/local/lib/python2.7/site-packages/sage/misc/interpreter.py", line 67, in <module>
    import os, log, re, new, sys
  File "/home/oli/sage-5.9-linux-64bit-ubuntu_12.04.2_lts-x86_64-Linux/local/lib/python2.7/site-packages/sage/misc/log.py", line 65, in <module>
    import latex
  File "/home/oli/sage-5.9-linux-64bit-ubuntu_12.04 ...
(more)
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

Stats

Asked: 2013-05-31 10:02:15 +0200

Seen: 736 times

Last updated: Jun 02 '13