ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Thu, 14 Feb 2013 23:45:51 +0100how do I remove this sage installation problemhttps://ask.sagemath.org/question/9799/how-do-i-remove-this-sage-installation-problem/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. Tue, 12 Feb 2013 23:15:13 +0100https://ask.sagemath.org/question/9799/how-do-i-remove-this-sage-installation-problem/Comment by kcrisman for <p>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: </p>
<p>"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. <br/>
Done updating paths."</p>
<p>but then it gives me a message "spkg/bin/sage: line 324:...local/bin/sage-ipython: Permission denied "</p>
<p>I looked into line 324 , it is indicated as <strong>...</strong> in the following:</p>
<p>sage() {
sage_setup
<strong>sage-ipython "$@" -i
}</strong></p>
<p>Please help, it might be a trivial question but I am not getting it. Thanks in advance. </p>
https://ask.sagemath.org/question/9799/how-do-i-remove-this-sage-installation-problem/?comment=18238#post-id-18238To elaborate, you probably have the wrong permissions on some of your folders and aren't allowed to write/create a file somewhere.Wed, 13 Feb 2013 10:26:54 +0100https://ask.sagemath.org/question/9799/how-do-i-remove-this-sage-installation-problem/?comment=18238#post-id-18238Comment by ppurka for <p>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: </p>
<p>"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. <br/>
Done updating paths."</p>
<p>but then it gives me a message "spkg/bin/sage: line 324:...local/bin/sage-ipython: Permission denied "</p>
<p>I looked into line 324 , it is indicated as <strong>...</strong> in the following:</p>
<p>sage() {
sage_setup
<strong>sage-ipython "$@" -i
}</strong></p>
<p>Please help, it might be a trivial question but I am not getting it. Thanks in advance. </p>
https://ask.sagemath.org/question/9799/how-do-i-remove-this-sage-installation-problem/?comment=18242#post-id-18242What 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
Wed, 13 Feb 2013 00:42:44 +0100https://ask.sagemath.org/question/9799/how-do-i-remove-this-sage-installation-problem/?comment=18242#post-id-18242Answer by ihanson for <p>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: </p>
<p>"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. <br/>
Done updating paths."</p>
<p>but then it gives me a message "spkg/bin/sage: line 324:...local/bin/sage-ipython: Permission denied "</p>
<p>I looked into line 324 , it is indicated as <strong>...</strong> in the following:</p>
<p>sage() {
sage_setup
<strong>sage-ipython "$@" -i
}</strong></p>
<p>Please help, it might be a trivial question but I am not getting it. Thanks in advance. </p>
https://ask.sagemath.org/question/9799/how-do-i-remove-this-sage-installation-problem/?answer=14546#post-id-14546Run 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.Wed, 13 Feb 2013 16:54:11 +0100https://ask.sagemath.org/question/9799/how-do-i-remove-this-sage-installation-problem/?answer=14546#post-id-14546Comment by ppurka for <p>Run Sage once as root:</p>
<pre><code>sudo ./sage --nodotsage
</code></pre>
<p>This will give Sage the permissions it needs to update the paths. Afterwards, you will be able to run Sage as a normal user.</p>
https://ask.sagemath.org/question/9799/how-do-i-remove-this-sage-installation-problem/?comment=18230#post-id-18230@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.Thu, 14 Feb 2013 05:52:56 +0100https://ask.sagemath.org/question/9799/how-do-i-remove-this-sage-installation-problem/?comment=18230#post-id-18230Comment by Megha K. for <p>Run Sage once as root:</p>
<pre><code>sudo ./sage --nodotsage
</code></pre>
<p>This will give Sage the permissions it needs to update the paths. Afterwards, you will be able to run Sage as a normal user.</p>
https://ask.sagemath.org/question/9799/how-do-i-remove-this-sage-installation-problem/?comment=18231#post-id-18231"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". Thu, 14 Feb 2013 04:03:42 +0100https://ask.sagemath.org/question/9799/how-do-i-remove-this-sage-installation-problem/?comment=18231#post-id-18231Comment by kcrisman for <p>Run Sage once as root:</p>
<pre><code>sudo ./sage --nodotsage
</code></pre>
<p>This will give Sage the permissions it needs to update the paths. Afterwards, you will be able to run Sage as a normal user.</p>
https://ask.sagemath.org/question/9799/how-do-i-remove-this-sage-installation-problem/?comment=18233#post-id-18233Is this anywhere in the installation doc? And is it safe if you are not the only user on a computer?Wed, 13 Feb 2013 22:00:45 +0100https://ask.sagemath.org/question/9799/how-do-i-remove-this-sage-installation-problem/?comment=18233#post-id-18233Comment by Megha K. for <p>Run Sage once as root:</p>
<pre><code>sudo ./sage --nodotsage
</code></pre>
<p>This will give Sage the permissions it needs to update the paths. Afterwards, you will be able to run Sage as a normal user.</p>
https://ask.sagemath.org/question/9799/how-do-i-remove-this-sage-installation-problem/?comment=18229#post-id-18229Thanks. I will do that. Thu, 14 Feb 2013 23:45:51 +0100https://ask.sagemath.org/question/9799/how-do-i-remove-this-sage-installation-problem/?comment=18229#post-id-18229