I tried to install NS2.35 in my newly installed ubuntu(I am new to it).
I have got following error:
In file included from /home/user/Desktop/ns-allinone-2.35/tk8.5.10/unix/../generic/tkInt.h:19:0,
from /home/user/Desktop/ns-allinone-2.35/tk8.5.10/unix/../generic/tk3d.c:14:
/home/user/Desktop/ns-allinone-2.35/tk8.5.10/unix/../generic/tk.h:76:23: fatal error: X11/Xlib.h: No such file or directory
compilation terminated.
make: *** [tk3d.o] Error 1
tk8.5.10 make failed! Exiting ...
For problems with Tcl/Tk see http://www.scriptics.com
so I tried to solve the problem following suggestions in internet like:
try4solution1 following
this suggestion to check ownership
user@ubuntu:~/Desktop/ns-allinone-2.35$ namei -l ~/Desktop/ns-allinone-2.35/lib
f: /home/user/Desktop/ns-allinone-2.35/lib
drwxr-xr-x root root /
drwxr-xr-x root root home
drwxr-xr-x user user user
drwxr-xr-x user user Desktop
drwxr-xr-x user user ns-allinone-2.35
drwxr-xr-x user user lib
After that I did this following suggestions given
here
sudo apt-get install \
g++ autoconf automake libtool libxmu-dev patch xgraph
The output is :
Note, selecting 'rsyslog' instead of 'linux-kernel-log-daemon'
Note, selecting 'pulseaudio' instead of 'pulseaudio-module-rygel-media-server'
Note, selecting 'linux-image-3.5.0-17-generic' instead of 'linux-image'
Note, selecting 'linux-image-3.5.0-17-generic' instead of 'linux-image-3.0'
Note, selecting 'libgphoto2-port0' instead of 'libgphoto2port'
Package autoconf is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
Package libtool is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'autoconf' has no installation candidate
E: Unable to locate package automake
E: Package 'libtool' has no installation candidate
E: Unable to locate package libxmu-dev
So I did this:
sudo apt-get update && sudo apt-get install g++ autoconf automake libtool libxmu-dev patch xgraph
The output became this:
Ign http://us.archive.ubuntu.com quantal InRelease
Ign http://security.ubuntu.com quantal-security InRelease
Ign http://us.archive.ubuntu.com quantal-updates InRelease
Ign http://security.ubuntu.com quantal-security Release.gpg
Ign http://us.archive.ubuntu.com quantal Release.gpg
Ign http://security.ubuntu.com quantal-security Release
Ign http://us.archive.ubuntu.com quantal-updates Release.gpg
Ign http://us.archive.ubuntu.com quantal Release
Ign http://us.archive.ubuntu.com quantal-updates Release
Err http://security.ubuntu.com quantal-security/main amd64 Packages
404 Not Found [IP: 91.189.91.15 80]
Err http://security.ubuntu.com quantal-security/restricted amd64 Packages
404 Not Found [IP: 91.189.91.15 80]
Err http://security.ubuntu.com quantal-security/universe amd64 Packages
404 Not Found [IP: 91.189.91.15 80]
Err http://security.ubuntu.com quantal-security/multiverse amd64 Packages
404 Not Found [IP: 91.189.91.15 80]
Ign http://security.ubuntu.com quantal-security/main Translation-en_US
Ign http://security.ubuntu.com quantal-security/main Translation-en
Ign http://security.ubuntu.com quantal-security/multiverse Translation-en_US
Ign http://security.ubuntu.com quantal-security/multiverse Translation-en
Ign http://security.ubuntu.com quantal-security/restricted Translation-en_US
Ign http://security.ubuntu.com quantal-security/restricted Translation-en
Ign http://security.ubuntu.com quantal-security/universe Translation-en_US
Ign http://security.ubuntu.com quantal-security/universe Translation-en
Err http://us.archive.ubuntu.com quantal/main amd64 Packages
404 Not Found [IP: 91.189.91.14 80]
Err http://us.archive.ubuntu.com quantal/restricted amd64 Packages
404 Not Found [IP: 91.189.91.14 80]
Err http://us.archive.ubuntu.com quantal/universe amd64 Packages
404 Not Found [IP: 91.189.91.14 80]
Err http://us.archive.ubuntu.com quantal/multiverse amd64 Packages
404 Not Found [IP: 91.189.91.14 80]
Ign http://us.archive.ubuntu.com quantal/main Translation-en_US
Ign http://us.archive.ubuntu.com quantal/main Translation-en
Ign http://us.archive.ubuntu.com quantal/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com quantal/multiverse Translation-en
Ign http://us.archive.ubuntu.com quantal/restricted Translation-en_US
Ign http://us.archive.ubuntu.com quantal/restricted Translation-en
Ign http://us.archive.ubuntu.com quantal/universe Translation-en_US
Ign http://us.archive.ubuntu.com quantal/universe Translation-en
Err http://us.archive.ubuntu.com quantal-updates/main amd64 Packages
404 Not Found [IP: 91.189.91.14 80]
Err http://us.archive.ubuntu.com quantal-updates/restricted amd64 Packages
404 Not Found [IP: 91.189.91.14 80]
Err http://us.archive.ubuntu.com quantal-updates/universe amd64 Packages
404 Not Found [IP: 91.189.91.14 80]
Err http://us.archive.ubuntu.com quantal-updates/multiverse amd64 Packages
404 Not Found [IP: 91.189.91.14 80]
Ign http://us.archive.ubuntu.com quantal-updates/main Translation-en_US
Ign http://us.archive.ubuntu.com quantal-updates/main Translation-en
Ign http://us.archive.ubuntu.com quantal-updates/multiverse Translation-en_US
Ign http://us.archive.ubuntu.com quantal-updates/multiverse Translation-en
Ign http://us.archive.ubuntu.com quantal-updates/restricted Translation-en_US
Ign http://us.archive.ubuntu.com quantal-updates/restricted Translation-en
Ign http://us.archive.ubuntu.com quantal-updates/universe Translation-en_US
Ign http://us.archive.ubuntu.com quantal-updates/universe Translation-en
W: Failed to fetch http://security.ubuntu.com/ubuntu/di...amd64/Packages 404 Not Found [IP: 91.189.91.15 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/di...amd64/Packages 404 Not Found [IP: 91.189.91.15 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/di...amd64/Packages 404 Not Found [IP: 91.189.91.15 80]
W: Failed to fetch http://security.ubuntu.com/ubuntu/di...amd64/Packages 404 Not Found [IP: 91.189.91.15 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/...amd64/Packages 404 Not Found [IP: 91.189.91.14 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/...amd64/Packages 404 Not Found [IP: 91.189.91.14 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/...amd64/Packages 404 Not Found [IP: 91.189.91.14 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/...amd64/Packages 404 Not Found [IP: 91.189.91.14 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/...amd64/Packages 404 Not Found [IP: 91.189.91.14 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/...amd64/Packages 404 Not Found [IP: 91.189.91.14 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/...amd64/Packages 404 Not Found [IP: 91.189.91.14 80]
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/...amd64/Packages 404 Not Found [IP: 91.189.91.14 80]
E: Some index files failed to download. They have been ignored, or old ones used instead.
Now, I tried to find in case the problem is with the server.I tried to update the server link from ubuntu software centre, by
1. Download from "Other"
2.Clicking other opened a menu on the left side of the box there are options on choice of country for the download server. I choose Serve for US and the "select best server" option on the right-side of the same box.
3.The system tried to modified accordingly by searching for server. Anotehr dialog box appeared saying "Testing for Download Server. to find best suitable mirror location" and at last gave error massage "No suitable download server was found. Check your internet connection"
My internet connection is fine. I have also tried this:
sudo gedit /etc/resolv.conf
and added
nameserver 8.8.8.8 in the file.
Nothing happened. Same error.
I earnestly request for help as I am new to linux and working under strict deadline for project submission.