LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 05-01-2012, 07:58 AM   #16
priya86mohanty
Member
 
Registered: Apr 2012
Posts: 33

Rep: Reputation: Disabled

This is what I got when I got when followed the your steps:

xyz@xyz-Presario-V3000-GN367PA-ACJ:~$ patch -p0 < ns228-gcc40.patch.txt
patching file ns-allinone-2.28/nam-1.11/agent.h
patching file ns-allinone-2.28/ns-2.28/diffusion3/filter_core/filter_core.hh
patching file ns-allinone-2.28/ns-2.28/diffusion3/lib/nr/nr.hh
patching file ns-allinone-2.28/ns-2.28/queue/cbq.cc
patching file ns-allinone-2.28/ns-2.28/tora/tora_neighbor.h
patching file ns-allinone-2.28/ns-2.28/xcp/xcpq.cc
patching file ns-allinone-2.28/ns-2.28/xcp/xcpq.h
xyz@xyz-Presario-V3000-GN367PA-ACJ:~$ patch -p0 < ns-2.28-gcc410.patch.txt
patching file ns-allinone-2.28/nam-1.11/agent.h
Reversed (or previously applied) patch detected! Assume -R? [n]
Apply anyway? [n]
Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file ns-allinone-2.28/nam-1.11/agent.h.rej
patching file ns-allinone-2.28/nam-1.11/netgraph.h
patching file ns-allinone-2.28/nam-1.11/node.h
patching file ns-allinone-2.28/nam-1.11/parser.h
patching file ns-allinone-2.28/ns-2.28/diffusion/diffusion.cc
patching file ns-allinone-2.28/ns-2.28/diffusion/omni_mcast.cc
patching file ns-allinone-2.28/ns-2.28/diffusion3/filter_core/filter_core.hh
Hunk #3 FAILED at 99.
1 out of 3 hunks FAILED -- saving rejects to file ns-allinone-2.28/ns-2.28/diffusion3/filter_core/filter_core.hh.rej
patching file ns-allinone-2.28/ns-2.28/dsr/dsragent.cc
patching file ns-allinone-2.28/ns-2.28/indep-utils/cmu-scen-gen/setdest/setdest.h
patching file ns-allinone-2.28/ns-2.28/mobile/god.h
patching file ns-allinone-2.28/ns-2.28/pgm/pgm-agent.cc
patching file ns-allinone-2.28/ns-2.28/pgm/pgm-receiver.cc
patching file ns-allinone-2.28/ns-2.28/pgm/pgm-sender.cc
patching file ns-allinone-2.28/ns-2.28/queue/cbq.cc
Hunk #2 succeeded at 90 with fuzz 2 (offset 3 lines).
patching file ns-allinone-2.28/ns-2.28/sctp/sctp.h
patching file ns-allinone-2.28/ns-2.28/tcp/tcp-sack-rh.cc
patching file ns-allinone-2.28/ns-2.28/tora/tora.cc
patching file ns-allinone-2.28/ns-2.28/tora/tora_neighbor.h
patching file ns-allinone-2.28/otcl-1.9/configure
patching file ns-allinone-2.28/tcl8.4.5/unix/configure
patching file ns-allinone-2.28/tcl8.4.5/unix/tcl.m4
patching file ns-allinone-2.28/tk8.4.5/unix/configure
patching file ns-allinone-2.28/tk8.4.5/unix/tcl.m4
xyz@xyz-Presario-V3000-GN367PA-ACJ:~$ export CC=gcc41 CXX=g++41

did ./install and in BUild tcl8.4.5 go the below error:

