Ask Your Question
0

how do I remove this sage installation problem

asked 12 years ago

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.

Preview: (hide)

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

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

1 Answer

Sort by » oldest newest most voted
1

answered 12 years ago

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.

Preview: (hide)
link

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

"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. ( 12 years ago )

@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 ( 12 years ago )

Thanks. I will do that.

Megha K. gravatar imageMegha K. ( 12 years ago )

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

Seen: 874 times

Last updated: Feb 13 '13