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 04-23-2012, 01:33 PM   #1
david123
LQ Newbie
 
Registered: Apr 2012
Posts: 4

Rep: Reputation: Disabled
"make" command error in ns2.33 on fedora16


in my project i am using ns2.33 on fedora 16 & i have to make some changes in makefile.in.To incorporate these changes i have to compile ns2 again so i make use of following commands
1) ./configure
2)make clean
3) make
and everytime i make use of make command i get following error


tools/ranvar.cc: In member function ‘virtual double GammaRandomVariable::value()’:
tools/ranvar.cc:219:70: error: cannot call constructor ‘GammaRandomVariable::GammaRandomVariable’ directly [-fpermissive]
tools/ranvar.cc:219:70: error: for a function-style cast, remove the redundant ‘::GammaRandomVariable’ [-fpermissive]
make: *** [tools/ranvar.o] Error 1
 
Old 04-24-2012, 05:48 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,692

Rep: Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275Reputation: 7275
this is an error in the file ranvar.cc, you need to fix it. try to follow the error message.
 
Old 05-01-2012, 12:21 PM   #3
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.
Quote:
1) ./configure
2)make clean
3) make
Better :
0) export CC=gcc34 CXX=g++34
1) ./configure
2)make clean
3) make
...... Or edit line 37 in the Makefile(.in) to : CPP = g++34

.
 
Old 05-14-2012, 01:06 PM   #4
david123
LQ Newbie
 
Registered: Apr 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
hi
everytime i use make install command i get this output
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
can u tell me how to get access to a file permanently in fedora16.i am using ns2.32
 
Old 05-14-2012, 03:13 PM   #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
# 4.

You must be "root" to 'make install' to /usr/local/ :
1) su <password>
2) make install
Quote:
can you tell me how to get access to a file permanently in fedora 16
If it's in /home/<user-name>/ : You should have access all the time.
Outside /home/<user-name>/ : Use 'su' when you want access.

'ns-allinone-2.32/' is supposed to have location in /home/<user-name>/.
Then you can easily work with all the files.

.
 
Old 05-17-2012, 01:47 PM   #6
david123
LQ Newbie
 
Registered: Apr 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
hi
i am working on ns2 and i have to implement blackhole in MANET on AODV. And for that purpose i have to create the new routing protocol so i have to make changes in ns-lib.tcl and makefile.In order to incorporate these changes in ns2 i have to recompile ns2 but eveytime i use "make install" 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

regards
 
Old 06-21-2012, 11:37 PM   #7
maha.ahmed
LQ Newbie
 
Registered: Jun 2012
Posts: 4

Rep: Reputation: Disabled
Hi knudfl,
Thank you very much. My OS is cygwin, I integrate WiMAX (NIST) model with NS2.34, the problem is when I wrote "make clean" command and "make" command I got this error "Make:365: *** commands commence before first target. Stop." Any help is appriciated.
Regards

Last edited by maha.ahmed; 06-25-2012 at 01:57 AM.
 
Old 06-22-2012, 04:15 AM   #8
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
# 7
Quote:
Make:365: *** commands commence before first target.


Example wimax-2.03 Makefile(.in) for ns-2.33, line 365 :
Code:
	indep-utils/webtrace-conv/ucb
"<TAB>indep-utils/webtrace-conv/ucb" is correct.

If your line 365 is : "<TAB>indep-utils/webtrace-conv/ucb<space>"
... then delete the space.

.
 
  


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
invalid command type "llType" error occuring when executing a tcl script in ns2.34 madhu.bm Linux - Software 1 05-04-2012 05:30 AM
Leach installation on ns2.35-- error after "make" command supu Linux - Newbie 2 03-27-2012 03:20 AM
"undefined reference to" error in make command! How? V4HID Linux - Desktop 7 10-14-2009 10:30 AM
So many errors when I typed the "make" and "make install" command Niceman2005 Linux - Software 23 07-22-2009 02:33 PM
error on "make"command; ralink 2500 driver jimbrook Linux - Wireless Networking 2 05-23-2005 10:58 PM

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

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