Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
# 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.
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
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
@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
'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.
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.
# 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..
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
#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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.