LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-04-2011, 03:13 AM   #1
unodior
Member
 
Registered: Mar 2011
Distribution: Fedora 12
Posts: 56

Rep: Reputation: 28
Unhappy please,it's IMPORTANT help me:fedora 14, ns2.30


hello,i'm new here. i've installed fedora14,and i need to install ns2.30. the problem is that when i write ./install in the terminal it gives me this:

[root@localhost ns-allinone-2.30]# ./install
============================================================
* Testing for Cygwin environment
============================================================
Cygwin not detected, proceeding with regular install.
============================================================
* Build XGraph-12.1
============================================================
loading cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking if malloc debugging is wanted... no
checking for gcc... no
checking for cc... no
configure: error: no acceptable cc found in $PATH
make: *** No se especificó ningún objetivo y no se encontró ningún makefile. Alto.
Can not create xgraph; But xgraph is an optional package, continuing...
============================================================
* Build CWeb
============================================================
Making cweb
gcc -g -c -o ctangle.o ctangle.c
make: gcc: No se encontró el programa
make: *** [ctangle.o] Error 127
cweb failed to make, but it's optional
chmod: no se puede acceder a «cweave»: No existe el fichero o el directorio
chmod: no se puede acceder a «ctangle»: No existe el fichero o el directorio
ln: creating symbolic link «cweave»: El fichero ya existe
ln: creating symbolic link «ctangle»: El fichero ya existe
============================================================
* Build Stanford GraphBase
============================================================
Making sgb
if test -r gb_io.ch; then ctangle gb_io.w gb_io.ch; else ctangle gb_io.w; fi
/bin/sh: ctangle: no se encontró la orden
make: *** [gb_io.c] Error 127
Unable to create sgb library, but it's optional, so continuing...
============================================================
* Build GT-ITM
============================================================
sgb lib not found. gt-itm & sgb2ns could not be installed. Continuing..
============================================================
* Build zlib
============================================================
Checking for gcc...
Building static library libz.a version 1.2.3 with cc.
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.
cc -O -DNO_snprintf -DHAS_sprintf_void -DNO_ERRNO_H -c -o example.o example.c
make: cc: No se encontró el programa
make: *** [example.o] Error 127
Zlib make failed, but it's optional Continue ...
============================================================
* Build tcl8.4.13
============================================================
loading cache ./config.cache
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... no
checking for cc... no
configure: error: no acceptable cc found in $PATH
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.
 
Old 03-04-2011, 03:19 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
install gcc and glib-devel (or the development tools group) via yum and please do not demand priority attention in the future, it is NOT "IMPORTANT" for us, thanks.
 
1 members found this post helpful.
Old 03-04-2011, 03:38 AM   #3
unodior
Member
 
Registered: Mar 2011
Distribution: Fedora 12
Posts: 56

Original Poster
Rep: Reputation: 28
I'm really really sorry. I didn't mean to be rude,it's only I'm starting and it's for University. I don't know if I should ask, but could you please tell me what is yum?
 
Old 03-04-2011, 06:32 AM   #4
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
Welcome to LQ.

The usual, for ns2 : # yum install \
gcc-c++ compat-gcc-34-c++ automake autoconf libtool libX11-devel \
libXext-devel libXau-devel libXmu-devel xorg-x11-proto-devel

And probably :
cd ns-allinone-2.30/ && export CC=gcc34 CXX=g++34 && ./install
 
1 members found this post helpful.
Old 03-04-2011, 07:14 AM   #5
unodior
Member
 
Registered: Mar 2011
Distribution: Fedora 12
Posts: 56

Original Poster
Rep: Reputation: 28
Thank you very much. I've got a new problem:when I write ./install I've got a new error:

