Re: [ns] Installation problem of allinone 2.29 on Kubuntu 8.04

2011-10-09 Thread hamzah.z


step by step on how to install ns-2.29 on linux ubuntu 8.04...

fist at all we need to make all the updests nesserary to this installation .

after system update we type these comands ..

1. Install the essential packages for NS2. Use the command below:

  # sudo apt-get install build-essential

  # sudo apt-get install tcl8.4 tcl8.4-dev tk8.4 tk8.4-dev

  # sduo apt-get install libxmu-dev libxmu-headers

in order to install the allinone packege to have these ..
packeges ..

ns-allinone-2.29.tar.gz

patches..

ns2292-gcc410.patch



now we patch the patch that are related with the ns-2.29 instalation 
ns2292-gcc410.patch

to patched it we run in the directory that have the ns-allinone-2.29 file
this comand 

patch -p0 < ns2292-gcc410.patch

and after that we go to the ns-allinone-2.29/nam-1.11/agent.h and change
this lins line 73
to be like this "double &corner_x, double &corner_y) const = 0;"

after we do that we run ./configure in the same dieractory ..

and after that we go to the ns-allinone-2.29 directery using the cd comand .
and run 
./install 

 

it will work this time in the end we need to set the invirument by adding
this lines to the end of the bashrc file 

so we run this 

gedit ~/.bashrc 

we add this 

# LD_LIBRARY_PATH
OTCL_LIB=/home/mfouda/ns-allinone-2.29/otcl-1.11
NS2_LIB=/home/mfouda/ns-allinone-2.29/lib
X11_LIB=/usr/X11R6/lib
USR_LOCAL_LIB=/usr/local/lib
export
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$X11_LIB:$USR_LOCAL_LIB

# TCL_LIBRARY
TCL_LIB=/home/mfouda/ns-allinone-2.29/tcl8.4.11/library
USR_LIB=/usr/lib
export TCL_LIBRARY=$TCL_LIB:$USR_LIB
# PATH
XGRAPH=/home/mfouda/ns-allinone-2.29/bin:/home/mfouda/ns-allinone-2.29/tcl8.4.11/unix:/home/mfouda/ns-allinone-2.29/tk8.4.11/unix
NS=/home/mfouda/ns-allinone-2.29/ns-2.29/

we change "mfouda" acording to are pc name ..   my pc named fear ..
for example i mad the ns-allinone-2.29 file in ns2 file in home directary so
i change to this 

# LD_LIBRARY_PATH
OTCL_LIB=/home/fear/ns2/ns-allinone-2.29/otcl-1.11
and so on for the rest ..

to make the changes take effect we run 

source ~/.bashrc

in the end it should be done 

Antonino La Torre wrote:
> 
> 
> Hi alll,
> i need to install the ns-allinone-2.29 on my kubuntu 8.04
> to run a bittorrent patch, but i have a problem when i compile ns2 whit
> ./install command.
> I post the error message:
> 
> 
> 
> * Build tcl8.4.11
> 
> 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... gcc
> checking whether the C compiler (gcc  )
> works... yes
> checking whether the C compiler (gcc  )
> is a cross-compiler... no
> checking whether we are using GNU C...
> yes
> checking whether gcc accepts -g... yes
> checking for building with threads...
> no (default)
> checking if the compiler understands
> -pipe... yes
> checking how to run the C
> preprocessor... gcc -pipe -E
> checking for sin... no
> checking for main in -lieee... yes
> checking for main in -linet... no
> checking for net/errno.h... no
> checking for connect... yes
> checking for gethostbyname... yes
> checking how to build libraries...
> static
> checking for ranlib... ranlib
> checking if 64bit support is
> requested... no
> checking if 64bit Sparc VIS support is
> requested... no
> checking system version (for dynamic
> loading)... ./configure: 1: Syntax error: Unterminated quoted string
> 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.
> 
> 
> 
> Anyone can help me? 
> 
> I have already install whit synaptic manager  tcl8.3, tk8.3,  tcl8.3-dev,
> tk8.3-dev, g++ and made
> sudo apt-get install build-essential make tcl8.4-dev tk8.4-dev autoconf
> automake libxmu-dev
> on terminal.
> 
> 
> thanks in advance
> 
> Antonino
> 
> 
>   Scopri il blog di Yahoo! Mail:
> Trucchi, novità e scrivi la tua opinione.
> http://www.ymailblogit.com/blog
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Installation-problem-of-allinone-2.29-on-Kubuntu-8.04-tp19989633p32619018.html
Sent from the ns-users mailing list archive at Nabble.com.




Re: [ns] Installation problem of allinone 2.29 on Kubuntu 8.04

2011-10-07 Thread Rocío


Hi,

I need to install ns-2.28 in ubuntu 10.10.
I already have installed ns-2.34

I've had the same problem andt this solution helps me.
But, now I have this problem when run ./install:


make: *** [Tcl.o] Error 1
tclcl-1.16 make failed! Exiting ...

Anyone can help me? 

Thanks for all

Rocío


MilenaSyan wrote:
> 
> Hi.
> I've had the same problem on Ubuntu Hardy 8.04 and the solution provided
> here
> http://weblogs.inf.udp.cl/nboettcher/29/01/2008/configure-1-syntax-error-unterminated-quoted-string/
> seemed to have done the trick.
> 
> Basically, in some of the configure scripts the calls to awk are
> malformed.
> 
> 1. Go to the ns-allinone folder and type
> find . -name configure
> 
> A list of the configure scripts should appear.
> 
> 2. For each of these replace any line that looks like this:
> system=MP-RAS-`awk ‘{print }’ /etc/.relid’`
> With this:
> system=MP-RAS-`awk ‘{print }’ /etc/.relid`
> 
> Now rerun ./install in the ns-allione folder.
> Hope it'll work for you!
> 
> 
> Antonino La Torre wrote:
>> 
>> 
>> Hi alll,
>> i need to install the ns-allinone-2.29 on my kubuntu 8.04
>> to run a bittorrent patch, but i have a problem when i compile ns2 whit
>> ./install command.
>> I post the error message:
>> 
>> checking system version (for dynamic
>> loading)... ./configure: 1: Syntax error: Unterminated quoted string
>> 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.
>> 
>> 
>> 
>> Anyone can help me? 
>> 
>> I have already install whit synaptic manager  tcl8.3, tk8.3,  tcl8.3-dev,
>> tk8.3-dev, g++ and made
>> sudo apt-get install build-essential make tcl8.4-dev tk8.4-dev autoconf
>> automake libxmu-dev
>> on terminal.
>> 
>> 
>> thanks in advance
>> 
>> Antonino
>> 
>> 
>>   Scopri il blog di Yahoo! Mail:
>> Trucchi, novità e scrivi la tua opinione.
>> http://www.ymailblogit.com/blog
>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Installation-problem-of-allinone-2.29-on-Kubuntu-8.04-tp19989633p32607008.html
Sent from the ns-users mailing list archive at Nabble.com.




[ns] Installation problem of allinone 2.29 on Kubuntu 8.04

2008-10-15 Thread Antonino La Torre

Hi alll,
i need to install the ns-allinone-2.29 on my kubuntu 8.04
to run a bittorrent patch, but i have a problem when i compile ns2 whit
./install command.
I post the error message:



* Build tcl8.4.11

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... gcc
checking whether the C compiler (gcc  )
works... yes
checking whether the C compiler (gcc  )
is a cross-compiler... no
checking whether we are using GNU C...
yes
checking whether gcc accepts -g... yes
checking for building with threads...
no (default)
checking if the compiler understands
-pipe... yes
checking how to run the C
preprocessor... gcc -pipe -E
checking for sin... no
checking for main in -lieee... yes
checking for main in -linet... no
checking for net/errno.h... no
checking for connect... yes
checking for gethostbyname... yes
checking how to build libraries...
static
checking for ranlib... ranlib
checking if 64bit support is
requested... no
checking if 64bit Sparc VIS support is
requested... no
checking system version (for dynamic
loading)... ./configure: 1: Syntax error: Unterminated quoted string
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.



Anyone can help me? 

I have already install whit synaptic manager  tcl8.3, tk8.3,  tcl8.3-dev, 
tk8.3-dev, g++ and made
sudo apt-get install build-essential make tcl8.4-dev tk8.4-dev autoconf 
automake libxmu-dev
on terminal.


thanks in advance

Antonino


  Scopri il blog di Yahoo! Mail:
Trucchi, novità e scrivi la tua opinione.
http://www.ymailblogit.com/blog