LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 11-01-2013, 01:02 AM   #1
Ajina Khader
LQ Newbie
 
Registered: Oct 2013
Posts: 1

Rep: Reputation: Disabled
Error in ns2.28 installation


Hi all,

While installing ns2.28 in Ubuntu 12.04 the following error has occured

cec@cec-ThinkCentre-Edge71:~/ns-allinone-2.28$ ./install
============================================================
* Testing for Cygwin environment
============================================================
Cygwin not detected, proceeding with regular install.
============================================================
* Build XGraph-12.1
============================================================
./configure: 423: ./configure: cannot create ./config.log: Permission denied
gcc -DHAVE_CONFIG_H -I. -I. -I. -g -c dialog.c
dialog.c: In function ‘make_msg_box’:
dialog.c:780:5: warning: passing argument 2 of ‘getline’ from incompatible pointer type [enabled by default]
/usr/include/stdio.h:675:20: note: expected ‘size_t * __restrict__’ but argument is of type ‘char *’
dialog.c:780:5: error: too few arguments to function ‘getline’
/usr/include/stdio.h:675:20: note: declared here
dialog.c: In function ‘getline’:
dialog.c:893:9: error: argument ‘lptr’ doesn’t match prototype
/usr/include/stdio.h:675:20: error: prototype declaration
dialog.c:899:1: error: number of arguments doesn’t match prototype
/usr/include/stdio.h:675:20: error: prototype declaration
make: *** [dialog.o] Error 1
Can not create xgraph; But xgraph is an optional package, continuing...
============================================================
* Build CWeb
============================================================
Making cweb
touch: cannot touch `cweave.c': Permission denied
gcc -g -c -o ctangle.o ctangle.c
ctangle.w:75:12: warning: conflicting types for built-in function ‘strlen’ [enabled by default]
gcc -g -DCWEBINPUTS=\"/usr/local/lib/cweb\" -c common.c
common.w:1409:12: warning: conflicting types for built-in function ‘strlen’ [enabled by default]
common.w: In function ‘fatal’:
common.w:1176:1: warning: format not a string literal and no format arguments [-Wformat-security]
gcc -g -o ctangle ctangle.o common.o
gcc -g -o cweave cweave.o common.o
ln: failed to create symbolic link `cweave': File exists
ln: failed to create symbolic link `ctangle': File exists
============================================================
* Build Stanford GraphBase
============================================================
Making sgb
cc -g -I/usr/local/sgb/include test_io.c gb_io.o -o test_io
cc -g -I/usr/local/sgb/include test_graph.c gb_graph.o -o test_graph
cc -g -I/usr/local/sgb/include test_flip.c gb_flip.o -o test_flip
./test_io
OK, the gb_io routines seem to work!
./test_graph
.................................................................................................... Hey, I allocated 10000000 bytes successfully. Terrific...
OK, the gb_graph routines seem to work!
./test_flip
OK, the gb_flip routines seem to work!
make gb_sort.o
make[1]: Entering directory `/home/cec/ns-allinone-2.28/sgb'
make[1]: `gb_sort.o' is up to date.
make[1]: Leaving directory `/home/cec/ns-allinone-2.28/sgb'
make lib
make[1]: Entering directory `/home/cec/ns-allinone-2.28/sgb'
make[1]: Nothing to be done for `lib'.
make[1]: Leaving directory `/home/cec/ns-allinone-2.28/sgb'
make test_sample
make[1]: Entering directory `/home/cec/ns-allinone-2.28/sgb'
cc -g -I/usr/local/sgb/include -L. -L/usr/local/lib test_sample.c -lgb -lgb -o test_sample
make[1]: Leaving directory `/home/cec/ns-allinone-2.28/sgb'
./test_sample > sample.out
diff test.gb test.correct
diff sample.out sample.correct
rm -f test.gb sample.out test_io test_io.exe test_graph test_graph.exe test_flip test_flip.exe test_sample test_sample.exe
echo "Congratulations --- the tests have all been passed."
Congratulations --- the tests have all been passed.
touch certified
touch: cannot touch `certified': Permission denied
make: *** [tests] Error 1
Unable to create sgb library, but it's optional, so continuing...
============================================================
* Build GT-ITM
============================================================
sgb lib not found. gt-itm & sgb2ns could not be installed. Continuing..
============================================================
* Build zlib
============================================================
Checking for gcc...
Building static library libz.a version 1.1.4 with gcc.
Checking for unistd.h... Yes.
Checking for errno.h... Yes.
Checking for mmap support... Yes.
make: Nothing to be done for `all'.
Zlib has been installed successfully.
============================================================
* Build tcl8.4.5
============================================================
./configure: 436: ./configure: cannot create ./config.log: Permission denied
tcl8.3.2 configuration failed! Exiting ...
Tcl is not part of the ns project. Please see www.Scriptics.com
to see if they have a fix for your platform.


can anyone help me in fixing the error? It is urgent ..
Thanks in advance
 
Old 11-01-2013, 04:16 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.
Quote:
While installing ns2.28 in Ubuntu 12.04
'ns-allinone-2.28' can be installed on the 32bits (i686) Ubuntu 12.04.
Checking for "i686" : $ uname -m <Enter>


Quote:
* Build tcl8.4.5
=========================================================
./configure: 436: ./configure: cannot create ./config.log:
Permission denied
I guess you have used sudo to unpack ( tar xvf ) the application.
Then you have no permission to "write to file".
No "sudo" commands are supposed to be used ( except 'sudo make install') for ns2.

Solution : Delete everything, and start from scratch :
1) tar xvf ns-allinone-2.28.tar.gz
2) patch -p0 < ns228-gcc40.patch
3) patch -p0 < ns-2.28-gcc410.patch <Enter> <Enter> <Enter>
4) export CC=gcc41 CXX=g++41
5) cd ns-allinone-2.28/
6) ./install
7) cd ns-2.28/
8) sudo make install
# 15 http://www.linuxquestions.org/questi...4-a-842773/#15

Installing gcc41 / g++41, post #18 here ..
http://www.linuxquestions.org/questi...022/page2.html

-
 
  


Reply

Tags
ns2, ns228, ns228#2



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
Error during GPSR installation in NS2 mrohini Linux - Networking 13 08-23-2014 06:36 AM
NS2.26/TCP installation error? japz20 Linux - Newbie 6 01-16-2013 03:27 AM
ns2.31 installation in fedora14 error sama_safa Linux - Newbie 4 04-18-2012 11:38 AM
NS2.34 Installation error in Fedora 15 reene.g Linux - Newbie 5 10-04-2011 08:05 AM
NS2 Installation Error ajkannan83 Linux - General 2 01-01-2010 03:35 AM

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

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