LinuxQuestions.org
Review your favorite Linux distribution.
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 03-20-2015, 01:54 AM   #1
Jyotsna Wagh
LQ Newbie
 
Registered: Mar 2015
Posts: 8

Rep: Reputation: Disabled
facing problem while installing ns-allinone2.33 in Ubuntu 10.04


hello sir
I m new in Linux. I m trying to install ns-allinone2.33 package in Ubuntu 10.04. according to step which I follow. i have already extract ns-allinone2.33package in home folder. bt I m getting problem in installing dependencies. when i write the command "$ sudo apt-get install build-essential autoconf automake libxmu-dev gcc-4.3", i m getting the message like "unable to fetch some archive, maybe run apt-get update or try with -fix-missing?". so because of that next steps are not working. please help me out.
 
Old 03-20-2015, 05:11 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,570

Rep: Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258
Welcome to LQ.

The ns2 build prerequisites are : g++ automake libtool libxmu-dev
* Please install with :
Code:
sudo apt-get update && sudo apt-get install g++ automake libtool libxmu-dev
"g++-4.3 / gcc-4.3" is a leftover from Ubuntu 9.10.
Also usable in 10.04 : Until about 'June 2011' !


The build of ns-allinone-2.33 goes like this :
1) Unpack ns-allinone-2.33.tar.gz in /home/name/ (Not Desktop) :
$ tar xvf ns-allinone-2.33.tar.gz
2) $ cd ns-allinone-2.33/
3) $ patch -p0 < otcl_ns234_gcc-4.4.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing
4) $ ./install
5) $ cd ns-2.33/
6) $ sudo make install


-
 
Old 03-24-2015, 10:21 AM   #3
Jyotsna Wagh
LQ Newbie
 
Registered: Mar 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
About post #2

Hello sir,
I am trying to install ns2.33 allinone package on ubuntu 10.04.I am using following steps,
1. Download ns-allinone-2.33.tar and place it in home folder.

2. Extract the file "ns-allinone-2.33.tar" manually by right clicking and by using "extract here" command or by,
$ cd /home/rabin
$ tar -xvf ns-allinone-2.33.tar

3. Download and install other packages like C++ compiler etc. by,
$ sudo apt-get install build-essential autoconf automake libxmu-dev gcc-4.3

4. Edit "makefile.in"
$ cd ns-allinone-2.33/otcl-1.13
$ gedit Makefile.in
Find the line with
CC = @CC@
and Change it to
CC = gcc-4.3

5. Install ns2.33
$ cd ns-allinone-2.33
$ ./install

6. Add path in the .bashrc by puttiing the following lines in the file and Replace /home/rabin by your particular directory name /home/your name and save the file.

$ gedit ~/.bashrc

# LD_LIBRARY_PATH
OTCL_LIB=/home/rabin/ns-allinone-2.33/otcl-1.13
NS2_LIB=/home/rabin/ns-allinone-2.33/lib
X11_LIB=/usr/X11R6/lib
USR_LOCAL_LIB=/usr/local/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB
:$X11_LIB:$USR_LOCAL_LIB

# TCL_LIBRARY
TCL_LIB=/home/rabin/ns-allinone-2.33/tcl8.4.18/library
USR_LIB=/usr/lib
export TCL_LIBRARY=$TCL_LIB:$USR_LIB

# PATH
XGRAPH=/home/rabin/ns-allinone-2.33/bin:/home/rabin/ns-allinone-2.33/tcl8.4.18/unix:/home/rabin/ns-allinone-2.33/tk8.4.18/unix:/home/rabin/ns-allinone-2.33/xgraph-12.1/
NS=/home/rabin/ns-allinone-2.33/ns-2.33/
NAM=/home/rabin/ns-allinone-2.33/nam-1.13/
export PATH=$PATH:$XGRAPH:$NS:$NAM

7. Validate the ns2.33

$ cd ns-2.33
$ ./validate

