LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   NS2 (http://www.linuxquestions.org/questions/linux-newbie-8/ns2-4175445269/)

binteasim 01-12-2013 09:40 AM

NS2
 
I've installed two versions of ns2,the process of calling a the version you want to use is that you use source command along with the relevant environment variables file which in my case is bash_profile1 and then ./configure.
My code is as follows:
Code:

dba@dba-Inspiron-N5010:~$ source ~/.bash_profile1
dba@dba-Inspiron-N5010:~$ ./configure
bash: ./configure: No such file or directory

Why do I get the above error?

knudfl 01-12-2013 10:08 AM

Welcome to LQ.

There is usually no './configure' to be done,
when a version of ns-allinone-2.xx has been installed.
( Unless you have added a patch.)

And : The command ./configure can only be used, when a script
by name "configure" is present in the current directory.

What is it you want to "configure" ? ?

-

binteasim 01-12-2013 11:23 AM

NS2
 
Probably I've not made the post clear actually I've two versions of NS2 installed and I followed the simple instructions given in the following link to choose which version to use:

http://ramakrishnamundugar.blogspot....single-os.html

knudfl 01-12-2013 02:51 PM

# 3 : May work with statement "a)" : source ~/.bash_profile1
The following " b) c) d) e) " are irrelevant : Please ignore.
→ → Things that people write in a blog may be meaningless.

./configure, make, 'make install' are used for other tasks.
But never in the order shown in that link.


Another method of having more than one version of ns-allinone-2.xx :
Make copies of the binary 'ns' to different names.
Like : cd ns-allinone-2.29/ns-2.29/ && cp ns ns229
Or : cd ns-allinone-2.34/ns-2.34/ && cp ns ns234
.. Then : sudo cp ns229 /usr/local/bin/ && sudo cp ns234 /usr/local/bin/
.. And the binaries are always in a PATH :
No entries to the .bash_profile are required. Ever.
The binary ns** are hard coded to know the locations of their libraries.

Using : Type e.g. ns229 or ns234, instead of plain 'ns'.


-

binteasim 01-24-2013 02:00 AM

NS2
 
Thankyou Sir.


All times are GMT -5. The time now is 06:13 PM.