Ask Your Question
0

Error setting environment variables by sourcing

asked 2015-03-28 02:30:24 -0500

Nownuri gravatar image

updated 2015-03-28 02:31:11 -0500

I'm a beginner of unix and struggling with problems. One of them is to run the sage in any directory by typing 'sage'. I have failed even I tried this for 4 hours. Please help me.

I'm using OS X 10.9 but I don't want to use 'alias'. As a practice I want to change PATH to make it.

I have tried

1) adding /Users/jeong/work/Sage/sage-6.4.1/local/bin to /etc/path using 'vim /etc/paths' I added it to the path. And I closed terminal. After opening it again and typing 'sage'. I got error messages

Error: You must set the SAGE_ROOT environment variable or run this script from the SAGE_ROOT or SAGE_ROOT/local/bin/ directory. Error setting environment variables by sourcing '/usr/local/bin/sage-env'; possibly contact sage-devel (see http://groups.google.com/group/sage-d...).

Even I change the '/Users/jeong/work/Sage/sage-6.4.1/local/bin' to '/Users/jeong/work/Sage/sage-6.4.1', it doesn't work.

2) making a symbolic link to /usr/local/bin command: 'ln -s /Users/jeong/work/Sage/sage-6.4.1/local/bin /usr/local/bin'

error messages :

Error: You must set the SAGE_ROOT environment variable or run this script from the SAGE_ROOT or SAGE_ROOT/local/bin/ directory. Error setting environment variables by sourcing '/usr/local/bin/sage-env'; possibly contact sage-devel (see http://groups.google.com/group/sage-d...).

3) making .bash_profile or changing .profile in the home directory

don't work.

Please help me

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-03-28 05:59:15 -0500

tmonteil gravatar image

updated 2015-03-28 06:00:18 -0500

The PATH you have to add is not /Users/jeong/work/Sage/sage-6.4.1/local/bin, but /Users/jeong/work/Sage/sage-6.4.1/, this is where the sage script belongs to. Then this script will use what is in /Users/jeong/work/Sage/sage-6.4.1/local/bin.

edit flag offensive delete link more

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: 2015-03-28 02:30:24 -0500

Seen: 408 times

Last updated: Mar 28 '15