g++ -c -DNO_TK -DNDEBUG -DUSE_SHM -DHAVE_LIBOTCL1_12 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCLINT_H -DHAVE_TCL_H -DHAVE_CONFIG_H -I. -I/home/Stella/Descargas/ns-allinone-2.30/otcl-1.12 -I/home/Stella/Descargas/ns-allinone-2.30/include -I/home/Stella/Descargas/ns-allinone-2.30/include -I/home/Stella/Descargas/ns-allinone-2.30/include -o Tcl.o Tcl.cc
Tcl.cc: En la función miembro ‘void Tcl::eval(char*)’:
Tcl.cc:182:8: aviso: conversión obsoleta de una constante de cadena a ‘char*’
Tcl.cc: En la función miembro ‘int TclObject::traceVar(const char*, TclObject*)’:
Tcl.cc:421:50: aviso: conversión obsoleta de una constante de cadena a ‘char*’
Tcl.cc: En la función miembro static ‘static int TclClass::create_shadow(void*, Tcl_Interp*, int, const char**)’:
Tcl.cc:509:57: aviso: conversión obsoleta de una constante de cadena a ‘char*’
Tcl.cc:511:61: aviso: conversión obsoleta de una constante de cadena a ‘char*’
Tcl.cc: En la función miembro static ‘static int TclClass::dispatch_instvar(void*, Tcl_Interp*, int, const char**)’:
Tcl.cc:566:35: error: conversión inválida de ‘const char*’ a ‘char*’
Tcl.cc:571:72: aviso: conversión obsoleta de una constante de cadena a ‘char*’
Tcl.cc: En la función miembro ‘virtual void TclClass::bind()’:
Tcl.cc:603:60: aviso: conversión obsoleta de una constante de cadena a ‘char*’
Tcl.cc:605:60: aviso: conversión obsoleta de una constante de cadena a ‘char*’
make: *** [Tcl.o] Error 1
tclcl-1.18 make failed! Exiting ...
What do I have to do? I MUST use the 2.30 version, I can't change it

Last edited by unodior; 03-04-2011 at 07:17 AM.
 
Old 03-04-2011, 07:40 AM   #6
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
"g++ -c ... " is wrong, if you are using Fedora 14.
( Your "other post" said Fedora 11.)

Should be "g++34 -c ... ".

The install command must be :
'export CC=gcc34 CXX=g++34 && ./install'

The export command is temporary : When you exit the terminal,
you will reset to gcc / g++ = version 4.5.1.
The version to use is : 3.4.6 !
 
1 members found this post helpful.
Old 03-04-2011, 08:17 AM   #7
unodior
Member
 
Registered: Mar 2011
Distribution: Fedora 12
Posts: 56

Original Poster
Rep: Reputation: 28
I've already installed the gcc 4.3 but when i run again install i get the problem I've posted above
 
Old 03-04-2011, 08:24 AM   #8
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
Quote:
I've already installed the gcc 4.3
Hopefully you mean gcc-c++-3.4.6 ?

# yum install compat-gcc-34-c++


Actually, I did run : export CC=gcc34 CXX=g++34 && ./install
in ns-allinone-2.30/ , while I wrote post # 6 :
And got no errors. Fedora 14, 32bits was used.

..
 
1 members found this post helpful.
Old 03-04-2011, 08:40 AM   #9
unodior
Member
 
Registered: Mar 2011
Distribution: Fedora 12
Posts: 56

Original Poster
Rep: Reputation: 28
Thank you very much. It works now. I'm really thankful
 
Old 03-04-2011, 12:36 PM   #10
unodior
Member
 
Registered: Mar 2011
Distribution: Fedora 12
Posts: 56

Original Poster
Rep: Reputation: 28
New Problem

I've got a new problem. Validate works, but then I try to modifiy the bashrc file (I've installed ns2 in /opt/ns2-allinone-2.30)
and write these lines:

# LD_LIBRARY_PATH
OTCL_LIB=/opt/ns-allinone-2.30/otcl-1.12
NS2_LIB=/opt/ns-allinone-2.30/lib
X11_LIB=/usr/X11R6/lib
USR_LOCAL_LIB=/usr/local/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LI B:$X11_LIB:$USR_LOCAL_LIB

# TCL_LIBRARY
TCL_LIB=/opt/ns-allinone-2.30/tcl8.4.13/library
USR_LIB=/usr/lib
export TCL_LIBRARY=$TCL_LIB:$USR_LIB

