LinuxQuestions.org
Help answer threads with 0 replies.
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 07-06-2012, 03:14 PM   #1
tristein
LQ Newbie
 
Registered: Jul 2012
Posts: 2

Rep: Reputation: Disabled
How do I add paths to the PATH variable


Hi!

I've installed a tree-tagging application, and got the following message once it was successfully installed.

You might want to add /home/tristein/corpora/tools/treetagger/cmd and /home/tristein/corpora/tools/treetagger/bin to the PATH variable so that you do not need to specify the full path to run the tagging scripts.

I'm very new to linux (Ubuntu), and don't know how to do this. I looked at other threads on similar topics, but still didn't see clearly how to do it.

Thanks to all who help me with this rookie question!
 
Old 07-06-2012, 03:58 PM   #2
zwitterion-241920
Member
 
Registered: Nov 2011
Location: AccountKiller
Distribution: AccountKiller
Posts: 89

Rep: Reputation: 39
Did you try this?
http://lmgtfy.com/?q=add+directory+to+path+ubuntu click the first result

Last edited by zwitterion-241920; 07-06-2012 at 04:46 PM. Reason: link doesn't jump to right chapter
 
Old 07-06-2012, 04:24 PM   #3
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hi tristein

If you open your home dir Then press Ctrl+h that will show hidden files,

open file .profile under this section
Code:
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
fi
put in
Code:
PATH="$PATH:/home/tristein/corpora/tools/treetagger/cmd:/home/tristein/corpora/tools/treetagger/bin"
That was helpfull mennohellinga

Last edited by spiky0011; 07-06-2012 at 04:26 PM.
 
1 members found this post helpful.
Old 07-06-2012, 04:37 PM   #4
tristein
LQ Newbie
 
Registered: Jul 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thanks, spiky, that's very clear -- and it works!
 
Old 07-06-2012, 04:40 PM   #5
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
Hi

Can you mark the thread as solved
It,s in thread tools at top of post
 
  


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
How to add user's PATH variable (not easy) g_paschoal Programming 8 10-22-2011 12:37 PM
[SOLVED] How to add an environment variable to the PATH? ggyyree Linux - Newbie 4 11-20-2009 12:49 PM
Add path to $PATH variable alaios SUSE / openSUSE 2 04-19-2009 08:41 AM
How to add new paths to $PATH wrapster Solaris / OpenSolaris 4 06-01-2008 02:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:54 PM.

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
Open Source Consulting | Domain Registration