> ""invalid command name "Resource/Energy"" : Looks like a failed build.
( All the following "error output" you show is mostly generic ( for any
error).

"Ubuntu 12.04" is OK. But it better be the 32bits (i686) version : $ uname
-m <Enter>
(  ns2 is made for a 32bits Linux OS. 64bits will provide an inferior
validate result.)

** The default Ubuntu 12.04 compilers : $ sudo apt-get install g++ g++-4.4
g++-4.5 g++-4.6

An "ns-allinone-2.34" not edited for gcc-4.4/g++-4.4 will compile with
gcc/g++ version 4.1.2 .
'gcc41-compat' / 'g++41-compat', see post #47 here :
http://www.linuxquestions.org/questions/linux-wireless-networking-41/wireless-ns-aquasim-855532/page4.html
( The two compiler packages are for all 32bits Ubuntu, versions 11.10 ..12.*
.. 13.* ).
 Install with :
sudo dpkg -i gcc41-compat-4.1.2-ubuntu1210_i386.deb
g++41-compat-4.1.2_i386.deb
... Then reboot, and the new compilers can be used.

> ""how to install this on ubuntu 12.04  and remove the existing gcc
> compiler"" :
Don't remove any. You can have as many versions of gcc/g++ as you want,
installed at the same time.
*** Using : $ cd ns-allinone-2.34/ && export CC=gcc41 CXX=g++41 && ./install

The latest LEACH version is "exidus-pegasis_ns-234-leach.tar.gz"
https://docs.google.com/file/d/0B7S255p3kFXNcXQ3UmlOeWQ2ZXM/edit?usp=sharing

LEACH info http://www.linuxquestions.org/questions/tags/leach/
Pegasis info http://www.linuxquestions.org/questions/tags/pegasis/

Running the LEACH 'test' :
$ export RCA_LIBRARY=/home//ns-allinone-2.34/ns-2.34/mit/rca && export
uAMPS_LIBRARY=/home//ns-allinone-2.34/ns-2.34/mit/uAMPS && ./test

Kind Regards , knudfl.

-



--
View this message in context: 
http://network-simulator-ns-2.7690.n7.nabble.com/Which-version-tp27524p27525.html
Sent from the ns-users mailing list archive at Nabble.com.

Reply via email to