# PATH
XGRAPH=/opt/ns-allinone-2.30/bin:/your/path/ns-allinone-2.30/tcl8.4.13/unix:/opt/ns-allinone-2.30/tk8.4.13/unix
NS=/opt/ns-allinone-2.30/ns-2.30/
NAM=/opt/ns-allinone-2.30/nam-1.12/
PATH=$PATH:$XGRAPH:$NS:$NAM

After that I try:
source ~/.bashrc

but the answer is:
-bash: export: `B:/usr/X11R6/lib:/usr/local/lib': no es un identificador válido

Can you help me please?

I've tried several step-by-step tutorials, and it continues giving me problems.
 
Old 03-04-2011, 12:51 PM   #11
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
Quote:
X11_LIB=/usr/X11R6/lib
Yes, that's an old thing ( like ns-allinone-2.30 ).
All x11 / X11 libraries are in /usr/lib/


Installing to /opt/ : Not a good idea. Only makes it difficult to use.

Please keep it all in /home/Stella/ns2/
( Or another folder in /home/Stella/ )

..
 
1 members found this post helpful.
Old 03-04-2011, 01:05 PM   #12
unodior
Member
 
Registered: Mar 2011
Distribution: Fedora 12
Posts: 56

Original Poster
Rep: Reputation: 28
Is there a "ns2.30 + fedora14 for dummies"?

Yes, I would like to install 2.34 BUT my teacher at University has decided that I must use 2.30. The problem is that I only want to install ns2 because I have to work about lte. I know this time the topic "women and linux don't match" feets me and -to be honest- I suppose it has to be very funny reading my stupid questions,but after trying it all day, I'm quite lost.

So.. I don't have to install ns2.30 in /opt, but in /home/Stella?
And, I'm sorry, but I haven't understood what I have to do about my problem with the bashrc file, what should I write instead of that?

Last edited by unodior; 03-04-2011 at 01:07 PM.
 
Old 03-04-2011, 02:28 PM   #13
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
Quote:
.. the bashrc file, what should I write instead of that ?
If at all required ( it isn't ): X11_LIB=/usr/lib instead of X11_LIB=/usr/X11R6/lib
And omit this line : USR_LOCAL_LIB=/usr/local/lib ( No ns2 related files there.)


Usually having about three "ns-allinone-2.x" on each OS,
I never add anything to any configuration file. (.bashrc)
The binaries, 'ns' and 'nam' are partly statically compiled
on all newer ns-allinone-2.x. That means :
No dependencies except those already in a known path (/usr/lib/).

I would do : cd ns-allinone-2.30/ns-2.30/ && cp ns ns230
( Then you have saved an ns(230), that will work with non LTE files.)
When you have added the LTE patch, and compiled a new ns, suggest :
cp ns ns-lte. Next : copy all binaries to /usr/local/bin/
( ns, ns230, ns-lte, nam.) Then they are always in the PATH.

..
 
1 members found this post helpful.
Old 03-04-2011, 02:41 PM   #14
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
P.S. : About LTE : the "lte thread" ...

http://www.linuxquestions.org/questi...2-33-a-857930/
 
1 members found this post helpful.
Old 03-04-2011, 03:00 PM   #15
unodior
Member
 
Registered: Mar 2011
Distribution: Fedora 12
Posts: 56

Original Poster
Rep: Reputation: 28
Thank you very much
 
  


Reply



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
how to install NS2.34 in fedora 14 naren123.k Linux - Software 9 03-12-2011 03:20 AM
How to install NS2 on fedora 11????? liban779 Linux - Software 5 03-04-2011 06:46 AM
i am using ubuntu as os. for NS2 to implement a routing protocol in ns2. sujovasu Programming 1 07-27-2010 01:44 AM
how to install ns2 on fedora ? vaibhav_soham Linux - Software 1 01-02-2010 01:05 AM
how to install ns2 in fedora-5? salady86 Linux - Newbie 3 03-14-2008 08:55 AM

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

All times are GMT -5. The time now is 07:42 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