8. Create a symlink, so that it can be called from any directory

$ sudo ln -s /home/rabin/ns-allinone-2.33/ns-2.33/ns /usr/bin/ns
$ source ~/.bashrc

9. Run NS2.33
$ ns

10. Network animator nam requires additional patch to run.

As you have suggested in previous post to unpack the package by using command,
$ tar xvf ns-allinone-2.33.tar.gz
I am getting the msg as follow,
tar:ns-allinone-2.33.tar.gz:cannot open:No such file or Directory
tar:Error is not recoverable:existing now
And whatever changes you have given me in above step no.3 i.e as given below,
sudo apt-get update && sudo apt-get install g++ automake libtool libxmu-dev
I am getting a error as per given below,
E=some index files failed to download,they have been ignored,or old ones used instead.
So please help me out sir.
 
Old 03-24-2015, 11:05 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,570

Rep: Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258
Quote:
Error = some index files failed to download
Ubuntu 10.04 : End of life = 'May 9, 2013'
https://wiki.ubuntu.com/Releases
Solution : Replace the text in /etc/apt/sources.list with these new lines:
Code:
deb http://old-releases.ubuntu.com/ubuntu/ lucid main restricted
deb http://old-releases.ubuntu.com/ubuntu/ lucid multiverse universe
deb http://old-releases.ubuntu.com/ubuntu/ lucid-updates main restricted
deb http://old-releases.ubuntu.com/ubuntu/ lucid-updates multiverse universe
deb http://old-releases.ubuntu.com/ubuntu/ lucid-backports main restricted
deb http://old-releases.ubuntu.com/ubuntu/ lucid-backports multiverse universe
deb http://old-releases.ubuntu.com/ubuntu/ lucid-security main restricted
deb http://old-releases.ubuntu.com/ubuntu/ lucid-security multiverse universe

About the procedure in post #3 :
Don't believe everything you read on the Internet.
Most (99 percent) of the ns2 "tutorials" are written by young students,
who are using ns2 and a 'Linux OS' for the first time.
And their text is most often a copy of a text written by another young student.
* The year ~1999 text about adding some *PATH text to .bashrc :
Was intended to use for a "University Computer".
I.e. you had no write permissions to /usr/,
and was denied to do 'make install', to /usr/local/.
Today, 16 years later you can just do $ sudo make install
..... See post #2.

Nam : Please use the package nam-1.14-10_i386.deb
https://drive.google.com/file/d/0B7S...ew?usp=sharing
$ cd Downloads/
$ sudo dpkg -i nam-1.14-10_i386.deb

-
 
Old 03-26-2015, 07:27 AM   #5
Jyotsna Wagh
LQ Newbie
 
Registered: Mar 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
About post #4

Hello sir,
As you have stated in post#4 to replace the text in /etc/apt/sources.list ,so where I will get that?
And sir,you have not still answerd for unpacking the package.Is it compulsory to unpack the package by using command which you have given to me because I am getting problem which I have already stated in post#3.I have already unpacked that package by right clicking on package and using Extract Here option.So what should I do now? .By the time it becomes very much complicated for me.So pleaaaase help me sir.
 
Old 03-26-2015, 09:54 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,570

Rep: Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258
Ref. post #5.
Quote:
replace the text in /etc/apt/sources.list, so where I will get that ?
$ sudo gedit /etc/apt/sources.list
... Then delete the current lines.
And next : Copy / paste the 8 new lines from post #4. Save and close.



Quote:
I am getting problem which I have already stated in post #3
Quote:
1. Download ns-allinone-2.33.tar and place it in home folder.
? So what's your location when you try to do: $ tar xvf ns-allinone-2.33.tar.gz
I.e. the first command is always $ pwd
... to decide your location.

And : The "home folder" is not the Desktop/.

-
 
Old 03-26-2015, 11:47 AM   #7
Jyotsna Wagh
LQ Newbie
 
Registered: Mar 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
About post #6

Hi sir,
Iam getting same error,
E=Some index files failed to download……
Even after doing the changes in /etc/apt/sources.list, as you have suggested previously.So what to do now?
And sir,I have already downloaded ns2.33 package and placed in home folder.But when I open the terminal and type that command,
tar xvf ns-allinone-2.33.tar.gz
I get msg I.e No such file or Directory
 
Old 03-26-2015, 12:01 PM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,570

Rep: Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258
Ref. post #7.

1) Error=Some index files failed to download .. :
Please confirm that /etc/apt/sources.list now has 8 lines.
Note : An error may not mean you cannot install packages.


2) No such file or Directory :
What's the location of 'ns-allinone-2.33.tar.gz' ?
? What is the output from the command $ pwd
 
Old 03-27-2015, 01:24 AM   #9
Jyotsna Wagh
LQ Newbie
 
Registered: Mar 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
Unhappy About post #8

Sir,
1)I confirm you that,there are only 8 lines in /etc/apt/sources.list . still I am getting error as told before. And whatever note you have mentioned previously,is it mean that even after getting error ,I can proceed?.
2)As you have stated to use command i.e $ pwd on terminal ,I am getting result as below ,
/home/jyotsna
 
Old 03-27-2015, 09:34 AM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,570

Rep: Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258
Repeat : What's the location of 'ns-allinone-2.33.tar.gz' ?

!
Please make sure you have a copy of 'ns-allinone-2.33.tar.gz' in /home/jyotsna/.
!



-
 
Old 03-27-2015, 10:13 AM   #11
Jyotsna Wagh
LQ Newbie
 
Registered: Mar 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
About post #10

Sir,
I am trying to say that,I have copied the package ns-allinone-2.33.tar.gz in home folder.So its location is in home folder okk. After this I opened the terminal & I used that command directly,so you mean to say I am going wrong?.And what about my first point in post #8.Sir,I am not getting what you are trying to say about unpacking and sorry for asking again & again, but help me.

Last edited by Jyotsna Wagh; 03-27-2015 at 10:14 AM.
 
Old 03-27-2015, 10:50 AM   #12
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,570

Rep: Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258
First : Forget that you have read the faulty instructions you quoted in post #3.

And stick to the text in post #2.
... Just keep trying ... until you get an OK result.
 
Old 03-27-2015, 08:59 PM   #13
Jyotsna Wagh
LQ Newbie
 
Registered: Mar 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
About post #12

Sir,
I am strictly following the steps you have given in post #2.And what about my 1'st point post #8.
 
Old 03-28-2015, 08:16 AM   #14
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,570

Rep: Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258Reputation: 3258
Quote:
1) Error=Some index files failed to download
Which of the links aren't working ?

? May be you could show a copy of your /etc/apt/sources.list
 
Old 03-30-2015, 09:23 AM   #15
Jyotsna Wagh
LQ Newbie
 
Registered: Mar 2015
Posts: 8

Original Poster
Rep: Reputation: Disabled
Smile About post #14

Hello sir,
I am delighted to say that my ns2.33 package has successfully installed.
Thank you very very much.I just followed your steps carefully and finally I got what I want.
Now, sir please tell me how to install nam package.
 
  


Reply

Tags
ns2


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
HELP, allinone2.33 installation error on ubuntu vuichoigiaitri Linux - Networking 7 09-17-2012 11:56 AM
Facing problem installing firefox 3 at RHEL 6 ahrahman Linux - Newbie 1 04-24-2012 05:14 AM
problem facing in ubuntu 10.04 dipu.singh2008@gmail.com Linux - Newbie 4 02-12-2012 08:55 PM
Facing problem while installing VLC player? rafimd786 Linux - Software 5 07-11-2009 09:07 AM
Facing problem in installing gcc zener Linux - Software 3 06-19-2006 07:46 AM


All times are GMT -5. The time now is 11:09 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration