LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-16-2010, 01:04 PM   #31
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

# 30 : A new protocol or other modifications are to be
compiled into the binary ( executable ) " ns ", to work.

Actually you can have more than one 'ns', just rename it,
before a new one is created. Example: ns234, ns-mod1, ns-mod2.

The other binaries / libraries are usually not modified,
and can be installed to /usr/* , 'nam' to /usr/local/bin/ .
 
Old 04-16-2010, 04:59 PM   #32
marioma
LQ Newbie
 
Registered: Apr 2010
Posts: 10

Rep: Reputation: 0
Hi dears,
after finishing all packages update, I start installing the NS2.34
sudo apt-get install build-essential autoconf automake libxmu-dev

then
./install

I got this error:

Quote:
creating ./bin
rm -f libotcl.a otcl.o
gcc -c -g -O2 -DNDEBUG -DUSE_SHM -I. -I/home/mariam/ns-allinone-2.34/include -I/home/mariam/ns-allinone-2.34/include -I/home/mariam/ns-allinone-2.34/include -I/include otcl.c
ar cq libotcl.a otcl.o
ranlib libotcl.a
rm -f libotcl.so otcl.o so_locations
gcc -c -g -O2 -DNDEBUG -DUSE_SHM -fpic -I. -I/home/mariam/ns-allinone-2.34/include -I/home/mariam/ns-allinone-2.34/include -I/home/mariam/ns-allinone-2.34/include -I/include otcl.c
ld -shared -o libotcl.so otcl.o
otcl.o: In function `OTclDispatch':
/home/mariam/ns-allinone-2.34/otcl-1.13/otcl.c:495: undefined reference to `__stack_chk_fail_local'
otcl.o: In function `Otcl_Init':
/home/mariam/ns-allinone-2.34/otcl-1.13/otcl.c:2284: undefined reference to `__stack_chk_fail_local'
ld: libotcl.so: hidden symbol `__stack_chk_fail_local' isn't defined
ld: final link failed: Nonrepresentable section on output
make: *** [libotcl.so] Error 1
otcl-1.13 make failed! Exiting ...
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
 
Old 04-16-2010, 06:56 PM   #33
marioma
LQ Newbie
 
Registered: Apr 2010
Posts: 10

Rep: Reputation: 0
Hi according to your post #6
at step:
cd ../ns-2.34/
sudo make install

I got
Quote:
mariam@ubuntu:~/ns-allinone-2.34/ns-2.34$ sudo make install
for d in /usr/local/man/man1; do \
if [ ! -d $d ]; then \
mkdir -p $d ;\
fi;\
done
/usr/bin/install -c -m 755 ns /usr/local/bin
/usr/bin/install: cannot stat `ns': No such file or directory
make: *** [install-ns] Error 1
and at step:
cd ../nam-1.14/
sudo make install


I got
Quote:
mariam@ubuntu:~/ns-allinone-2.34/nam-1.14$ sudo make install
make: *** No rule to make target `install'. Stop.
and finally when I try to run an example, i got
Quote:
mariam@ubuntu:/usr/local/bin$ ns example1.tcl
ns: command not found
 
Old 04-16-2010, 09:43 PM   #34
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
# 33 : ns , nam : you can't install something, that isn't there.
The build script is "install".
And the compiling sequence is tcl-tk-octl-tclcl-ns-nam.
A stop in otcl : no ns. Or nam.

Post # 4 tells : Edit ' otcl-1.13/Makefile.in ' to gcc-4.3 .
Or patch otcl, please see post # 4 here
http://www.linuxquestions.org/questi...10-a-799883/#4
And then just do ./install in the top directory, ns-allinone-2.34/
to build all the applications.

Last edited by knudfl; 04-17-2010 at 01:29 AM.
 
1 members found this post helpful.
Old 04-17-2010, 04:25 AM   #35
marioma
LQ Newbie
 
Registered: Apr 2010
Posts: 10

Rep: Reputation: 0
Dear Knudfl
Finally it WOEKS %%%%%%%%%%%%%
Really very thanks for your kind help and support.
Hope all good for you ISA
Thanks a lot
Mariam
 
Old 07-03-2010, 10:01 AM   #36
Bilal Zafar
LQ Newbie
 
Registered: Jul 2010
Posts: 2

Rep: Reputation: 0
The Solution suggested by knudfl works for Ubuntu 10.04 as well.
 
Old 03-08-2011, 04:39 AM   #37
Yugesh Gowda
LQ Newbie
 
Registered: Mar 2011
Posts: 13

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Sorry, my mistake. The correct order seems to be
' CC=gcc-4.3 CXX=g++-4.3 ./install '

And, by the way, there are no c++ code in otcl,
so the 'CC=gcc-4.3 ./install' alone will probably do.

But as only ' otcl ' dislikes gcc-4.4.1, I will choose
this solution : Edit ' otcl-1.13/Makefile.in ', line 7
Code:
From :
CC=       @CC@

to :
CC=       gcc-4.3
... And ns-allinone-2.34 compiles on Ubuntu 9.10 with no errors.
I will attach the result of ' ./validate ' here when it has
finished.
.....
Even I had same problem..
I followed these steps. But during Edit ' otcl-1.13/Makefile.in ',..
I got this error msg..
bash: otcl-1.13/Makefile.in: Permission denied
How to get permission to edit that file???
Please reply me fast..please do reply..

Last edited by Yugesh Gowda; 03-08-2011 at 04:49 AM. Reason: urgent
 
Old 03-08-2011, 06:20 AM   #38
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
@Yugesh Gowda, post # 37 : Welcome to LQ.

'ns-allinone-2.34/' is supposed to be unpacked in /home/<user-name>/<any-folder>/
... Like : /home/<user-name>/ns2/ns-allinone-2.34/ .

I.e in your /home/<user-name>/, you have access to all files :
You can edit a file, and the most important : You can use all "ns2 functions",
when you have built the application.

Instead of editing the Makefile.in you can just do :
cd ns-allinone-2.34/ && export CC=gcc-4.3 CXX=g++-4.3 && ./install

..

Last edited by knudfl; 03-08-2011 at 06:21 AM.
 
1 members found this post helpful.
Old 03-08-2011, 11:11 AM   #39
Yugesh Gowda
LQ Newbie
 
Registered: Mar 2011
Posts: 13

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
@Yugesh Gowda, post # 37 : Welcome to LQ.

'ns-allinone-2.34/' is supposed to be unpacked in /home/<user-name>/<any-folder>/
... Like : /home/<user-name>/ns2/ns-allinone-2.34/ .

I.e in your /home/<user-name>/, you have access to all files :
You can edit a file, and the most important : You can use all "ns2 functions",
when you have built the application.

Instead of editing the Makefile.in you can just do :
cd ns-allinone-2.34/ && export CC=gcc-4.3 CXX=g++-4.3 && ./install

..
Thanks for your reply..
I have done as u suggested.. but i am getting this problem now..
Code:
============================================================
* Testing for Darwin (OS X) environment
============================================================
============================================================
* Testing for Cygwin environment
============================================================
Cygwin not detected, proceeding with regular install.
============================================================
* Testing for FreeBSD environment
============================================================
FreeBSD not detected
============================================================
* Build XGraph-12.1
============================================================
loading cache ./config.cache
checking for a BSD compatible install... (cached) /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... (cached) yes
checking for working aclocal... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... missing
checking if malloc debugging is wanted... no
checking for gcc... (cached) 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... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking how to run the C preprocessor... (cached) gcc -E
checking for X... (cached) libraries , headers 
checking for dnet_ntoa in -ldnet... (cached) no
checking for dnet_ntoa in -ldnet_stub... (cached) no
checking for gethostbyname... (cached) yes
checking for connect... (cached) yes
checking for remove... (cached) yes
checking for shmat... (cached) yes
checking for IceConnectionNumber in -lICE... (cached) yes
checking for float.h... (cached) yes
checking for limits.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for unistd.h... (cached) yes
checking for strcasecmp... (cached) yes
creating ./config.status
creating Makefile
creating autoconf.h
autoconf.h is unchanged
make: Warning: File `xgraph.o' has modification time 1e+04 s in the future
gcc -DHAVE_CONFIG_H -I. -I. -I.        -g    -c dialog.c
dialog.c: In function ‘make_msg_box’:
dialog.c:780: warning: passing argument 2 of ‘getline’ from incompatible pointer type
/usr/include/stdio.h:671: note: expected ‘size_t * __restrict__’ but argument is of type ‘char *’
dialog.c:780: error: too few arguments to function ‘getline’
dialog.c: In function ‘getline’:
dialog.c:899: error: argument ‘lptr’ doesn’t match prototype
/usr/include/stdio.h:671: error: prototype declaration
dialog.c:899: error: number of arguments doesn’t match prototype
/usr/include/stdio.h:671: error: prototype declaration
make: *** [dialog.o] Error 1
Can not create xgraph; But xgraph is an optional package, continuing...
============================================================
* Build CWeb
============================================================
Making cweb
make: Warning: File `ctangle' has modification time 1.9e+04 s in the future
make: Nothing to be done for `all'.
make: warning:  Clock skew detected.  Your build may be incomplete.
ln: creating symbolic link `cweave': File exists
ln: creating symbolic link `ctangle': File exists
============================================================
* Build Stanford GraphBase
============================================================
Making sgb
make: Warning: File `gb_io.o' has modification time 1e+04 s in the future
gcc-4.3 -g -I/usr/local/sgb/include  test_io.c gb_io.o -o test_io
make: gcc-4.3: Command not found
make: *** [test_io] Error 127
Unable to create sgb library, but it's optional, so continuing...
============================================================
* Build GT-ITM
============================================================
make: Warning: File `itm.o' has modification time 1e+04 s in the future
gcc  -I../include -L../lib  -DFBSD -o ../bin/itm itm.o geog.o ts.o dfs.o -lm -lgb
gcc  -I../include -L../lib  -DFBSD -o ../bin/sgb2alt sgb2alt.o  -lm -lgb 
gcc  -I../include -L../lib  -DFBSD -o ../bin/edriver edriver.o eval.o -lm -lgb
make: warning:  Clock skew detected.  Your build may be incomplete.
gt-itm has been installed successfully.
make: Warning: File `sgb2comns.o' has modification time 1e+04 s in the future
gcc  -I../include -L../lib  -o ../bin/sgb2comns sgb2comns.o -lm -lgb
gcc  -I../include -L../lib  -o ../bin/sgb2hierns sgb2hierns.o -lm -lgb
gcc  -I../include -L../lib  -o ../bin/sgb2ns sgb2ns.o -lm -lgb 
make: warning:  Clock skew detected.  Your build may be incomplete.
sgb2ns has been installed successfully.
============================================================
* Build zlib
============================================================
Building static library libz.a version 1.2.3 with gcc-4.3.
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.
make: Warning: File `example' has modification time 1.6e+04 s in the future
make: Nothing to be done for `all'.
make: warning:  Clock skew detected.  Your build may be incomplete.
Zlib has been installed successfully.
============================================================
* Build tcl8.4.18
============================================================
configure: WARNING: unrecognized options: --enable-gcc
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-4.3
checking whether the C compiler works... no
configure: error: in `/home/yugesh/ns-allinone-2.34/tcl8.4.18/unix':
configure: error: C compiler cannot create executables
See `config.log' for more details
tcl8.4.18 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.
Please if any help I'll be pleased..
IMPORTANT NOTICE: I'm using Linux mint 10(julia) as OS..

Last edited by Yugesh Gowda; 03-08-2011 at 12:26 PM.
 
Old 03-08-2011, 12:01 PM   #40
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
Post # 39 : Please use code tags instead of 'QUOTE'. (Edit the above post.)
http://www.linuxquestions.org/questi....php?do=bbcode
It's the # marked button in the "Advanced editor".
Quote:
configure: error: C compiler cannot create executables
apt-get install g++ g++-4.3 autoconf automake libtool \
libx11-dev libxmu-dev libxmu-headers libxt-dev

..
 
1 members found this post helpful.
Old 03-08-2011, 12:29 PM   #41
Yugesh Gowda
LQ Newbie
 
Registered: Mar 2011
Posts: 13

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
Post # 39 : Please use code tags instead of 'QUOTE'. (Edit the above post.)
http://www.linuxquestions.org/questi....php?do=bbcode
It's the # marked button in the "Advanced editor".

apt-get install g++ g++-4.3 autoconf automake libtool \
libx11-dev libxmu-dev libxmu-headers libxt-dev

..
I'm new to linux..
I tried above command and i am getting this message..
Code:
yugesh@linuxmint ~ $ apt-get install g++ g++-4.3 autoconf automake libtool \libx11-dev libxmu-dev libxmu-headers libxt-dev
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
yugesh@linuxmint ~ $
Help me to install this software from scratch..
I need this for my college project.. Urgent

Last edited by Yugesh Gowda; 03-08-2011 at 12:43 PM.
 
Old 03-08-2011, 12:39 PM   #42
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
# 41 : I don't know, if Mint 10 uses 'su' or 'sudo'.

It used to be :
sudo apt-get install g++ g++-4.3 autoconf automake libtool \
libx11-dev libxmu-dev libxmu-headers libxt-dev
 
1 members found this post helpful.
Old 03-08-2011, 01:47 PM   #43
Yugesh Gowda
LQ Newbie
 
Registered: Mar 2011
Posts: 13

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
# 41 : I don't know, if Mint 10 uses 'su' or 'sudo'.

It used to be :
sudo apt-get install g++ g++-4.3 autoconf automake libtool \
libx11-dev libxmu-dev libxmu-headers libxt-dev
Thanx for your help..
It installed succesfully..
But i don't know how to run ns2 simulation..
I got this message after installation.. what does this mean.. Do i have to do some other steps in order to complete installation..
Code:
Please put /home/yugesh/ns-allinone-2.34/bin:/home/yugesh/ns-allinone-2.34/tcl8.4.18/unix:/home/yugesh/ns-allinone-2.34/tk8.4.18/unix
into your PATH environment; so that you'll be able to run itm/tclsh/wish/xgraph.

IMPORTANT NOTICES:

(1) You MUST put /home/yugesh/ns-allinone-2.34/otcl-1.13, /home/yugesh/ns-allinone-2.34/lib, 
    into your LD_LIBRARY_PATH environment variable.
    If it complains about X libraries, add path to your X libraries 
    into LD_LIBRARY_PATH.
    If you are using csh, you can set it like:
		setenv LD_LIBRARY_PATH <paths>
    If you are using sh, you can set it like:
		export LD_LIBRARY_PATH=<paths>

(2) You MUST put /home/yugesh/ns-allinone-2.34/tcl8.4.18/library into your TCL_LIBRARY environmental
    variable. Otherwise ns/nam will complain during startup.


After these steps, you can now run the ns validation suite with
cd ns-2.34; ./validate

For trouble shooting, please first read ns problems page 
http://www.isi.edu/nsnam/ns/ns-problems.html. Also search the ns mailing list archive
for related posts
If there are any further steps to done.. Then please tell me how to do it..
 
Old 03-08-2011, 02:55 PM   #44
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
#43
Quote:
.. I don't know how to run ns2 simulation ..
What is the purpose of building ns-allinone-2.34 ?
There are tons of ns2 documentation on the internet : Google can find it.


Quote:
I got this message after installation.. what does this mean..
ns and nam will usually work with the libraries in /usr/lib/, so if everything
works, no reason to set an LD_LIBRARY_PATH .
The PATH for the binaries : cd ns-allinone-2.34/ns-2.34/ && sudo make install
&& cd ../nam-1.14/ && sudo make install.
"sudo make install" will copy ns, nam to /usr/local/bin :
They are then in a system path.
 
Old 03-08-2011, 04:18 PM   #45
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
# 43 : Simulation.

Start examples here http://www.isi.edu/nsnam/ns/tutorial/nsscript1.html
And an LQ thread about the examples :
http://www.linuxquestions.org/questi...roblem-726993/
( Some of the examples are attached, example1b.tcl.txt, etc.)

More info : LQ Search → Keyword = ns-allinone
And LQ Search → Tag = ns2

Also : http://nsnam.isi.edu/nsnam/index.php/User_Information

..
 
  


Reply

Tags
ns2, ns234



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
slackware installation wont install. xlordt Slackware 9 02-21-2008 09:48 AM
Installation wont work with 6800 GS scripts Linux - Hardware 1 06-16-2006 10:15 AM
New installation cd's wont boot BACTRATE SUSE / openSUSE 7 12-05-2005 09:15 AM
RH9 wont boot after installation FrancoisRabe Linux - Software 1 01-24-2005 01:40 AM
Linux wont boot after installation Sporndog Linux - Newbie 2 03-24-2004 02:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:44 PM.

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