* Build tcl8.4.5
============================================================
creating cache ./config.cache
checking whether to use symlinks for manpages... no
checking compression for manpages... no
checking for gcc... gcc41
checking whether the C compiler (gcc41 ) works... yes
checking whether the C compiler (gcc41 ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc41 accepts -g... yes
checking how to run the C preprocessor... gcc41 -E
checking for unistd.h... yes
checking for limits.h... yes
checking for building with threads... no (default)
checking if the compiler understands -pipe... yes
checking for required early compiler flags... _LARGEFILE64_SOURCE
checking for 64-bit integer type... long long
checking for struct dirent64... no
checking for struct stat64... yes
checking for off64_t... yes
checking whether byte ordering is bigendian... no
checking for getcwd... yes
checking for opendir... yes
checking for strstr... yes
checking for strtol... yes
checking for strtoll... yes
checking for strtoull... yes
checking for tmpnam... yes
checking for waitpid... yes
checking for strerror... yes
checking for getwd... yes
checking for wait3... yes
checking for uname... yes
checking for realpath... yes
checking dirent.h... yes
checking for errno.h... no
checking for float.h... yes
checking for values.h... yes
checking for limits.h... (cached) yes
checking for stdlib.h... yes
checking for string.h... yes
checking for sys/wait.h... yes
checking for dlfcn.h... yes
checking for unistd.h... (cached) yes
checking for sys/param.h... no
checking for sys/modem.h... no
checking termios vs. termio vs. sgtty... termios
checking for fd_set in sys/types... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for sys/time.h... yes
checking whether time.h and sys/time.h may both be included... yes
checking for tm_zone in struct tm... yes
checking for gmtime_r... yes
checking for localtime_r... yes
checking tm_tzadj in struct tm... no
checking tm_gmtoff in struct tm... yes
checking long timezone variable... yes
checking for st_blksize in struct stat... yes
checking for fstatfs... yes
checking for 8-bit clean memcmp... yes
checking for memmove... yes
checking proper strstr implementation... yes
checking for strtoul... yes
checking for strtod... yes
checking for strtod... (cached) yes
checking for Solaris2.4/Tru64 strtod bugs... ok
checking for ANSI C header files... yes
checking for mode_t... yes
checking for pid_t... yes
checking for size_t... yes
checking for uid_t in sys/types.h... yes
checking for socklen_t... yes
checking for opendir... (cached) yes
checking union wait... yes
checking for strncasecmp... yes
checking for BSDgettimeofday... no
checking for gettimeofday... yes
checking for gettimeofday declaration... present
checking whether char is unsigned... no
checking signed char declarations... yes
checking for a putenv() that copies the buffer... no
checking for langinfo.h... yes
checking whether to use nl_langinfo... yes
checking for sin... no
checking for main in -lieee... yes
checking for main in -linet... no
checking for net/errno.h... no
checking for connect... yes
checking for gethostbyname... yes
checking how to build libraries... static
checking for ranlib... ranlib
checking if 64bit support is requested... no
checking if 64bit Sparc VIS support is requested... no
checking system version (for dynamic loading)... Linux-2.6.38-8-generic
checking for dlopen in -ldl... yes
checking for ar... ar
checking for build with symbols... no
checking for sys/ioctl.h... no
checking for sys/filio.h... no
checking FIONBIO vs. O_NONBLOCK for nonblocking I/O... O_NONBLOCK
checking how to package libraries... standard shared library
updating cache ./config.cache
creating ./config.status
creating Makefile
creating dltest/Makefile
creating tclConfig.sh
gcc41 -pipe -c -O -D__NO_STRING_INLINES -D__NO_MATH_INLINES -DTCL_DBGX= -Wall -Wconversion -Wno-implicit-int -fPIC -I./../generic -I. -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -D_LARGEFILE64_SOURCE=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_STRUCT_STAT64=1 -DHAVE_TYPE_OFF64_T=1 -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOLL=1 -DHAVE_STRTOULL=1 -DHAVE_TMPNAM=1 -DHAVE_WAITPID=1 -DNO_ERRNO_H=1 -DHAVE_UNISTD_H=1 -DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_TM_ZONE=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_ST_BLKSIZE=1 -DSTDC_HEADERS=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_LANGINFO=1 -DSTATIC_BUILD=1 -DPEEK_XCLOSEIM=1 -DTCL_SHLIB_EXT=\".so\" ./../generic/regcomp.c
gcc41 -pipe -c -O -D__NO_STRING_INLINES -D__NO_MATH_INLINES -DTCL_DBGX= -Wall -Wconversion -Wno-implicit-int -fPIC -I./../generic -I. -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -D_LARGEFILE64_SOURCE=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_STRUCT_STAT64=1 -DHAVE_TYPE_OFF64_T=1 -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOLL=1 -DHAVE_STRTOULL=1 -DHAVE_TMPNAM=1 -DHAVE_WAITPID=1 -DNO_ERRNO_H=1 -DHAVE_UNISTD_H=1 -DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_TM_ZONE=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_ST_BLKSIZE=1 -DSTDC_HEADERS=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_LANGINFO=1 -DSTATIC_BUILD=1 -DPEEK_XCLOSEIM=1 -DTCL_SHLIB_EXT=\".so\" ./../generic/regexec.c
./../generic/rege_dfa.c: In function ‘getvacant’:
./../generic/rege_dfa.c:564: warning: ‘lastap.ss’ may be used uninitialized in this function
./../generic/rege_dfa.c:564: warning: ‘lastap.co’ may be used uninitialized in this function
./../generic/regexec.c: In function ‘TclReExec’:
./../generic/regexec.c:352: warning: ‘cold’ may be used uninitialized in this function
gcc41 -pipe -c -O -D__NO_STRING_INLINES -D__NO_MATH_INLINES -DTCL_DBGX= -Wall -Wconversion -Wno-implicit-int -fPIC -I./../generic -I. -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -D_LARGEFILE64_SOURCE=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_STRUCT_STAT64=1 -DHAVE_TYPE_OFF64_T=1 -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOLL=1 -DHAVE_STRTOULL=1 -DHAVE_TMPNAM=1 -DHAVE_WAITPID=1 -DNO_ERRNO_H=1 -DHAVE_UNISTD_H=1 -DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_TM_ZONE=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_ST_BLKSIZE=1 -DSTDC_HEADERS=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_LANGINFO=1 -DSTATIC_BUILD=1 -DPEEK_XCLOSEIM=1 -DTCL_SHLIB_EXT=\".so\" ./../generic/regfree.c
gcc41 -pipe -c -O -D__NO_STRING_INLINES -D__NO_MATH_INLINES -DTCL_DBGX= -Wall -Wconversion -Wno-implicit-int -fPIC -I./../generic -I. -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -D_LARGEFILE64_SOURCE=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_STRUCT_STAT64=1 -DHAVE_TYPE_OFF64_T=1 -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOLL=1 -DHAVE_STRTOULL=1 -DHAVE_TMPNAM=1 -DHAVE_WAITPID=1 -DNO_ERRNO_H=1 -DHAVE_UNISTD_H=1 -DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_TM_ZONE=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_ST_BLKSIZE=1 -DSTDC_HEADERS=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_LANGINFO=1 -DSTATIC_BUILD=1 -DPEEK_XCLOSEIM=1 -DTCL_SHLIB_EXT=\".so\" ./../generic/regerror.c
gcc41 -pipe -c -O -D__NO_STRING_INLINES -D__NO_MATH_INLINES -DTCL_DBGX= -Wall -Wconversion -Wno-implicit-int -fPIC -I./../generic -I. -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -D_LARGEFILE64_SOURCE=1 -DTCL_WIDE_INT_TYPE=long\ long -DHAVE_STRUCT_STAT64=1 -DHAVE_TYPE_OFF64_T=1 -DHAVE_GETCWD=1 -DHAVE_OPENDIR=1 -DHAVE_STRSTR=1 -DHAVE_STRTOL=1 -DHAVE_STRTOLL=1 -DHAVE_STRTOULL=1 -DHAVE_TMPNAM=1 -DHAVE_WAITPID=1 -DNO_ERRNO_H=1 -DHAVE_UNISTD_H=1 -DUSE_TERMIOS=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_TM_ZONE=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_ST_BLKSIZE=1 -DSTDC_HEADERS=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_LANGINFO=1 -DSTATIC_BUILD=1 -DPEEK_XCLOSEIM=1 -DTCL_SHLIB_EXT=\".so\" -DUSE_TCLALLOC=0 ./../generic/tclAlloc.c
In file included from /usr/include/bits/errno.h:25,
from /usr/include/errno.h:36,
from ./../generic/../unix/tclUnixPort.h:39,
from ./../generic/tclPort.h:27,
from ./../generic/tclAlloc.c:29:
/usr/include/linux/errno.h:4:23: error: asm/errno.h: No such file or directory
In file included from /usr/include/sys/socket.h:40,
from ./../generic/../unix/tclUnixPort.h:139,
from ./../generic/tclPort.h:27,
from ./../generic/tclAlloc.c:29:
/usr/include/bits/socket.h:381:24: error: asm/socket.h: No such file or directory
make: *** [tclAlloc.o] Error 1
tcl8.4.5 make failed! Exiting ...
For problems with Tcl/Tk see http://www.scriptics.com

xyz@xyz-Presario-V3000-GN367PA-ACJ:~/ns-allinone-2.28$

Last edited by priya86mohanty; 05-01-2012 at 10:04 AM.
 
Old 05-01-2012, 09:55 AM   #17
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,938

Rep: Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601
# 16.

Quote:
/usr/include/bits/socket.h:381:24: error: asm/socket.h: No such file or directory
sudo apt-get install linux-libc-dev

The package 'linux-libc-dev' should already be installed,
if all ns2 prerequisites were installed correctly :
sudo apt-get install g++ autoconf automake libtool libxmu-dev


Please do not try running 'validate' until 'ns' is created :
You can edit post #16 and delete the validate stuff.

And please do not quote entire posts. Quote is for a short text.
Please delete.

.
 
1 members found this post helpful.
Old 05-01-2012, 10:45 AM   #18
priya86mohanty
Member
 
Registered: Apr 2012
Posts: 33

Rep: Reputation: Disabled
sudo apt-get install g++ autoconf automake libtool libxmu-dev
has to be done after installing appropriate gcc and before exporting gcc, is it?

Last edited by priya86mohanty; 05-01-2012 at 10:46 AM.
 
Old 05-01-2012, 01:24 PM   #19
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,938

Rep: Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601
# 18
Quote:
sudo apt-get install g++ autoconf automake libtool libxmu-dev
The prerequisites for ns2 must always be installed
before you start building any ns-allinone-2.xx.


And : You can have as many versions of gcc/g++ as you want,
installed at the same time.

.

Last edited by knudfl; 05-01-2012 at 01:25 PM.
 
1 members found this post helpful.
Old 05-02-2012, 07:54 AM   #20
priya86mohanty
Member
 
Registered: Apr 2012
Posts: 33

Rep: Reputation: Disabled
otcl-1.9 make failed! Exiting ...

I typed - sudo apt-get install g++ autoconf automake libtool libxmu-dev

and then 1) cd ns-allinone-2.28 2) ./install

