LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 10-04-2013, 03:08 PM   #16
najma
LQ Newbie
 
Registered: Jun 2011
Posts: 22

Original Poster
Rep: Reputation: Disabled

Post# 15
This is what i m getting when i run commands:
najmaismat@ubuntu:~$ sudo apt-get install gcc-4.1
Reading package lists... Done
Building dependency tree
Reading state information... Done
gcc-4.1 is already the newest version.
The following packages were automatically installed and are no longer required:
libaccess-bridge-java nspluginwrapper libaccess-bridge-java-jni
linux-headers-2.6.32-33 linux-headers-2.6.32-33-generic
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 49 not upgraded.
najmaismat@ubuntu:~$ sudo apt-get install g++-4.1
Reading package lists... Done
Building dependency tree
Reading state information... Done
g++-4.1 is already the newest version.
The following packages were automatically installed and are no longer required:
libaccess-bridge-java nspluginwrapper libaccess-bridge-java-jni
linux-headers-2.6.32-33 linux-headers-2.6.32-33-generic
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 49 not upgraded.
 
Old 10-04-2013, 03:21 PM   #17
najma
LQ Newbie
 
Registered: Jun 2011
Posts: 22

Original Poster
Rep: Reputation: Disabled
Post#16
when I run this command [$ export CC=gcc-4.1 CXX=g++-4.1 && ./install]
i m getting this getting this result

root@ubuntu:/home/najmaismat# export CC=gcc-4.1 CXX=g++-4.1 && ./install
bash: ./install: No such file or directory

and for Configuring ns-2.29/ [$ export CC=gcc-4.1 CXX=g++-4.1 && ./configure]
the this is the o/p show in code window:
Code:
root@ubuntu:/home/najmaismat/ns-allinone-2.29/ns-2.29# export CXX=g++41 && ./configure
No .configure file found in current directory
Continuing with default options...
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for gcc... gcc-4.1
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc-4.1 accepts -g... yes
checking for gcc-4.1 option to accept ANSI C... none needed
checking whether we are using the GNU C++ compiler... no
checking whether g++41 accepts -g... no
checking how to run the C preprocessor... gcc-4.1 -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for string.h... (cached) yes
checking for main in -lXbsd... no
checking for socket in -lsocket... no
checking for gethostbyname in -lnsl... yes
checking for dcgettext in -lintl... no
checking for getnodebyname in -ldnet_stub... no
checking if C++ libraries work without any namespace... no
checking if C++ libraries work with namespace std... no
checking if STL works without any namespace... no
checking if STL works with namespace std... no
checking if STL works with namespace stl... no
checking should use STL... no, couldn't find STL
checking for tcl.h... -I../include
checking for libtcl8.4... -L../lib -ltcl8.4
checking for init.tcl... ../lib/tcl8.4
checking for tclsh8.4.11... no
checking for tclsh8.4... ../bin/tclsh8.4
checking for tk.h... -I../include
checking for libtk8.4... -L../lib -ltk8.4
checking for tk.tcl... ../lib/tk8.4
checking for otcl.h... -I../otcl-1.11
checking for libotcl1.11... -L../otcl-1.11 -lotcl
checking for tclcl.h... -I../tclcl-1.17
checking for libtclcl... -L../tclcl-1.17 -ltclcl
checking for tcl2c++... ../tclcl-1.17
checking for libtcldbg... no
checking dmalloc... not requested with --with-dmalloc
checking for perl... /usr/bin
checking for ANSI C header files... (cached) yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking fenv.h usability... yes
checking fenv.h presence... yes
checking for fenv.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking for unistd.h... (cached) yes
checking net/ethernet.h usability... yes
checking net/ethernet.h presence... yes
checking for net/ethernet.h... yes
checking for main in -lm... yes
checking for bcopy... yes
checking for bzero... yes
checking for fesetprecision... no
checking for feenableexcept... yes
checking for getrusage... yes
checking for sbrk... yes
checking for snprintf... yes
checking return type of random... long
checking for int8_t... yes
checking for int16_t... yes
checking for int32_t... yes
checking for u_int8_t... yes
checking for u_int16_t... yes
checking for u_int32_t... yes
checking for u_char... yes
checking for u_int... yes
checking for strtoq... yes
checking for strtoll... yes
checking for long... yes
checking size of long... 8
checking for strtol... yes
checking for __int64_t... no
checking for long long... yes
checking for int64_t... yes
checking which kind of 64-bit int to use... int64_t
checking for struct ether_header... found
checking for struct ether_addr... found
checking for addr2ascii... no
checking for Linux compliant tcphdr... found
checking for BSD compliant tcphdr... not found
checking for socklen_t... yes
checking for main in -lpcap... no
checking to make nse... no
Explicitly disabling static compilation
checking for dlopen in -ldl... yes
checking for a BSD-compatible install... /usr/bin/install -c
configure: creating ./config.status
config.status: creating Makefile
config.status: creating tcl/lib/ns-autoconf.tcl
config.status: creating indep-utils/webtrace-conv/ucb/Makefile
config.status: creating indep-utils/webtrace-conv/dec/Makefile
config.status: creating indep-utils/webtrace-conv/nlanr/Makefile
config.status: creating indep-utils/webtrace-conv/epa/Makefile
config.status: creating indep-utils/cmu-scen-gen/setdest/Makefile
config.status: creating autoconf.h
config.status: autoconf.h is unchanged
 
