سلام
قبلا ns2 را با کمک دستورات زیر روی ubuntu نصب و از آن استفاده می کردم
$ tar -xzvf ns-allinone-2.33.tar.gz
$ cd ns-allinone-2.33
$ sudo apt-get install build-essential autoconf automake libxmu-dev
$./install
ولی اکنون که کامپیوترم فرمت شده است نه روی نسخه ۱۰ و نه روی ۹ بعد از install به صورت کامل نصب نمی شود , و درمیان کار خطای زیر دریافت می شود:
.
.
.
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.
چه باید بکنم.
با تشکر رپیسیraeisy@shirazu.ac.ir
ظاهرا یا gcc-4.4 روی آن سازگاری ندارد. باید این نسخه uninstall شده و نسخه قبلی نصب شود. بالاخره روی سیستم من نصب شد.
1- ابتدا gcc-4.4 remove شود ( از قسمت Add/Remove)
2- سپس gcc-4.3 نصب شود با دستورهای زیر:
$ sudo apt-get install g++-4.3
$ CC=gcc-4.3 CXX=g++-4.3
$ cd ns-allinone-2.34
$./install
$ export CC=gcc-4.3
یا
try to edit the Makefile.in
From :
CC= @CC@
to :
CC= gcc-4.3
وب سایت زیر می تواند به شما کمک کند:
http://thebloghub.com/pages/NS_45_2-Network-Simulator-Blog (http://thebloghub.com/pages/NS_45_2-Network-Simulator-Blog)
raeisy: home.shirazu.ac.ir/~raeisy (http://home.shirazu.ac.ir/~raeisy)