First time here? Check out the FAQ!

Ask Your Question
0

Why the software does not work in Ubuntu and Fedora ?

asked 11 years ago

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!

Preview: (hide)

5 Answers

Sort by » oldest newest most voted
1

answered 11 years ago

tmonteil gravatar image

updated 11 years ago

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

Preview: (hide)
link
1

answered 11 years ago

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
Preview: (hide)
link

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 ( 11 years ago )
1

answered 11 years ago

tmonteil gravatar image

updated 11 years ago

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.

Preview: (hide)
link
0

answered 11 years ago

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!

Preview: (hide)
link
0

answered 11 years ago

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)
Preview: (hide)
link

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: 11 years ago

Seen: 886 times

Last updated: Jun 02 '13