Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am unable to add path of my omnet bin directory for the installation.

During the installation i go to the omnet directory and enter ./configure which gives me the following errors

WARNING: your PATH doesn't contain /home/ABC/Desktop/omnetpp-4.1/bin!
Add the following line to your .profile or .bash_profile (provided you use bash):
export PATH=$PATH:/home/ABC/Desktop/omnetpp-4.1/bin

WARNING: The TCL_LIBRARY environment variable is not set, and without it
Tkenv (the GUI runtime environment) may be unable to find the BLT library.

Add the following line to your .profile or .bash_profile (provided you use bash):
export TCL_LIBRARY=/usr/share/tcltk/tcl8.4

So i do the exact thing ... go to the profile file ~/.profile and it now looks like this

# if running bash
if [ -n "$BASH_VERSION" ]; then
     # include .bashrc if it exists
     if [ -f "$HOME/.bashrc" ]; then
     . "$HOME/.bashrc"

# set PATH so it includes user's private bin if it exists
export PATH=$PATH:/home/ABC/Desktop/omnetpp-4.1/bin
if [ -d "$HOME/bin" ] ; then
    export TCL_LIBRARY=/usr/share/tcltk/tcl8.4


But still the error persists. What am i doing wrong ??

share|improve this question
Have you logged in again, to make the changes to .profile effective? – enzotib Apr 11 '11 at 20:50
What does echo $PATH say? – Adam Byrtek Apr 11 '11 at 21:01
Why do you only set it if you have a directory named "$HOME/bin"? – geirha Apr 12 '11 at 6:28
up vote 3 down vote accepted

Make sure you have logged back in (the changes happen only when you start a new shell). Additionally, try using .bash_profile instead of .profile. To test without logging back in, you can source the file directly by typing:

. ~/.profile
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.