LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-27-2004, 09:31 AM   #1
basix
Member
 
Registered: Dec 2003
Distribution: Red Hat Linux 9, Fedora Core 1, *Fedora Core 2*
Posts: 74

Rep: Reputation: 15
Angry Export command doesnt work correctly


Hi, I am running Redhat 9. The other day I installed AMSN for which I was required to install tcl/tk. I managed to install them but for some reason I wasnt able to use the "wish" command. But then I found out that the path to the wish command wasnt set. So I used "export <my tcl/tk path>" and it worked but for only that particular session. Now everytime i need to use the wish command I need to first run the export command and then i can use the wish command.

How can I permenantly put it in whatever config file the export command puts it in?
 
Old 02-27-2004, 09:52 AM   #2
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
edit the $HOME/.bash_profile file
then re-login... see if that works.
 
Old 02-27-2004, 11:54 AM   #3
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
You can also just type 'source /etc/profile' (which should load default environment variables and then load your user variables) or 'source ~/.bash_profile'.
 
Old 02-28-2004, 12:03 AM   #4
basix
Member
 
Registered: Dec 2003
Distribution: Red Hat Linux 9, Fedora Core 1, *Fedora Core 2*
Posts: 74

Original Poster
Rep: Reputation: 15
Thankyou. I edited my .bash_profile and got it working =)
 
Old 02-28-2004, 07:54 AM   #5
andrewlkho
Member
 
Registered: Jul 2003
Location: London
Posts: 548

Rep: Reputation: 30
Of course, the other option is to make a symlink to /usr/local/amsn/amsn or wherever you put the binary in somewhere already in your path directory, which is what I do.
 
Old 02-28-2004, 08:01 AM   #6
basix
Member
 
Registered: Dec 2003
Distribution: Red Hat Linux 9, Fedora Core 1, *Fedora Core 2*
Posts: 74

Original Poster
Rep: Reputation: 15
Ahem...how do I make a symlink?
 
Old 02-28-2004, 10:54 AM   #7
andrewlkho
Member
 
Registered: Jul 2003
Location: London
Posts: 548

Rep: Reputation: 30
# ln -s /path/to/amsn /usr/bin/amsn
 
  


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
Why doesnt my USB mouse doesnt work? barkha Linux - Hardware 2 08-16-2005 11:31 AM
[IPTABLES] FTP doesnt work with ls command narmida Linux - Networking 3 03-11-2005 12:51 PM
My router command doesnt work digital bots Linux - Networking 1 05-24-2004 01:23 PM
./wlanup command doesnt work Kilahchris Linux - Wireless Networking 4 05-10-2004 09:48 PM
How does "export" command work? sitg Linux - Networking 1 03-15-2004 11:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:21 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