LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-07-2016, 05:59 PM   #1
Adaramola ojo jayeola
LQ Newbie
 
Registered: Jun 2016
Posts: 15
Blog Entries: 2

Rep: Reputation: Disabled
NS2 Installation Problem


Hello sir/ma

i have some challenges in installing network simulation NS2 on my Ubuntu 16.04

Whenever i trying to configure and modify the bash file by using this command sudo gedit .bashrc

to add this file below to the existing bash file

# LD_LIBRARY_PATH
OTCL_LIB=/home/ojo/Documents/ns-allinone-2.35/otcl-1.14/
NS2_LIB=/home/ojo/Documents/ns-allinone-2.35/lib/
USR_Local_LIB=/usr/local/lib/
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:
$USR_Local_LIB
# TCL_LIBRARY
TCL_LIB=/home/ojo/Documents/ns-allinone-2.35/tcl8.5.10/library/
USR_LIB=/usr/lib/
export TCL_LIBRARY=$TCL_LIBRARY:$TCL_LIB:$USR_LIB
# PATH
XGRAPH=/home/ojo/Documents/ns-allinone-2.35/xgraph-12.2/:/home/ojo/Documents/ns-allinone-2.35/bin/:/home/ojo/Documents/ns-allinone-2.35/tcl8.5.10/unix/:/home/ojo/Documents/ns-allinone-2.35/tk8.5.10/unix/
NS=/home/ojo/Documents/ns-allinone-2.35/ns-2.35/
NAM=/home/ojo/Documents/ns-allinone-2.35/nam-1.15/
export PATH=$PATH:$XGRAPH:$NS:$NAM



Then it gives error message:

** (gedit:2287): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-encoding not supported.

please i need your urgent help to solve this problem so that i can continue with my installation.

Thank you.
 
Old 07-07-2016, 06:11 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by Adaramola ojo jayeola View Post
Hello sir/ma
i have some challenges in installing network simulation NS2 on my Ubuntu 16.04 Whenever i trying to configure and modify the bash file by using this command

sudo gedit .bashrc

to add this file below to the existing bash file
Code:
# LD_LIBRARY_PATH
OTCL_LIB=/home/ojo/Documents/ns-allinone-2.35/otcl-1.14/
NS2_LIB=/home/ojo/Documents/ns-allinone-2.35/lib/
USR_Local_LIB=/usr/local/lib/
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:
$USR_Local_LIB
# TCL_LIBRARY
TCL_LIB=/home/ojo/Documents/ns-allinone-2.35/tcl8.5.10/library/
USR_LIB=/usr/lib/
export TCL_LIBRARY=$TCL_LIBRARY:$TCL_LIB:$USR_LIB
# PATH
XGRAPH=/home/ojo/Documents/ns-allinone-2.35/xgraph-12.2/:/home/ojo/Documents/ns-allinone-2.35/bin/:/home/ojo/Documents/ns-allinone-2.35/tcl8.5.10/unix/:/home/ojo/Documents/ns-allinone-2.35/tk8.5.10/unix/
NS=/home/ojo/Documents/ns-allinone-2.35/ns-2.35/
NAM=/home/ojo/Documents/ns-allinone-2.35/nam-1.15/
export PATH=$PATH:$XGRAPH:$NS:$NAM
Then it gives error message:

** (gedit:2287): WARNING **: Set document metadata failed: Setting attribute metadata::gedit-encoding not supported.

please i need your urgent help to solve this problem so that i can continue with my installation.
First, this is NOT URGENT for anyone here, at all. We volunteer our time, so asking for/expecting 'urgent' help is plain rude. Secondly, gedit is only an editor...you are free to use any OTHER editor to edit that file. Chances are, you're logged in as a 'regular' user, and trying to run gedit as root...which can't connect to the X session, so it's dying. Either open the file in another editor, or change permissions on that TCL file so you can edit it as a regular user.
 
Old 07-07-2016, 06:30 PM   #3
Adaramola ojo jayeola
LQ Newbie
 
Registered: Jun 2016
Posts: 15

Original Poster
Blog Entries: 2

Rep: Reputation: Disabled
sorry if i have been rude with my approach. i appreciate your contribution. i am novice and still learning about the whole process. i only got to this level of installation through study. But now i am stuck with the installation and i could not move forward again after spending a whole day on the installatio. This is the reason i seek for help. i will really appreciate better explination on this.

Thank you sir
 
Old 07-07-2016, 08:44 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by Adaramola ojo jayeola View Post
sorry if i have been rude with my approach. i appreciate your contribution. i am novice and still learning about the whole process. i only got to this level of installation through study. But now i am stuck with the installation and i could not move forward again after spending a whole day on the installatio. This is the reason i seek for help. i will really appreciate better explination on this.

Thank you sir
There is no 'better explanation', if what was said makes no sense. It's as simple as it gets...you can't run gedit as root via sudo. Run it as your normal user. Edit the file. Or, edit it with vi, emacs, nano, or any one of about a hundred OTHER editors. Pick one.
 
Old 07-08-2016, 11:33 AM   #5
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
@Adaramola ojo jayeola : Welcome to LQ.

You are not supposed to add any *PATH text to .bashrc . Not required.
The old year ~1999 text is about a University computer, with you having no write permissions to /usr/.
And : The executable 'ns' or "ns-<any-name>" is hard coded to know the location of it`s libraries:
ns-allinone-2.35/{ lib/*/*, bin/tcsh8* }.

This is how it's done :
cd ns-2.35/
sudo make install ('make install' will copy 'ns' to /usr/local/bin/, i.e. a system path)
cd ../nam-1.15/
sudo make install

Xgraph : sudo apt-get install xgraph


-

Last edited by knudfl; 07-09-2016 at 05:35 AM.
 
  


Reply

Tags
ns2



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
Installation problem: Ns2.29 Aska123 Linux - Wireless Networking 4 04-06-2013 08:30 AM
problem with ns2.27 installation IMEN SOUID Linux - Software 2 03-07-2013 01:32 PM
ns2.29.3 installation on fedora 15 , nam installation problem Narges Linux - Networking 5 10-31-2011 11:09 AM
ns2 installation problem kuberninad Linux - Newbie 2 10-04-2009 02:28 PM
NS2 installation problem on solaris 10 capricorn80 Solaris / OpenSolaris 19 11-02-2006 03:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:03 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