LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-30-2012, 10:12 AM   #1
afsha2719
LQ Newbie
 
Registered: Apr 2012
Posts: 14
Blog Entries: 1

Rep: Reputation: Disabled
how to create new directory in ns2.32 on fedora 16


i am working with ns2.32 on fedora16 and everytime i run make command i get the following error

[afsha@localhost ns-2.32]$ make install
for d in /usr/local/man/man1; do \
if [ ! -d $d ]; then \
mkdir -p $d ;\
fi;\
done
mkdir: cannot create directory `/usr/local/man': Permission denied
make: *** [dirs] Error 1

and i am not able to find "man" folder directly in local..it is placed in "share "folder and when i try to open the folder "man" its contents are not displayed.so can u tell me how to access the contents of man so that i no longer get this "permission denied message"
 
Old 04-30-2012, 02:19 PM   #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
Installing 'ns' to /usr/local/bin/ :

1) su <password>
2) make install

( The man page gets installed too.)
 
Old 05-02-2012, 02:19 AM   #3
afsha2719
LQ Newbie
 
Registered: Apr 2012
Posts: 14

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Thanks,
After running make install command i get following output:
[root@localhost ns-2.32]# make install
for d in /usr/local/man/man1; do \
if [ ! -d $d ]; then \
mkdir -p $d ;\
fi;\
done
/usr/bin/install -c -m 755 ns /usr/local/bin
/usr/bin/install: cannot stat `ns': No such file or directory
make: *** [install-ns] Error 1

Please suggest what to do now
 
Old 05-02-2012, 02:34 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
The complete ns-allinone-2.32 must be built before you can install ns.

1) # yum install \
gcc-c++ compat-gcc-34-c++ automake autoconf libtool libX11-devel \
libXext-devel libXau-devel libXmu-devel xorg-x11-proto-devel

2) cd ns-allinone-2.32/tk8.4.15/ &&
wget ftp://ftp.swin.edu.au/gentoo-portage...astevent.patch
&& patch -p0 < tk-8.4-lastevent.patch && cd ../ &&
export CC=gcc34 CXX=g++34 && ./install

.
 
Old 05-08-2012, 04:47 AM   #5
afsha2719
LQ Newbie
 
Registered: Apr 2012
Posts: 14

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
thanks
i successfully installed the ns2
but when i run the code i get following output
"you are using trace file older than 1.0a5 which will not allow ypu to run the namgraph"
 
Old 05-08-2012, 06:49 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:
but when I run the code
Which code ? Which command ?
 
Old 05-08-2012, 10:35 AM   #7
afsha2719
LQ Newbie
 
Registered: Apr 2012
Posts: 14

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
a simple code for 7 mobile nodes
 
Old 05-12-2012, 02:50 PM   #8
afsha2719
LQ Newbie
 
Registered: Apr 2012
Posts: 14

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
whenever i use make install i get this error working on fedora16 ns2.32



root@localhost ns-2.32]# make install
for d in /usr/local/man/man1; do \
if [ ! -d $d ]; then \
mkdir -p $d ;\
fi;\
done
/usr/bin/install -c -m 755 ns /usr/local/bin
/usr/bin/install -c -m 644 ns.1 /usr/local/man/man1
 
Old 05-12-2012, 03:06 PM   #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
# 8

I don't see any error in the text. That's a successful install !
Two files are copied : 'ns' to /usr/local/bin/.
And the man page 'ns.1' to /usr/local/man/man1
 
Old 05-13-2012, 05:18 AM   #10
afsha2719
LQ Newbie
 
Registered: Apr 2012
Posts: 14

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
whenever i make some changes in the aodv.cc and make file and then recompile ns2 it gives me foll output


[afsha@localhost ns-2.32]$ make install
for d in /usr/local/man/man1; do \
if [ ! -d $d ]; then \
mkdir -p $d ;\
fi;\
done
/usr/bin/install -c -m 755 ns /usr/local/bin
/usr/bin/install: cannot remove `/usr/local/bin/ns': Permission denied
make: *** [install-ns] Error 1
is my make install command successful?

and then sometimes besides this error i also get "cannot stat ns"
 
Old 05-13-2012, 05:45 AM   #11
afsha2719
LQ Newbie
 
Registered: Apr 2012
Posts: 14

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
afsha@localhost ns-2.32]$ make install
for d in /usr/local/man/man1; do \
if [ ! -d $d ]; then \
mkdir -p $d ;\
fi;\
done
/usr/bin/install -c -m 755 ns /usr/local/bin
/usr/bin/install: cannot stat `ns': No such file or directory
make: *** [install-ns] Error 1
 
  


Reply



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
Create a directory named like his Parent Directory sina_saeedi82 Linux - Newbie 8 05-26-2011 11:36 AM
[SOLVED] how to create my own packet in NS2 naren123.k Programming 2 04-21-2011 05:51 AM
Cannot create CBR traffic in ns2 Cataj Linux - Newbie 21 08-13-2009 12:04 AM
mkdir : cannot create directory : no such file or directory patcheezy Linux - Newbie 6 05-13-2009 11:26 AM
how to install ns2 in fedora-5? salady86 Linux - Newbie 3 03-14-2008 08:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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