Vous êtes sur la page 1sur 2

Problems in Installing NS2

Problem 1

checking for gcc... no


checking for cc... no
configure: error: no acceptable cc found in $PATH
make: *** No targets specified and no makefile found. Stop.

You don't have a compiler installed. Start by installing the development tools and try again:

Red Hat:
yum groupinstall 'Development Tools'

Debian:
apt-get install build-essential

Open Solaris:
pkg install SUNWgcc

Problem 2

hi, i've tried to install development tools


but. i got this message

Loading "installonlyn" plugin


Setting up Install Process
Setting up repositories
Could not retrieve mirrorlist
http://mirrorlist.centos.org/?release=5&arch=i386&repo=os error was
[Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>
Error: Cannot find a valid baseurl for repo: base

It is just a 'Temporary failure in name resolution'

As root, try yum clean all and then repeat the yum groupinstall 'Development Tools' command
Problem 3 (Problem 1- extended)

Performed yum groupinstall ‘Development Tools’ but get same error, then try

/root/ns-allinone-2.34/tk8.4.18/unix/../generic/tk3d.c:1400: error: ‘TkBorder’ has no member named


‘nextPtr’

/root/ns-allinone-2.34/tk8.4.18/unix/../generic/tk3d.c:1403: error: ‘TkBorder’ has no member named


‘resourceRefCount’

/root/ns-allinone-2.34/tk8.4.18/unix/../generic/tk3d.c:1405: error: ‘TkBorder’ has no member named


‘objRefCount’

make: *** [tk3d.o] Error 1

tk8.4.18 make failed! Exiting ...

For problems with Tcl/Tk see http://www.scriptics.com

yum groupinstall ‘ X Software Development’

Vous aimerez peut-être aussi