LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-23-2013, 04:52 AM   #1
sryzdn
Member
 
Registered: Feb 2013
Posts: 253

Rep: Reputation: 1
how to export a path


Hi,

I am installing a package called python-ase. I want to put the directory $HOME/ase in my PYTHONPATH environment variable using the following commands:

Quote:
export PYTHONPATH=$HOME/ase:$PYTHONPATH
export PATH=$HOME/ase/tools:$PATH
but when I have
Quote:
echo $PATH
I cannot see ase and ase/tools in the path. How could it be possible? (I do all these in /home)
 
Old 06-23-2013, 06:23 AM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,576
Blog Entries: 31

Rep: Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195Reputation: 1195
Where are you running those export commands? The classic reason for your problem is putting the export commands in a script and executing it. Easiest solution is to put them in one of your shell's startup files. For bash, ~/.bashrc.

If the problem continues, please give more details of what you are doing.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Export PATH scucci Linux - Newbie 3 10-28-2009 09:14 PM
Ubuntu 8.04 loses my $PATH. Why do I have to repeatedly export PATH= ? oouc Ubuntu 10 09-14-2009 12:54 AM
export PATH problem arnuld Fedora 13 12-13-2007 11:01 AM
export Path=/usr/java:$Path does not seem to work lumix Linux - Newbie 1 03-19-2007 04:11 PM
export PATH disappears twallstr Linux - General 4 12-13-2004 03:57 AM


All times are GMT -5. The time now is 10:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration