Ask Your Question
0

Error setting environment variables by sourcing

asked 2015-03-28 08:30:24 +0200

Nownuri gravatar image

updated 2015-03-28 08:31:11 +0200

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 11:59:15 +0200

tmonteil gravatar image

updated 2015-03-28 12:00:18 +0200

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 08:30:24 +0200

Seen: 2,005 times

Last updated: Mar 28 '15