LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-12-2013, 09:40 AM   #1
binteasim
Member
 
Registered: Jan 2013
Posts: 54

Rep: Reputation: Disabled
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?
 
Old 01-12-2013, 10:08 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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" ? ?

-
 
Old 01-12-2013, 11:23 AM   #3
binteasim
Member
 
Registered: Jan 2013
Posts: 54

Original Poster
Rep: Reputation: Disabled
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
 
Old 01-12-2013, 02:51 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 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'.


-

Last edited by knudfl; 01-12-2013 at 03:03 PM.
 
Old 01-24-2013, 02:00 AM   #5
binteasim
Member
 
Registered: Jan 2013
Posts: 54

Original Poster
Rep: Reputation: Disabled
NS2

Thankyou Sir.
 
  


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
want to install ns2.29.3 along with mannasim patch for ns2.29 jeevanpinto Linux - Software 4 10-02-2013 12:09 AM
how to install both ns2.28 and ns2.34 versions on ubuntu 10.04? popoaung Linux - Software 3 06-10-2013 04:52 PM
Differences between LEACH results on ns2.1b5 and ns2.35 deepa_2111 Linux - Software 15 05-16-2013 05:53 PM
i am using ubuntu as os. for NS2 to implement a routing protocol in ns2. sujovasu Programming 1 07-27-2010 01:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:33 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
Open Source Consulting | Domain Registration