Installing Anaconda by Another Script and Sudo

瀏覽次數:0 次
跳到第一則未讀訊息

Mike

未讀,
2015年2月26日 晚上10:20:272015/2/26
收件者:anac...@continuum.io

I need to install anaconda in the /opt and have to use sudo to do so. I also need to make anaconda install part of a bigger install script but Anaconda install script cause exit to my global install and somehow I land in as a root.

myscript.sh is

...
chmod 777 ./Anaconda-2.1.0-Linux-x86_64.sh
./Anaconda-2.1.0-Linux-x86_64.sh -b -p /usr/share/anaconda 

echo done
conda update conda

..


and I call
ubuntu@mynode:/tmp$ sudo ./myscript.sh

and the result becomes

...
installing: anaconda-2.1.0-np19py27_0 ...
installing: _cache-0.0-x0 ...
Python 2.7.8 :: Continuum Analytics, Inc.
creating default environment...
installation finished.
root@mynode:/tmp#

so the line "echo done" never executes.

Please help. How do I fix this? I tried background job but that do not work either. 






Ilan Schnell

未讀,
2015年2月26日 晚上10:24:562015/2/26
收件者:Anaconda
I would remove the "chmod 777" command, and use

bash ./Anaconda-2.1.0-Linux-x86_64.sh -b -p /usr/share/anaconda

however, this should not be what is causing the problem.

--
Anaconda Community Support Group Brought to you by Continuum Analytics
---
You received this message because you are subscribed to the Google Groups "Anaconda - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to anaconda+u...@continuum.io.
To post to this group, send email to anac...@continuum.io.
Visit this group at http://groups.google.com/a/continuum.io/group/anaconda/.

回覆所有人
回覆作者
轉寄
0 則新訊息