How to : setting PATH variable for TCL
hii friends , this is a simple problem , but don't mind . plz help me
i had installed tcl. when i tried to access through commands it is giving error Code:
$tcl Code:
$ whereis tcl Code:
# echo "PATH=$PATH: /usr/lib/tcl/" >> ~/.bashrc Code:
bash: /usr/lib/tcl/: is a directory how to remove error message of my wrong path command ??( /usr/lib/tcl/ is a directory ) |
You need to add this line in .bash_profile or you can add a file .profile and insert this line to this.
Code:
echo "PATH=$PATH:/usr/lib/tcl >> .bash_profile |
Hi-
i read where a person did this.... export PATH=/opt/tcltk-8.4/bin:$PATH it is pointing to bin directory for tcl (whereever that resides on your system). if you do it this way you will have to type each time you make a new shell i think. here is the link: export PATH=/opt/tcltk-8.4/bin:$PATH it is worth a try anyways. thanks mtdew3q |
Quote:
hey As you suggested, i tried as below Then i got error Code:
linux-kt0w:/home/raju # export PATH=/usr/lib/tcl: $PATH |
Hi -
the link where i got the tip was here: http://www.damnsmalllinux.org/f/topic-3-23-13180-5.html export PATH=/opt/tcltk-8.4/bin:$PATH ---------------------------------------------------------------- from another site: http://www.cyberciti.biz/faq/unix-linux-adding-path/ ----------------------------------------------------------------------------------- export PATH=$PATH:/usr/local/bin BASH / SH shell uses following syntax: export PATH=$PATH:/path/to/dir1:/path/to/dir2 so for example: export PATH=$PATH:/opt/ActiveTcl-8.5/bin looking at these 2 examples from different sites they look kind of identical and just switched around. I am not an expert but this seems to me like it works. maybe you are specifying the name of the binary file correctly like wish8.5 or tclsh8.5 (try using bash maybe) i might have some links for you if this helped for some cool tcl stuff that has to do with c++. for my hobby i am working on other stuff now though mostly java at 3rdshiftcoder.com i hope some of this helps. take care - mtdew3q |
hi-
i think you put an extra space that you may not want in your export command from above. i believe it is supposed to run together. mtdew3q |
still getting startup error
hey thank you for replying me !
i am still gettin an error message at Terminal startup . Code:
raju@linux-kt0w:~> |
I reveal you a secret: there is no executable called tcl. The /usr/lib/tcl and /usr/share/tcl reported by the whereis command are indeed two directories. If you want to interactively run tcl commands, you have to type:
Code:
$ tclsh |
Hey thank You !!! it's working !!! :) :)
|
hey that command is working !!
but how to remove that message's . Those message came by my wrong commands Code:
# echo "PATH=$PATH: /usr/lib/tcl/" >> ~/.bashrc |
Code:
# echo "PATH=$PATH: /usr/lib/tcl/" >> ~/.bashrc Code:
kwrite ~/.bashrc |
yes, i know that . I had allready tried in VI editor. but i haven't found line related to that command. Please once look at my .bashrc file
Quote:
|
Well, the command is quite clear and the line should have been added to .bashrc. Maybe you were logged as root when applying that command? Check the files ~/.bashrc of root and of the users you normally use on this machine.
|
yes, it's true
i am sorry for above , i had n't mentioned that i had edited in root mode.
even i getting message in running as mode only.( i.e. after su command ) Code:
linux-kt0w:/home/raju # vi ~/.bashrc I don't want to remove path variables for ns, which lines i had to edit ? |
hey thanks !!
Thank you very much for replying me !!
i had edited those 2 lines . I had deleted the statements after : at the end of each of two lines " /usr/lib/tcl" and " /usr/lib/tcl/" Now i am not getting any error message after opening of terminal in "su" mode . Thanks to all . :) |
All times are GMT -5. The time now is 12:10 PM. |