Old 10-04-2013, 06:08 PM   #18
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,299

Rep: Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168
# 17 .

From your "code tag window" :
Quote:
root@ubuntu:/home/najmaismat/ns-allinone-2.29/ns-2.29# export CXX=g++41 && ./configure
That's a typo : You have no g++41 installed. ! You have g++-4.1 !

Please type : export CXX=g++-4.1 && ./configure
 
Old 10-05-2013, 03:16 PM   #19
najma
LQ Newbie
 
Registered: Jun 2011
Posts: 22

Original Poster
Rep: Reputation: Disabled
Post # 18
hi,
when i run the command [export CXX=g++-4.1 && ./configure] i m getting this error.

najmaismat@ubuntu:~/ns-allinone-2.29/ns-2.29$ export CXX=g++-4.1 && ./configure
./configure: line 994: config.log: Permission denied
 
Old 10-05-2013, 03:45 PM   #20
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,299

Rep: Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168
# 19 .
Quote:
./configure: line 994: config.log: Permission denied
May you did a previous build by using 'sudo' ?
And got some files to be owned by root.
Then you have no write access to files, as unprivileged user.

Solution : Start from scratch. Avoid using sudo.
Or change owner :
Code:
$ sudo chown -R najma:najma *
 
Old 10-05-2013, 04:09 PM   #21
najma
LQ Newbie
 
Registered: Jun 2011
Posts: 22

Original Poster
Rep: Reputation: Disabled
Post # 20
thanks for the reply..
yes i did use the sudo for the previouss build, with the command suggested by you in the previous post and shown in the code window i was able to run the ./config command, but when i run the third command i m getting the same error as in post#5

Code:
sudo chown -R najmaismat:najmaismat *
najmaismat@ubuntu:~/ns-allinone-2.29$ export CXX=g++-4.1 && ./configure

najmaismat@ubuntu:~/ns-allinone-2.29$ export CC=gcc-4.1 CXX=g++-4.1 && ./install
RAttribute*> > >*)':
accessPointDiffApp.cc:(.text._ZN24NRSimpleAttributeFactoryIP7AppDataE4findEPSt6vectorIP11NRAttributeSaIS5_EEPN9__gnu_cxx17__normal_iteratorIPS5_S7_EE[NRSimpleAttributeFactory<AppData*>::find(std::vector<NRAttribute*, std::allocator<NRAttribute*> >*, __gnu_cxx::__normal_iterator<NRAttribute**, std::vector<NRAttribute*, std::allocator<NRAttribute*> > >*)]+0x33): undefined reference to `NRAttribute::find_key_from(int, std::vector<NRAttribute*, std::allocator<NRAttribute*> >*, __gnu_cxx::__normal_iterator<NRAttribute**, std::vector<NRAttribute*, std::allocator<NRAttribute*> > >, __gnu_cxx::__normal_iterator<NRAttribute**, std::vector<NRAttribute*, std::allocator<NRAttribute*> > >*)'
mannasim/diffusion/accessPointDiffApp.o:(.rodata._ZTI18AccessPointDiffApp[typeinfo for AccessPointDiffApp]+0x18): undefined reference to `typeinfo for DiffApp'
collect2: ld returned 1 exit status
make: *** [ns] Error 1
Ns make failed!
 
