Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
export CC=gcc33 CXX=g++33 && ./install
( Or you can edit the ns-allinone-2.26/ns-2.26/Makefile to
CC = gcc33 , CXX = g++33 , if it's only ns, that fails.)
..
by doing this even otcl does not install and gives c compiler error
Quote:
checking for gcc... gcc33
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.
i got that back to working, and only changed makefile.in in ns-2.26 folder with
Quote:
CC = gcc33
CPP = g++33
and i receive these errors
Quote:
s -I./diffusion3/diffusion -I./asim/ -I./qs -o gen/ns_tcl.o gen/ns_tcl.cc
make: g++33: Command not found
make: *** [gen/ns_tcl.o] Error 127
Ns make failed!
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
1) Please hit the 'Report' button, and ask for a title change :
'urgent' is a forbidden word here at LQ. We are volunteers only.
And will answer, when we have the time to do so.
2) Issues with e.g. ns-allinone-2.26 in Ubuntu are with the old tcl/tk.
I guessed, that when you had passed tcl / tk / otcl / tclcl,
then ns itself just required a different compiler ( as usual ).
The problem is, that nobody uses an old obsolete OS like Ubuntu 7.04.
I installed it anyway, and here is a new solution :
Please start from scratch in a new directory and do :
cd ns-allinone-2.26/ && patch -p1 < ns-2.26-gcc410.patch && ./install
( No edits are requird, it just compiles OK with the default gcc / g++ :
version 4.1.2 ).
..
I am having lots of errors in installing NS2.27 on Ubuntu 7.04. Some of the errors are
1) Couldn't find build essential
2) gcc -o mp3cut mp3cut.c
mp3cut.c:25:19: error: stdio.h: No such file or directory
mp3cut.c:26:20: error: stdlib.h: No such file or directory
mp3cut.c:27:20: error: string.h: No such file or directory
mp3cut.c:28:20: error: unistd.h: No such file or directory
( g++ will take care that the required headers gets installed.)
"Package: build-essential" ( For information only ) http://packages.ubuntu.com/dapper/build-essential
QUOTE :
"If you do not plan to build Debian packages, you don't need this package.
Moreover this package is not required for building Debian packages."
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.