Aquasim installation problem

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Aquasim installation problem

nazish

I have installed ubuntu 32bit in Oracle VM Virtualbox on my current ubuntu
64 bit. Now I am trying to install Aquasim on it. I have also downloaded
the compilers which were mentioned in post #5
http://www.linuxquestions.org/questions/linux-software-2/install-aquasim-in-ns-2-34-a-4175466464/#5
but when I execute the following command:
$ export CC=gcc41 CXX=g++41 && ./install

it shows me following results/errors:


==============================
==============================
* Testing for Cygwin environment
============================================================
Cygwin not detected, proceeding with regular install.
============================================================
* Build XGraph-12.1
============================================================
configure: error: expected an absolute directory name for --prefix: ../
make: *** No targets specified and no makefile found.  Stop.
Can not create xgraph; But xgraph is an optional package, continuing...
============================================================
* Build CWeb
============================================================
Making cweb
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   -c -o cweave.o cweave.c
cweave.w:79:12: warning: conflicting types for built-in function ‘strlen’
[enabled by default]
cweave.w: In function ‘print_cat’:
cweave.w:1739:1: warning: format not a string literal and no format
arguments [-Wformat-security]
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
gcc41 -g -I/usr/local/sgb/include
-DDATA_DIRECTORY=\"/usr/local/sgb/data/\" -c gb_io.c
make: gcc41: Command not found
make: *** [gb_io.o] Error 127
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
============================================================
Building static library libz.a version 1.2.3 with gcc41.
Checking for unistd.h... No.
Checking whether to use vs[n]printf() or s[n]printf()... using s[n]printf()
Checking for snprintf() in stdio.h... No.
  WARNING: snprintf() not found, falling back to sprintf(). zlib
  can build but will be open to possible buffer-overflow security
  vulnerabilities.
Checking for return value of sprintf()... No.
  WARNING: apparently sprintf() does not return a value. zlib
  can build but will be open to possible string-format security
  vulnerabilities.
Checking for errno.h... No.
Checking for mmap support... No.
gcc41 -O -DNO_snprintf -DHAS_sprintf_void -DNO_ERRNO_H   -c -o example.o
example.c
make: gcc41: Command not found
make: *** [example.o] Error 127
Zlib make failed, but it's optional Continue ...
============================================================
* Build tcl8.4.13
============================================================
loading cache ./config.cache
checking whether to use symlinks for manpages... no
checking whether to compress the manpages... no
checking whether to add a package name suffix for the manpages... no
checking for gcc... gcc41
checking whether the C compiler (gcc41  ) works... no
configure: error: installation or configuration problem: C compiler cannot
create executables.
tcl8.3.2 configuration failed! Exiting ...
Tcl is not part of the ns project.  Please see www.Scriptics.com
<http://www.scriptics.com/>
to see if they have a fix for your platform.


Please help.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Aquasim installation problem

knudfl
> @ nazish
> Aqua-Sim
> C compiler cannot create executables.

$ sudo apt-get install g++-4.4

$ cd Aquasim/
$ patch -p0 < ns230_gcc44.patch
https://drive.google.com/file/d/0B7S255p3kFXNdHJpbkJ2Tm5mX00/view?usp=sharing
$ export CC=gcc-4.4 CXX=g++-4.4 && ./install

-
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Aquasim installation problem

nazish
Sir, when I execute the following command:
 export CC=gcc-4.4 CXX=g++-4.4 && ./install

I am getting this error:

In file included from /home/ubuntu/aquasim/tk8.4.13/unix/../generic/tkInt.h:21,
                 from /home/ubuntu/aquasim/tk8.4.13/unix/../generic/tk3d.h:18,
                 from /home/ubuntu/aquasim/tk8.4.13/unix/../generic/tk3d.c:16:
/home/ubuntu/aquasim/tk8.4.13/unix/../generic/tk.h:83: fatal error: X11/Xlib.h: No such file or directory
compilation terminated.
make: *** [tk3d.o] Error 1
tk8.4.13 make failed! Exiting ...
For problems with Tcl/Tk see http://www.scriptics.com.

Please help.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Aquasim installation problem

knudfl
> @nazish
> X11/Xlib.h: No such file or directory.

You will of course have to get the ns2 build prerequisites, before you can build any ns2 :

$ sudo apt-get install g++ g++-4.4 automake libtool libxmu-dev xgraph

-
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Aquasim installation problem

nazish

I did this:
 sudo apt-get install g++ g++-4.4 automake libtool libxmu-dev xgraph

but the output is:
Reading package lists... Done
Building dependency tree      
Reading state information... Done
E: Unable to locate package xgraph

how to solve it?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Aquasim installation problem

knudfl
This post was updated on .
> @nazish
> Xgraph

Xgraph isn't required for building ns2.  
But can be of use for "xgraph visualizations".

May be you can get it with $ sudo apt-get update && sudo apt-get install xgraph

-
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Aquasim installation problem

Eng. Mary
This post has NOT been accepted by the mailing list yet.
I tried to install Aqua-sim , i'm getting this error

Part of the result:
tcl8.4.13 make succeeded.
Installing libtcl8.4.a to /home/mary/Documents/ns-allinone-2.30/aquasim/lib/
Installing tclsh as /home/mary/Documents/ns-allinone-2.30/aquasim/bin/tclsh8.4
Installing tclConfig.sh to /home/mary/Documents/ns-allinone-2.30/aquasim/lib/
Installing libtclstub8.4.a to /home/mary/Documents/ns-allinone-2.30/aquasim/lib/
Installing header files
Installing library files to /home/mary/Documents/ns-allinone-2.30/aquasim/lib/tcl8.4
Installing library http1.0 directory
Installing library http2.5 directory
Installing library opt0.4 directory
Installing library msgcat1.3 directory
Installing library tcltest2.2 directory
Installing library encoding directory
Installing and cross-linking top-level (.1) docs
Installing and cross-linking C API (.3) docs
Installing and cross-linking command (.n) docs
tcl8.4.13 installation succeeded.
============================================================
* Build Tk8.4.13
============================================================
make: *** No rule to make target `/home/mary/Documents/aquasim/tk8.4.13/unix/Makefile.in', needed by `Makefile'.  Stop.
loading cache ./config.cache
checking for Tcl configuration... (cached) found /home/mary/Documents/aquasim/tcl8.4.13/unix/tclConfig.sh
checking for existence of /home/mary/Documents/aquasim/tcl8.4.13/unix/tclConfig.sh... could not find /home/mary/Documents/aquasim/tcl8.4.13/unix/tclConfig.sh
checking for tclsh... (cached) No tclsh found on PATH
checking for tclsh in Tcl build directory... /home/mary/Documents/aquasim/tcl8.4.13/unix/tclsh
configure: error: /home/mary/Documents/aquasim/tcl8.4.13/unix/tclConfig.sh is for Tcl .
Tk 8.4.13 needs Tcl 8.4.
Use --with-tcl= option to indicate location of tclConfig.sh file for Tcl 8.4.
tk8.3.2 configuration failed! Exiting ...
Tk is not part of the ns project.  Please see www.Scriptics.com
to see if they have a fix for your platform.


Please some help
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Aquasim installation problem

igs3000
This post has NOT been accepted by the mailing list yet.
In reply to this post by nazish
Loading...