Got the error under Build OTcl-1.9
============================================================
* Build OTcl-1.9
============================================================
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... gcc
checking for C compiler default output... 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 accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C preprocessor... gcc -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 that g++ can handle -O2... no
checking standard STL is available... no
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.5... 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 X11 header files
checking for X11 library archive
checking for XOpenDisplay in -lX11... yes
checking for XShmAttach in -lXext... yes
checking for ranlib... ranlib
checking for a BSD-compatible install... /usr/bin/install -c
checking system version (for dynamic loading)... Linux-2.6.38-8-generic
No explicit static compilation flag; setting V_STATIC to ""
checking for dlopen in -ldl... yes
checking for a BSD-compatible install... /usr/bin/install -c
configure: creating ./config.status
config.status: creating Makefile
rm -f libotcl.a otcl.o
gcc -c -g -O2 -DNDEBUG -DUSE_SHM -I. -I/home/xyz/ns-allinone-2.28/include -I/home/xyz/ns-allinone-2.28/include -I/include otcl.c
ar cq libotcl.a otcl.o
ranlib libotcl.a
rm -f libotcl.so otcl.o so_locations
gcc -c -g -O2 -DNDEBUG -DUSE_SHM -fpic -I. -I/home/xyz/ns-allinone-2.28/include -I/home/xyz/ns-allinone-2.28/include -I/include otcl.c
ld -shared -o libotcl.so otcl.o
otcl.o: In function `OTclDispatch':
/home/xyz/ns-allinone-2.28/otcl-1.9/otcl.c:495: undefined reference to `__stack_chk_fail_local'
otcl.o: In function `Otcl_Init':
/home/xyz/ns-allinone-2.28/otcl-1.9/otcl.c:2283: undefined reference to `__stack_chk_fail_local'
ld: libotcl.so: hidden symbol `__stack_chk_fail_local' isn't defined
ld: final link failed: Bad value
make: *** [libotcl.so] Error 1
otcl-1.9 make failed! Exiting ...

See http://www.isi.edu/nsnam/ns/ns-problems.html for problems

Last edited by priya86mohanty; 05-02-2012 at 07:56 AM.
 
Old 05-02-2012, 08:15 AM   #21
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,938

Rep: Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601
# 20.
Quote:
I typed .....

.. and then 1) cd ns-allinone-2.28 2) ./install
If you already did the patching, it is : ( see post # 15 )
1) cd ns-allinone-2.28/
2) export CC=gcc41 CXX=g++41
3) ./install

.
 
1 members found this post helpful.
Old 05-02-2012, 09:23 AM   #22
priya86mohanty
Member
 
Registered: Apr 2012
Posts: 33

Rep: Reputation: Disabled
# 21

I am getting the below error again:
============================================================
* Build tcl8.4.5
============================================================
creating cache ./config.cache
checking whether to use symlinks for manpages... no
checking compression for manpages... no
checking for gcc... gcc41
..
.
.
.
/usr/include/bits/socket.h:381:24: error: asm/socket.h: No such file or directory
make: *** [tclAlloc.o] Error 1
tcl8.4.5 make failed! Exiting ...

Should I try- sudo apt-get install tk8.4 tcl8.4 ?
 
Old 05-03-2012, 04:45 AM   #23
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,938

Rep: Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601
#22
Quote:
asm/socket.h: No such file or directory
I made another install of Ubuntu 11.04 : The asm link is missing now.

Solution : 1) cd /usr/include/
2) sudo ln -s i386-linux-gnu/asm/
.... Then a new ns-allinone-2.28 builds OK.



Quote:
Should I try- sudo apt-get install tk8.4 tcl8.4 ?
No.

.
 
1 members found this post helpful.
Old 05-03-2012, 06:02 AM   #24
priya86mohanty
Member
 
Registered: Apr 2012
Posts: 33

Rep: Reputation: Disabled
# 23

I have been installing ns-allinone-2.28 too many number of times (atleast 6-7 times) in my system. Is it because of that I am getting so many errors while building ns? Well am very much new to using linux platform. Finding it difficult to understand the issue that am facing!!!

Last edited by priya86mohanty; 05-03-2012 at 06:04 AM.
 
Old 05-03-2012, 07:43 AM   #25
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,938

Rep: Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601
#24.

Quote:
Finding it difficult to understand the issue that am facing
Which issues ?

So far all the errors have been easy to deal with. Nothing unusual, I think.
 
Old 05-04-2012, 11:49 AM   #26
priya86mohanty
Member
 
Registered: Apr 2012
Posts: 33

Rep: Reputation: Disabled
# 26

Hey Great!!!! It worked After installation I 'ns' was created. Thanks a lot.

Now I got the below lines, just direct me as to how to do the ones highlighted in Red?

Nam has been installed successfully.
Please compile your xgraph separately.
Please compile your gt-itm & sgb2ns separately.

Ns-allinone package has been installed successfully.
Here are the installation places:
tcl8.4.5: /home/xyz/ns-allinone-2.28/{bin,include,lib}
tk8.4.5: /home/xyz/ns-allinone-2.28/{bin,include,lib}
otcl: /home/xyz/ns-allinone-2.28/otcl-1.9
tclcl: /home/xyz/ns-allinone-2.28/tclcl-1.16
ns: /home/xyz/ns-allinone-2.28/ns-2.28/ns
nam: /home/xyz/ns-allinone-2.28/nam-1.11/nam

----------------------------------------------------------------------------------
How exactly do I do the below stuffs? Can you explain it to me step wise please?

Please put /home/xyz/ns-allinone-2.28/bin:/home/xyz/ns-allinone-2.28/tcl8.4.5/unix:/home/xyz/ns-allinone-2.28/tk8.4.5/unix
into your PATH environment; so that you'll be able to run itm/tclsh/wish/xgraph.
-

IMPORTANT NOTICES:

(1) You MUST put /home/xyz/ns-allinone-2.28/otcl-1.9, /home/xyz/ns-allinone-2.28/lib,
into your LD_LIBRARY_PATH environment variable.
If it complains about X libraries, add path to your X libraries
into LD_LIBRARY_PATH.
If you are using csh, you can set it like:
setenv LD_LIBRARY_PATH <paths>
If you are using sh, you can set it like:
export LD_LIBRARY_PATH=<paths>

(2) You MUST put /home/xyz/ns-allinone-2.28/tcl8.4.5/library into your TCL_LIBRARY environmental
variable. Otherwise ns/nam will complain during startup.

(3) [OPTIONAL] To save disk space, you can now delete directories tcl8.4.5
and tk8.4.5. They are now installed under /home/xyz/ns-allinone-2.28/{bin,include,lib}


After these steps, you can now run the ns validation suite with
cd ns-2.28; ./validate

For trouble shooting, please first read ns problems page
http://www.isi.edu/nsnam/ns/ns-problems.html. Also search the ns mailing list archive
for related posts.
 
Old 05-04-2012, 12:14 PM   #27
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,938

Rep: Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601
# 26.

Xgraph http://www.linuxquestions.org/questi...34-a-862233/#2
> post #2.

All the stuff about *PATH etc. : I wouldn't do anything.
The binary 'ns' is hard coded to know where its libraries are located.
And should be installed this way : 1) cd ns-allinone-2.28/ns-2.28/
2) su
3) make install

Nam : Use a binary 'nam', post #4 here
http://www.linuxquestions.org/questi...04-a-842109/#4

.
 
Old 05-04-2012, 12:39 PM   #28
priya86mohanty
Member
 
Registered: Apr 2012
Posts: 33

Rep: Reputation: Disabled
I get the below message while entering the password after typing su:

xyz@xyz-Presario-V3000-GN367PA-ACJ:~/ns-allinone-2.28/ns-2.28$ su
Password:
su: Authentication failure

Which password am I supposed to enter? I tried using the password which I use for logging into Ubuntu!!!

Quote:
Originally Posted by knudfl View Post
# 26.

The binary 'ns' is hard coded to know where its libraries are located.
And should be installed this way : 1) cd ns-allinone-2.28/ns-2.28/
2) su


.
 
Old 05-04-2012, 01:52 PM   #29
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,938

Rep: Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601
# 28. Sorry. The Ubuntu install command is :

sudo make install
 
1 members found this post helpful.
Old 05-04-2012, 05:58 PM   #30
priya86mohanty
Member
 
Registered: Apr 2012
Posts: 33

Rep: Reputation: Disabled
# 27

Is the xgraph installation, whatever you have specified, same in ubuntu also?

Quote:
Originally Posted by knudfl View Post
 
  


Reply

Tags
ns228, ns228#15, ns228-patch


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
problem installing ubuntu 8.10 warun Ubuntu 2 05-27-2009 12:41 AM
Problem Installing Ubuntu 8.10 edgartech Ubuntu 2 11-05-2008 01:28 AM
Problem installing Ubuntu 8 Juvencio Linux - Newbie 5 07-05-2008 01:30 AM
problem with installing ubuntu 7.04... opmeena Linux - Newbie 4 01-12-2008 09:48 AM
Installing Ubuntu Problem LinuxNewbie092 Ubuntu 5 03-29-2007 04:09 PM


All times are GMT -5. The time now is 09:01 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration