Ask Your Question
0

how do I remove this sage installation problem

asked 2013-02-12 23:15:13 +0100

anonymous user

Anonymous

I have attempted to install sage on my ubuntu machine. Files are extracted properly and when I try to install by typing ./sage it first gives me hopes by saying:

"The Sage installation tree has moved from /home/meghak/Desktop/meghasage/sage-5.6-linux-32bit-ubuntu_12.04.1_lts-i686-Linux to /home/meghak/Desktop/meghasage/sage5.6 Updating various hardcoded paths... (Please wait at most a few minutes.) DO NOT INTERRUPT THIS.
Done updating paths."

but then it gives me a message "spkg/bin/sage: line 324:...local/bin/sage-ipython: Permission denied "

I looked into line 324 , it is indicated as ... in the following:

sage() { sage_setup sage-ipython "$@" -i }

Please help, it might be a trivial question but I am not getting it. Thanks in advance.

edit retag flag offensive close merge delete

Comments

1

What is the output of the following command (run it from the command prompt) ls -l /home/meghak/Desktop/meghasage/sage5.6/local/bin/sage-ipython

ppurka gravatar imageppurka ( 2013-02-13 00:42:44 +0100 )edit

To elaborate, you probably have the wrong permissions on some of your folders and aren't allowed to write/create a file somewhere.

kcrisman gravatar imagekcrisman ( 2013-02-13 10:26:54 +0100 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2013-02-13 16:54:11 +0100

Run Sage once as root:

sudo ./sage --nodotsage

This will give Sage the permissions it needs to update the paths. Afterwards, you will be able to run Sage as a normal user.

edit flag offensive delete link more

Comments

Is this anywhere in the installation doc? And is it safe if you are not the only user on a computer?

kcrisman gravatar imagekcrisman ( 2013-02-13 22:00:45 +0100 )edit

"sudo ./sage --nodotsage" did not work. I still have 'permission denied' message. I also checked i-python permissions, according to what ppurka suggested. I get "-rw-r--r-- 1".

Megha K. gravatar imageMegha K. ( 2013-02-14 04:03:42 +0100 )edit

@Megha - right. You are missing execute permissions. How did you miss out on execute permissions? I am pretty sure the downloaded Sage tarball has execute permissions in the required files. You can not go around fixing execute permissions file by file. There are too many files and not all of them should have this permission. I suggest you download the sage binary again. This time, be more careful and this time extract it with tar pxf downloaded_filename The 'p' in there should ensure that the extracted files have got the correct permissions. If you have the downloaded tar.lzma file, then you don't need to download that again. Simply run the above tar command.

ppurka gravatar imageppurka ( 2013-02-14 05:52:56 +0100 )edit

Thanks. I will do that.

Megha K. gravatar imageMegha K. ( 2013-02-14 23:45:51 +0100 )edit

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

Stats

Asked: 2013-02-12 23:15:13 +0100

Seen: 859 times

Last updated: Feb 13 '13