Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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"
     fi
fi

# 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
    PATH="$HOME/bin:$PATH"
    export TCL_LIBRARY=/usr/share/tcltk/tcl8.4

fi

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

share|improve this question
1  
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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.