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.
==========================================================
* Build OTcl-1.0a8
============================================================
No .configure file found in current directory
Continuing with default options...
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for gcc...
checking for C compiler default output... configure: error: C compiler cannot create executables
otcl-1.0a8 configuration failed! Exiting ...
Please check http://www.isi.edu/nsnam/ns/ns-problems.html
for common problems and bug fixes.
Please suggest something
Last edited by ershiprashukla88; 01-20-2016 at 12:35 PM.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
Re #8.
OK, a 32bits (i686) Ubuntu 10.04 .
Quote:
I got following error..
Please do not show errors without also showing the command causing the errors.
The ns-2.26 build better be like :
$ tar xvf ns-allinone-2.26.tar.gz
$ cd ns-allinone-2.26/
$ patch -p1 < ns-2.26-gcc410.patch
$ export CC=gcc34 CXX=g++34 && ./install
tar xvf ns-allinone-2.26.tar.gz
cd ns-allinone-2.26/
patch -p1 < ns-2.26-gcc410.patch
export CC=gcc34 CXX=g++34/ && ./install
cd ns-2.26/
sudo make install ( 'make install' will copy 'ns' to /usr/local/bin/ )
cp ns ns226-back ( This is your important backup )
sudo cp ns226-back /usr/local/bin/
... That's it, please do not add any *PATH* text to bashrc. Not required.
Please download the compilers for ns226 , and nam ...
thank you.. i have done your suggestion
Code:
creating ./config.status
creating Makefile
creating tkConfig.sh
gcc -pipe -c -O -D__NO_STRING_INLINES -D__NO_MATH_INLINES -Wall -Wconversion -Wno-implicit-int -fPIC -I/home/chandrasl/tugasakhir/ns-allinone-2.26/tk8.3.2/unix -I/home/chandrasl/tugasakhir/ns-allinone-2.26/tk8.3.2/unix/../generic -I/home/chandrasl/tugasakhir/ns-allinone-2.26/tk8.3.2/unix/../bitmaps -I/home/chandrasl/tugasakhir/ns-allinone-2.26/tcl8.3.2/generic -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_PW_GECOS=1 -DSTATIC_BUILD=1 -DTCL_NO_DEPRECATED /home/chandrasl/tugasakhir/ns-allinone-2.26/tk8.3.2/unix/../generic/tk3d.c
In file included from /home/chandrasl/tugasakhir/ns-allinone-2.26/tk8.3.2/unix/../generic/tkInt.h:21:0,
from /home/chandrasl/tugasakhir/ns-allinone-2.26/tk8.3.2/unix/../generic/tk3d.h:18,
from /home/chandrasl/tugasakhir/ns-allinone-2.26/tk8.3.2/unix/../generic/tk3d.c:16:
/home/chandrasl/tugasakhir/ns-allinone-2.26/tk8.3.2/unix/../generic/tk.h:83:23: fatal error: X11/Xlib.h: No such file or directory
compilation terminated.
make: *** [tk3d.o] Error 1
tk8.3.2 make failed! Exiting ...
For problems with Tcl/Tk see http://www.scriptics.com
root@chandrasl-VirtualBox:/home/chandrasl/tugasakhir/ns-allinone-2.26# cd ns-2.26/
root@chandrasl-VirtualBox:/home/chandrasl/tugasakhir/ns-allinone-2.26/ns-2.26# sudo make install
make: *** No rule to make target `install'. Stop.
but i got a problem when installed it. how to solve it?
Last edited by chandraseptian; 06-22-2016 at 07:26 AM.
I am trying to install ns-2.26 on ubuntu-16.04 (32-bit) and followed the instructions given in Reply#10 but after I execute this command:
export CC=gcc34 CXX=g++34/ && ./install
the installation ends with error:
============================================================
* Build OTcl-1.0a8
============================================================
No .configure file found in current directory
Continuing with default options...
checking build system type... Invalid configuration `x86_64-unknown-linux-gnu': machine `x86_64-unknown' not recognized
configure: error: /bin/sh ./config.sub x86_64-unknown-linux-gnu failed.
otcl-1.0a8 configuration failed! Exiting ...
Please check http://www.isi.edu/nsnam/ns/ns-problems.html
for common problems and bug fixes.
I have already installed the g++34 and gcc34 compilers and have the patch file mentioned in the instructions. I already have ns-2.35 installed, and is working well, but need ns-2.26 version for W-pan based project.
Please suggest what I may be missing. Please let me know if any other detail is required regarding the error.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.