Old 10-05-2013, 05:27 PM   #22
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,299

Rep: Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168
# 21 .
Quote:
accessPointDiffApp.cc
OK, that's "mannasim".

I will check if mannasim can be built on a 64bits OS.
See post #15 : ".. some patches will work on 64bits."

-
 
Old 10-05-2013, 05:38 PM   #23
najma
LQ Newbie
 
Registered: Jun 2011
Posts: 22

Original Poster
Rep: Reputation: Disabled
Post # 22
I was running ns2 with mannasim perfectly on this machine for the last 1 year, and it was running a week ago. I made few changes in battery.cc and battery.h file run make and it compiled perfectly then I commented the changes I did and again run make I started encountering error, so that much I can tell you that mannasim works perfectly on 64-bit OS.
Regards,
Najma
 
Old 10-06-2013, 12:55 PM   #24
najma
LQ Newbie
 
Registered: Jun 2011
Posts: 22

Original Poster
Rep: Reputation: Disabled
Post # 23
hi,
do you think i need to install ns-2.29 mannasim from the scratch or it can be corrected.i really don't understand what happened with ns2 installation as i was running simulations on it from last one year and never experienced this.
please guide.
regards,
najma
 
Old 10-06-2013, 02:18 PM   #25
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,299

Rep: Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168
# 23, # 24.

First : You can have as may ns-allinone.2.29 as you want,
installed at the same time.

Suggest : Leave what you have, as it is, and experiment
with some new 'ns-allinone.2.29's in new directories.

About errors :
Things change, a minor update of a system package
can cause a certain compiler not to work with mannasim.
Nothing in your above posts indicates that you remember
what you did a year ago. ( Notes ? Backups ? ).
May be you have used g++-3.4 to compile the old old mannasim ?

-
 
Old 10-06-2013, 02:51 PM   #26
najma
LQ Newbie
 
Registered: Jun 2011
Posts: 22

Original Poster
Rep: Reputation: Disabled
Post #25
ok i m going to install ns-2.29 in another directory and will definitely let you know the result.
what i remember is that i had installed gcc 4.3 compiler to work with mannasim and is still have it in the backup. i've the complete backup folder of ns-2.29 mannasim. so please suggest should i use the backup ns-2.29 mannasim or should i installed it from the scratch. and also guide that in ~/.bashrc, do i need to change ns2 paths to the new one?
regards,
najma
 
Old 10-06-2013, 05:15 PM   #27
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,299

Rep: Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168Reputation: 3168
# 26 .
Quote:
and also guide that in ~/.bashrc
No entries are required to .bashrc .
That's just a 15 year old text from the days when students
used the University computer and had no access to a system PATH.
Your own computer : $ sudo cp ns /usr/local/bin/
( Or use 'sudo make install' which does the same.)
When you have more than one ns : Use different names.
Example : ns, ns-mannasim, ns229-mannasim, ns234-mannasim, etc.
Using : $ ns229-mannasim mannasim-rede-plana.tcl


Testing Ubuntu 10.04.3 - x86_64 with mannasim.
$ cd ns-allinone-2.29/ (It's ns-allinone-2.29.3 ).
$ patch -p1 < mannasim-patch.diff
$ export CC=gcc-4.1 CXX=g++-4.1 && ./install : No errors.
After an upgrade to "10.04.4" : Same result. No errors.

P.S. There are patches for ns-2.34, ns-2.35 too :
ns2.34-mannasim-gcc4.3.patch, ns2.35-mannasim.patch
http://www.linuxquestions.org/questi...77#post4970177

-

Last edited by knudfl; 10-06-2013 at 05:22 PM.
 
Old 10-09-2013, 08:33 AM   #28
najma
LQ Newbie
 
Registered: Jun 2011
Posts: 22

Original Poster
Rep: Reputation: Disabled
Post#27
thanks for all the help, i have successfully re-installed ns-2 on my system.
regards,
najma
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Make file error code 1 make: *** [AIQ7] Error 1 raju39k Linux - Newbie 2 04-09-2012 01:22 PM
RH9 make menuconfig error: make[1]: *** [lxdialog] Error 1 rrochele Linux - Kernel 3 02-07-2007 03:39 PM


All times are GMT -5. The time now is 10:08 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration