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 09-08-2009, 12:14 PM   #1
neeraj.dwivedi
LQ Newbie
 
Registered: Sep 2009
Posts: 27

Rep: Reputation: 15
problem in installing ns2.33 in ubuntu 8.10


I am using UBUNTU8.10 via VMware in windows vista os.
i had installed ns2.33 in this way

$ tar -xzvf ns-allinone-2.33.tar.gz

$ cd ns-allinone-2.33

$ sudo apt-get install build-essential autoconf automake libxmu-dev
or
$ sudo apt-get install -f build-essential libxt-dev libxt6 \
libsm-dev libsm6 libice-dev libice6 libxmu-dev

$./install

Set environment variables
$ gedit ~/.bashrc

$ source ~/.bashrc

########
now problem is this when i try to run the software
$ ns
then error comes :-
"The program 'ns' is currently not installed.
You can install it by typing:
sudo apt-get install host
bash: ns: command not found"

########
during Validation
$ cd ns-2.32
$ ./validate
error comes :-
file not found
some tests failed.
 
Old 09-08-2009, 12:22 PM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,516

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
Quote:
$./install
Does install give you error messages?
 
Old 09-08-2009, 12:59 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,273

Rep: Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663
Welcome to LQ.

Did you check ' .bashrc ' to see, if the new path's
have been set ?

About ./validate : 1) cd ns-allinone-2.33/ns-2.33
2) ./validate

Getting the libraries into the system LIBRARY_PATH in an easy way :
sudo apt-get install tcl8.4 tk8.4

and : cd ns-allinone-2.33/otcl-1.13
sudo make install
cd ../tclcl-1.19
sudo make install
exit
.....

ns + nam in the system PATH :
cd ns-allinone-2.33/ns-2.33
sudo make install
cd ../nam-1.13
sudo make install
... which will copy the two files ns, nam only, to /usr/local/bin/

Good luck !
.....

Last edited by knudfl; 09-08-2009 at 02:23 PM.
 
Old 09-08-2009, 10:15 PM   #4
neeraj.dwivedi
LQ Newbie
 
Registered: Sep 2009
Posts: 27

Original Poster
Rep: Reputation: 15
when i use this command

sudo apt-get install build-essential autoconf automake libxmu-dev

then an error comes "Couldn't find build-essential package".
 
Old 09-08-2009, 11:07 PM   #5
neeraj.dwivedi
LQ Newbie
 
Registered: Sep 2009
Posts: 27

Original Poster
Rep: Reputation: 15
./install errors

Quote:
Originally Posted by repo View Post
Does install give you error messages?
yes sir ...
./install

gives a huge bunch of errors like this ....

/home/neeraj/Ns/ns-allinone-2.33/tk8.4.18/unix/../generic/tk3d.c:1301: error: ‘TkDisplay’ has no member named ‘borderTable’
/home/neeraj/Ns/ns-allinone-2.33/tk8.4.18/unix/../generic/tk3d.c:1301: error: ‘TkDisplay’ has no member named ‘borderTable’
/home/neeraj/Ns/ns-allinone-2.33/tk8.4.18/unix/../generic/tk3d.c:1306: error: ‘TkBorder’ has no member named ‘nextPtr’
/home/neeraj/Ns/ns-allinone-2.33/tk8.4.18/unix/../generic/tk3d.c:1307: error: ‘Tk_FakeWin’ has no member named ‘display’
/home/neeraj/Ns/ns-allinone-2.33/tk8.4.18/unix/../generic/tk3d.c:1307: error: ‘Tk_FakeWin’ has no member named ‘screenNum’
/home/neeraj/Ns/ns-allinone-2.33/tk8.4.18/unix/../generic/tk3d.c:1307: error: ‘TkBorder’ has no member named ‘screen’
/home/neeraj/Ns/ns-allinone-2.33/tk8.4.18/unix/../generic/tk3d.c:1308: error: ‘Tk_FakeWin’ has no member named ‘atts’
/home/neeraj/Ns/ns-allinone-2.33/tk8.4.18/unix/../generic/tk3d.c:1308: error: ‘TkBorder’ has no member named ‘colormap’
/home/neeraj/Ns/ns-allinone-2.33/tk8.4.18/unix/../generic/tk3d.c:1311: error: ‘TkBorder’ has no member named ‘objRefCount’
/home/neeraj/Ns/ns-allinone-2.33/tk8.4.18/unix/../generic/tk3d.c: In function ‘TkDebugBorder’:
/home/neeraj/Ns/ns-allinone-2.33/tk8.4.18/unix/../generic/tk3d.c:1391: error: ‘TkWindow’ has no member named ‘dispPtr’
/home/neeraj/Ns/ns-allinone-2.33/tk8.4.18/unix/../generic/tk3d.c:1394: error: ‘TkDisplay’ has no member named ‘borderTable’
/home/neeraj/Ns/ns-allinone-2.33/tk8.4.18/unix/../generic/tk3d.c:1394: error: ‘TkDisplay’ has no member named ‘borderTable’
/home/neeraj/Ns/ns-allinone-2.33/tk8.4.18/unix/../generic/tk3d.c:1400: error: ‘TkBorder’ has no member named ‘nextPtr’
/home/neeraj/Ns/ns-allinone-2.33/tk8.4.18/unix/../generic/tk3d.c:1403: error: ‘TkBorder’ has no member named ‘resourceRefCount’
/home/neeraj/Ns/ns-allinone-2.33/tk8.4.18/unix/../generic/tk3d.c:1405: error: ‘TkBorder’ has no member named ‘objRefCount’
make: *** [tk3d.o] Error 1
tk8.4.18 make failed! Exiting ...
 
Old 09-09-2009, 12:51 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,273

Rep: Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663
Well, build-essential is a rather short list of packages,
which you probably already have ... + the dependencies ..
which are :
sudo apt-get install dpkg-dev g++ libc6-dev make

These are also needed for ns2 :

sudo apt-get install libx11-dev libxmu-dev libxmu-headers libxt-dev libtool

Then ... may be ... you can do ' ./install '
( I can see, it worked OK on my Ubuntu 8.10 , December 2008.)
.....

Last edited by knudfl; 09-09-2009 at 01:10 AM.
 
Old 09-09-2009, 03:22 AM   #7
neeraj.dwivedi
LQ Newbie
 
Registered: Sep 2009
Posts: 27

Original Poster
Rep: Reputation: 15
thank you sir but
when i use this command :
sudo apt-get install dpkg-dev g++ libc6-dev make

i get following msges :-

"Reading package lists... Done
Building dependency tree
Reading state information... Done
Package dpkg-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package dpkg-dev has no installation candidate"

and when i use this -

sudo apt-get install libx11-dev libxmu-dev libxmu-headers libxt-dev libtool


then -

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package libx11-dev
 
Old 09-09-2009, 04:09 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,273

Rep: Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663
'dpkg-dev' is not important, just mentioned as
part of what you get with 'build-essential'.

But 'libx11-dev' is a must.
( And so are libxmu-dev libxmu-headers libxt-dev libtool ).

May be have a look in
(Menu) System > Administration > Software Sources
... and tick the entries in 'Ubuntu Software', 'Updates',
'Third-Party Software' ( source code isn't needed.)

... next : sudo apt-get update
... and then you should be able to fetch all packages with
sudo apt-get install
.....

If you still have problems then :
Please show your file /etc/apt/sources.list
( Can be attached as sources.list.txt using
the paper clip tool in 'Post Reply'.)
.....
 
Old 09-09-2009, 04:30 AM   #9
neeraj.dwivedi
LQ Newbie
 
Registered: Sep 2009
Posts: 27

Original Poster
Rep: Reputation: 15
sources.list file -


deb cdrom:[Ubuntu 8.10 _Intrepid Ibex_ - Release i386 (20081029.5)]/ intrepid main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.

deb http://in.archive.ubuntu.com/ubuntu/ intrepid main restricted
deb-src http://in.archive.ubuntu.com/ubuntu/ intrepid main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://in.archive.ubuntu.com/ubuntu/ intrepid-updates main restricted
deb-src http://in.archive.ubuntu.com/ubuntu/ intrepid-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://in.archive.ubuntu.com/ubuntu/ intrepid universe
deb-src http://in.archive.ubuntu.com/ubuntu/ intrepid universe
deb http://in.archive.ubuntu.com/ubuntu/ intrepid-updates universe
deb-src http://in.archive.ubuntu.com/ubuntu/ intrepid-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://in.archive.ubuntu.com/ubuntu/ intrepid multiverse
deb-src http://in.archive.ubuntu.com/ubuntu/ intrepid multiverse
deb http://in.archive.ubuntu.com/ubuntu/ intrepid-updates multiverse
deb-src http://in.archive.ubuntu.com/ubuntu/ intrepid-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://in.archive.ubuntu.com/ubuntu/ intrepid-backports main restricted universe multiverse
# deb-src http://in.archive.ubuntu.com/ubuntu/ intrepid-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository. This software is not part of Ubuntu, but is
## offered by Canonical and the respective vendors as a service to Ubuntu
## users.
deb http://archive.canonical.com/ubuntu intrepid partner
deb-src http://archive.canonical.com/ubuntu intrepid partner

deb http://security.ubuntu.com/ubuntu intrepid-security main restricted
deb-src http://security.ubuntu.com/ubuntu intrepid-security main restricted
deb http://security.ubuntu.com/ubuntu intrepid-security universe
deb-src http://security.ubuntu.com/ubuntu intrepid-security universe
deb http://security.ubuntu.com/ubuntu intrepid-security multiverse
 
Old 09-09-2009, 05:59 PM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,273

Rep: Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663
Please have a look in
"Synaptic" > > Properties > Archives > "Software Sources"

The preferred "Download from" can be changed in > >
"Software Sources"

May be something wrong with http://in.archive.ubuntu.com/ubuntu/

Distance is usually a minor issue.
I often use a German or American mirror.
.....
 
Old 09-10-2009, 06:05 AM   #11
neeraj.dwivedi
LQ Newbie
 
Registered: Sep 2009
Posts: 27

Original Poster
Rep: Reputation: 15
Question

After updating -
when i use following command:

"sudo apt-get install build-essential autoconf automake libxmu-dev"

then execution of command as follows -

"The following packages will be upgraded:
cpp-4.3 gcc-4.3 gcc-4.3-base libgcc1 libgomp1 libstdc++6 libx11-6
7 upgraded, 29 newly installed, 0 to remove and 260 not upgraded.
Need to get 17.4MB/17.5MB of archives.
After this operation, 34.3MB of additional disk space will be used.
Do you want to continue [Y/n]? y
WARNING: The following packages cannot be authenticated!
x11proto-core-dev libice-dev libsm-dev libx11-6 libxau-dev libxdmcp-dev
x11proto-xext-dev libxext-dev libxi-dev x11proto-input-dev x11proto-kb-dev
xtrans-dev libpthread-stubs0 libpthread-stubs0-dev libxcb1-dev
libxcb-xlib0-dev libx11-dev libxmu-headers libxt-dev gcc-4.3-base libstdc++6
libgomp1 cpp-4.3 gcc-4.3 libgcc1 m4 autoconf autotools-dev automake
libstdc++6-4.3-dev g++-4.3 dpkg-dev libxmu-dev"


then one time it ask
"Install these packages without verification [y/N]?"
when i answered "n"
then

"E: Some packages could not be authenticated"

and when i answered "y"
then

Media change: please insert the disc labeled
'Ubuntu 8.10 _Intrepid Ibex_ - Release i386 (20081029.5)'
in the drive '/cdrom/' and press enter

Get:1 http://us.archive.ubuntu.com intrepid-updates/main x11proto-core-dev 7.0.12-1ubuntu0.1 [90.3kB]
Get:2 http://us.archive.ubuntu.com intrepid/main libice-dev 2:1.0.4-1 [56.0kB]
Get:3 http://us.archive.ubuntu.com intrepid/main libsm-dev 2:1.0.3-2 [24.9kB]
Get:4 http://us.archive.ubuntu.com intrepid-updates/main libx11-6 2:1.1.5-2ubuntu1.1 [622kB]
Get:5 http://us.archive.ubuntu.com intrepid/main libxau-dev 1:1.0.3-3 [15.6kB]
Get:6 http://us.archive.ubuntu.com intrepid/main libxdmcp-dev 1:1.0.2-3 [20.0kB]
Get:7 http://us.archive.ubuntu.com intrepid/main x11proto-xext-dev 7.0.2-6build1 [42.5kB]
Get:8 http://us.archive.ubuntu.com intrepid/main libxext-dev 2:1.0.4-1 [84.2kB]
Get:9 http://us.archive.ubuntu.com intrepid/main libxi-dev 2:1.1.3-2build1 [78.7kB]
Media change: please insert the disc labeled
'Ubuntu 8.10 _Intrepid Ibex_ - Release i386 (20081029.5)'
in the drive '/cdrom/' and press enter



these msges i got? ? now please tell me what should i do??
 
Old 09-10-2009, 09:58 AM   #12
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,273

Rep: Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663
Everything OK, please answer y for yes.

If your cd isn't recognized, or is a live version,
or you do not want to use it, just uncomment 'media'
in "Software Sources" . Or delete or uncomment ( # )
this line in your file, ref. post #9 :
Code:
# deb cdrom:[Ubuntu 8.10 _Intrepid Ibex_ - Release i386 (20081029.5)]/ intrepid main restricted
 
Old 09-11-2009, 08:24 AM   #13
neeraj.dwivedi
LQ Newbie
 
Registered: Sep 2009
Posts: 27

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by knudfl View Post

/etc/apt/sources.list

Code:
# deb cdrom:[Ubuntu 8.10 _Intrepid Ibex_ - Release i386 (20081029.5)]/ intrepid main restricted
when i try to do so .. then it refused to save.

"Could not save the file /etc/apt/sources.list.
You do not have the permissions necessary to save the file. Please check that you typed the location correctly and try again."

now what should i do ??

one thing more ..

is i need to install package named "libx11-dev" ??

when tried following commands then ..

"sudo apt-get install dpkg-dev g++ libc6-dev make"

error comes ..

"Package dpkg-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source"

and

"sudo apt-get install libx11-dev libxmu-dev libxmu-headers libxt-dev libtool"

error comes...

Package libx11-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package libx11-dev has no installation candidate


"sudo apt-get install libxmu-dev"

error comes...

Reading package lists... Done
Building dependency tree
Reading state information... Done
Package libxmu-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package libxmu-dev has no installation candidate

now i think packages "libx11-dev" , "libxmu-dev" and "dpkg-dev" are not available.. now give me the link or download location from which i could able to download these packages. or tell me any other way to get them. because from software sources or update manager i was unable to get them.

thank you sir..
 
Old 09-11-2009, 10:06 AM   #14
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,273

Rep: Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663
Repeat :

If your cd isn't recognized, or is a live version,
or you do not want to use it, just uncomment 'media'
in "Software Sources"
.....
And repeat : dpkg-dev is not required for ns2.
.....

Generally for editing system files :
sudo gedit <path-to-file>/"file"
or
cd <path-to-file>
sudo gedit <file>

sudo gedit /etc/apt/sources.list
... will do the trick.
.....

Last edited by knudfl; 09-11-2009 at 10:11 AM.
 
Old 09-11-2009, 10:23 AM   #15
neeraj.dwivedi
LQ Newbie
 
Registered: Sep 2009
Posts: 27

Original Poster
Rep: Reputation: 15
and what about packages "libx11-dev" , "libxmu-dev" and "dpkg-dev"
which are not available..

now give me the link or download location from which i could able to download these packages. or tell me any other way to get them. because from software sources or update manager i was unable to get them.??
 
  


Reply

Tags
linux, ubuntu


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
Problem in installing NS2 in fedora 5 arunram Linux - Software 6 03-14-2009 08:49 AM
NS2 2.33 allinone on Ubuntu Liz Mwaniki Linux - Newbie 1 01-26-2009 05:24 AM
Installing NS2 on red hat9 Liz Mwaniki Linux - Newbie 3 01-26-2009 04:21 AM
Problem Installing NS2 in Ubuntu 7.10 smetya Linux - Software 5 04-27-2008 09:27 AM
Encountering problem when installing NS2 on Debian MichaelYoung Debian 1 05-12-2007 08:08 PM


All times are GMT -5. The time now is 09:29 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration