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 06-05-2012, 09:33 AM   #1
selorm
LQ Newbie
 
Registered: Jun 2012
Posts: 6

Rep: Reputation: Disabled
New to ns2 need help with installation.


Hi,
I am just starting out with ns2 and i am having difficulty installing ns-allinone 2.34 on my ubuntu 10.10.

After extracting ns-allinone 2.34 into the home folder i run the following on the command line and this is what i get.

command: selorm@ubuntu:~$ cd /home/selorm/ns-allinone-2.34

result: selorm@ubuntu:~/ns-allinone-2.34$

command: sudo apt-get install build-essential autoconf automake libxmu-dev gcc-4.3

result: [sudo] password for selorm:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package build-essential
E: Unable to locate package autoconf
E: Unable to locate package automake
E: Unable to locate package libxmu-dev
E: Unable to locate package gcc-4.3
E: Couldn't find any package by regex 'gcc-4.3'
selorm@ubuntu:~/ns-allinone-2.34$

i will be grateful if some one could help out with this challenge.

thank you
 
Old 06-05-2012, 10:12 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.

Looks OK. Except that g++-4.1 should be used : sudo apt-get install g++-4.1
No gcc-4.3 is required any more.
( ? Could be used at 10.10 release time, and until a year ago.)

About your "download errors" : Ubuntu 10.10 is unsupported,
some mirrors may not work any more.
But first, please try with a : sudo apt-get update

Which URL are you using in /etc/apt/sources.list ?
( 'cat /etc/apt/sources.list' ).
Like : deb http://extras.ubuntu.com/ubuntu maverick main
( The above mirror still works.)

.

Last edited by knudfl; 06-05-2012 at 10:14 AM.
 
Old 06-05-2012, 11:01 AM   #3
selorm
LQ Newbie
 
Registered: Jun 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
thanks for your reply

i did run sudo apt-get install g++-4.1 but it still gave me an error as below

selorm@ubuntu:~$ sudo apt-get install g++-4.1
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
selorm@ubuntu:~$
 
Old 06-05-2012, 11:26 AM   #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.
Quote:
Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
May be Synaptic is running ? ( Shut it down.)

Or the automatic update is running ? Then just wait until it finishes.

.
 
Old 06-07-2012, 07:25 AM   #5
selorm
LQ Newbie
 
Registered: Jun 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
hi

i did find what i was doing wrong, and after installing the ns-2.34

i tried to run the following and this was the result

selorm@ubuntu:~$ sudo apt-get install ns nam xgraph
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package ns
selorm@ubuntu:~$

please tell me what i am doing wrong again
thanks
 
Old 06-07-2012, 07:42 AM   #6
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
# 5
Quote:
sudo apt-get install ns nam xgraph
Please do not install any ns (nam ?) from Ubuntu.

The ns package name is "ns2". Is version 2.35, will conflict with ns-2.34,
unless you rename /usr/bin/ns to /usr/bin/ns235.
Some libraries are installed too. Not versions that ns-2.34 can use.
( More possible conflicts.)

.
 
Old 06-07-2012, 09:01 AM   #7
selorm
LQ Newbie
 
Registered: Jun 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
hi

thanks for your help my ns is now working your site has been very helpful thank you
 
Old 06-13-2012, 05:35 AM   #8
selorm
LQ Newbie
 
Registered: Jun 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
Package Error

Hi,

i am try to install a program(Umbrello) on my ubuntu 10.04
and it keeps giving me the following error.

Requires installation of untrusted packages
The action would require the installation of packages from not authenticated sources.

please help me fix this, it used not to be like this.
i tried installing other software and its the same error.

thank you.
 
Old 06-13-2012, 05:51 AM   #9
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
Post #8 : Umbrello http://uml.sourceforge.net/
Quote:
... packages from not authenticated sources
Happens too with the other Ubuntu versions, when they are old.
I guess they "forget" to replace the old authenticating keys.

Can usually be ignored, when the packages origin from the Ubuntu repo.

.
 
Old 06-18-2012, 07:39 AM   #10
selorm
LQ Newbie
 
Registered: Jun 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
Hi,
i keep getting an error any time i try to run a sample script in ns 2.34
on my ubuntu 10.04. the error is as below.

% ns simple_network.tcl
warning: using backward compatibility mode
error when calling class OldSim: simple_network.tcl
%

please help me fix this, i think i may be getting my path wrong.
 
  


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
ns2.29.3 installation on fedora 15 , nam installation problem Narges Linux - Networking 5 10-31-2011 11:09 AM
Need help in NS2 installation maneshmotts Ubuntu 5 09-10-2011 05:47 AM
NS2 installation ds_priyaa Fedora 2 05-28-2008 02:23 AM
NS2 installation eby83 Linux - Newbie 2 06-11-2007 01:08 AM
ns2 installation pranoti Linux - Software 2 06-11-2007 12:45 AM

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

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