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.
I try to install ns2 2.32 in ubuntu. It show the followinf error. How to clear it.
gcc -c -O2 -pipe -Wall -Wno-implicit-int -fno-strict-aliasing -fPIC -I/home/manikandan/ns2/ns-allinone-2.32/tk8.4.15/unix -I/home/manikandan/ns2/ns-allinone-2.32/tk8.4.15/unix/../generic -I/home/manikandan/ns2/ns-allinone-2.32/tk8.4.15/unix/../bitmaps -I/home/manikandan/ns2/ns-allinone-2.32/tcl8.4.15/generic -DHAVE_LIMITS_H=1 -DHAVE_UNISTD_H=1 -DSTATIC_BUILD=1 -DPEEK_XCLOSEIM=1 -D_LARGEFILE64_SOURCE=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_STRUCT_STAT64=1 -DHAVE_OPEN64=1 -DHAVE_LSEEK64=1 -DHAVE_TYPE_OFF64_T=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DSTDC_HEADERS=1 -DHAVE_PW_GECOS=1 -DTCL_NO_DEPRECATED /home/manikandan/ns2/ns-allinone-2.32/tk8.4.15/unix/../generic/tk3d.c
In file included from /home/manikandan/ns2/ns-allinone-2.32/tk8.4.15/unix/../generic/tkInt.h:21:0,
from /home/manikandan/ns2/ns-allinone-2.32/tk8.4.15/unix/../generic/tk3d.h:18,
from /home/manikandan/ns2/ns-allinone-2.32/tk8.4.15/unix/../generic/tk3d.c:16:
/home/manikandan/ns2/ns-allinone-2.32/tk8.4.15/unix/../generic/tk.h:83:23: fatal error: X11/Xlib.h: No such file or directory
compilation terminated.
make: *** [tk3d.o] Error 1
tk8.4.15 make failed! Exiting ...
For problems with Tcl/Tk see http://www.scriptics.com
I try the above code. It give the following message.
manikandan@manikandan-TM4750:~$ sudo apt-get update && sudo apt-get install g++ autoconf automake libtool libxmu-dev patch xgraph
E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/lib/apt/lists/
manikandan@manikandan-TM4750:~$
Thank you .. for your kind help.
Now the code is working properly. I have successfully installed ns2. At the time my laptop wi-fi connection was in Off Mode.
I try to install ns2 2.27 on RHEL. It give the following error. I need the solution.
7/otcl-1.8 -I/home/ns-allinone-2.27/include -I/home/ns-allinone-2.27/include -o Tcl.o Tcl.cc
In file included from tclcl.h:48,
from Tcl.cc:47:
tclcl-mappings.h: In static member function `static int TclObjectHelper<T>::dispatch_(void*, Tcl_Interp*, int, char**)':
tclcl-mappings.h:51: error: incomplete type `Tcl' used in nested name specifier
tclcl-mappings.h:52: error: invalid use of undefined type `struct Tcl'
tclcl-mappings.h:41: error: forward declaration of `struct Tcl'
tclcl-mappings.h:57: error: invalid use of undefined type `struct Tcl'
tclcl-mappings.h:41: error: forward declaration of `struct Tcl'
make: *** [Tcl.o] Error 1
tclcl-1.15 make failed! Exiting ...
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
# 9 : RHEL 4, The default compiler is gcc/g++ version 3.4.6, i.e. OK.
tar zxvf ns-allinone-2.27.tar.gz
patch -p0 < ns-2.27-gcc410.patch
cd ns-allinone-2.27/
./install : No errors.
Probably start from scratch with a new unpacked ns-allinone-2.27.tar.gz.
... And follow the above strictly.
( The patch is applied outside ns-allinone-2.27/ ).
Dear Sir,
I try to install ns2 2.27. But in the gcc itself shows some error..
Please find the error messages after upgrade the gcc34...
checking whether the C compiler (gcc34 ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
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.
[root@Prithvi ns-allinone-2.27]# gcc -v
Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.6/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-java-awt=gtk --host=i386-redhat-linux
Thread model: posix
gcc version 3.4.6 20060404 (Red Hat 3.4.6-3)
[root@Prithvi ns-allinone-2.27]#
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
# 11 : gcc cannot be used, when gcc only is installed.
The c++ compiler is required too. Package name : 'gcc-c++'.
Why are you using the obsolete RHEL 4 for ns2 ?
Ubuntu 11.04, ref. post # 3 is better suited for ns-2.27, I think.
Ubuntu 11.04, ns226 .. ns234 compiler : gcc41-compat + g++41-compat : http://www.linuxquestions.org/questi...571/page2.html
> Post # 17
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.