![]() |
|
#1
|
|||
|
|||
Error installing NS2.26 on DebianHi All,
I am also trying to install NS2.26 and encountering some problems. Some Info Latest version of Debian. Used instructions from Mathew Miller http://www.matthewjmiller.net/howtos/ns-2-26-install-in-debian/ Compiling using gcc 2.95 I get an error during the compilation of NS2.26 stating checking XOpenDisplay in -lX11... (cached) no can't find X library Ns configuration failed! I have installed the below apt-get install libstdc++2.10-glibc2.2 apt-get install libx11-dev apt-get install libxt-dev Has anybody any idea what I am missing on my installation. Many thanks Colin |
|||
|
#2
|
|||
|
|||
Re: Error installing NS2.26 on DebianQuote:
I don't have Debian, but I have Ubuntu, which is based on, and closely related to, Debian. After installing Ubuntu and installing the libX11-dev and libxt-dev packages the ns installation (using the current version if ns all-in-one) went to completion with no problems. I can't believe that you would have to down-rev gcc to the old, buggy 2.95 (I have had more problems with versions of 2.95 on embedded Linux projects then with any other GNU release of anything, anywhere, any time). I mean, I believe it if someone said he/she had to do it for the older version of ns, but hope that's not really necessary. I'm guessing that it wasn't the ns base code that gave the problems but compatibility problems between older X11 libraries and newer libgc libraries. Why don't you download the latest version of the NS allinone (version 2.33 from http://www.isi.edu/nsnam/ns/ns-build.html#allinone), and then just untar it and cd into ns-allinone-2.33 and enter the following on the command line: Code:
This creates a file named install.log that will have a record of what went wrong and where. You can watch the install process "live" by opening another command window and navigating to the ns installaton directory and entering the following: Code:
Ctrl-C exits the "tail" process. If for some reason you are absolutely required to install some other version, then do the same command line stuff that I showed above. If the installation fails, then paste stuff from the install.log. Paste the lines before the first X11 warning or error messages into your post. Regards, Dave Footnote: Since I don't have access to any Debian systems (I have access to one Ubuntu 8.04 platform but most of the ones for which I have administration privileges are Centos 5.2), you will be debugging the installation, not me. It's always OK to ask about what you don't understand, but since I won't be able to reproduce your exact problems, it may take a few iterations. My point is that you should look at the messages in install.log, and try to understand and take corrective action. If you want to get help in timely fashion, It is extremely important that you post exact error/warning messages rather than paraphrasing. Just paste them into your post. First of all, try it with the default version of gcc that was installed with your system, not gcc-2.95 (Tell us what version it is by entering "gcc --version" on a command line.) |
|
#3
|
|||
|
|||
Re: Error installing NS2.26 on DebianHi,
Thanks for looking at this. Unfortuntately I need to use version 2.26 as there are a few modules that apparently only run on this version. I have also been told that I need to compile it with gcc 2.95, and have libX11-dev and xlibs-dev installed on the system The error occurs during the install of NS2.26, after the successful compilation of previous parts. No compilation of NS2.26 occurs as it is checking the environment for the correct bits ( I think!). I used Compiled with gcc 2.95.4. The other successfully compiled parts had many warnings - "negative integer implicitly converted to unsigned type" Code:
Thanks Colin |
|
#4
|
|||
|
|||
Re: Error installing NS2.26 on DebianQuote:
Quote:
Quote:
The messages were printed from ns-2.26/configure, which was run from the top-level configure program (assuming you are doing the "allinone" thing). Instead of running everything from the top level from now own, cd into the ns-2.26 directory and run Code:
If you look in the configure file in ns-2.26, you should see where it is testing for the x11 library; It is probably looking for /usr/lib/libX11.a and/or /usr/lib/libX11.so The first thing is for you to find out whether they are there: Code:
If they are there but the configure script didn't find them, then you have to figure out where it is looking. (You may have to do some detective work inside ns-2.26/configure.) If they are not there, then try the following from a command line: Code:
If it shows locations for libX11.a and/or libX11.so, and they are not in /usr/lib, then you will have to tell the configure script where to look There should be a run-time option to the configure script that lets you do that. Since I don't the exact installation that you have, there will be more detective work at this point. Let us know what you see. Regards, Dave |
|
#5
|
|||
|
|||
Re: Error installing NS2.26 on DebianHi,
Thanks for the reply. The Xlibrary files are in /usr/lib/ I can't figure out where the configure is looking from them, or how to force it to look in /usr/lib Code:
Line 3318 from configure Code:
Other surrounding code from the configure file Code:
Many thanks Colin |
|
#6
|
|||
|
|||
Re: Error installing NS2.26 on DebianHi,
I have solved this problem! And NS2.26 has installed! But now it fails on installing NAM (the visualizer). The solution was from some other instructions that I was using. Mentioning that Debian is similar to ubuntu, I checked some install instructions for ubuntu and found that "Ubuntu uses x.org and not XFree.org", so I need to create some symbolic links. Code:
This solved the problem. The problem with NAM is Code:
Do you think that this is also related to x.org being used instead of XFree.org? Many thanks Colin |
|
#7
|
|||
|
|||
Re: Error installing NS2.26 on DebianQuote:
Congratulations! Quote:
I am not at a place where I can access Ubuntu, but I know that in Centos (RedHat) distributions, there is a "libXmu" package available that creates and populates the Xmu directory and Xmu library functions. Try to find it with your apt package manager. If you havd the GUI apt package manager, just search for "Xmu". (Or go back to some Ubuntu forum and search there.) I'm thinking that you need both "libXmu" and "libXmu-devel." Now, if you already have /usr/include/X11/Xmu/WinUtil.h, then you may have to do something similar to what you learned about the ns installation (I don't understand exactly where you made links, but it's not important for me; only for you. I couldn't offer more advice on that anyhow.) Regards, Dave |
|
#8
|
|||
|
|||
Re: Error installing NS2.26 on DebianThanks Dave,
Installing this works! NS and NAM are now working like a dream. In short, for all those students show need to install NS2.26 as they have written loads of code for it, or use a module that only works with this (MNS), this will work. Install Debian 4.0r3 Carry out instructions from http://www.matthewjmiller.net/howtos/ns-2-26-install-in-debian/ In addition Create symbolic links in /usr/X11R6/lib ln -s /usr/lib/libX11.so.6.2.0 ln -s /usr/lib/libX11.so.6 ln -s /usr/lib/libX11.a ln -s /usr/lib/libX11.so in /usr/bin create a symbolic link ln -s g++-2.95 c++ Additional apt-get for NAM apt-get install libxmu-dev Many thanks for the help. Colin |
|
#9
|
|||
|
|||
Re: Error installing NS2.26 on DebianQuote:
You can be sure that people will be helped by your sharing. I'll bet that at least some of them will, in turn, go on to help others. They may even help you some day. (Me too.) And so it goes... Regards, Dave References: "What goes up must come down Spinnin' wheel got to go 'round." ---Blood, Sweat and Tears Or, for the younger crowd: "What goes around, goes around, goes around Comes all the way back around." ---Justin Timberlake Also see Karma |
Recent GIDBlog
Vista ?Widgets? on Windows XP by LocalTech
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| run script command on ns2.26 | newbie06 | Computer Software Forum - Linux | 66 | 16-Jan-2010 11:53 |
| validation test failed in ns2.26 knoppix | newbie06 | Computer Software Forum - Linux | 7 | 07-Jan-2007 20:45 |
| Cannot install on Debian | TeXJunky | FLTK Forum | 1 | 15-Nov-2005 14:17 |
| Gimp-data package update error in Debian | crystalattice | Computer Software Forum - Linux | 1 | 15-Jul-2004 19:07 |
| Trust Spyc@m 500 on Debian | Allowee | Computer Software Forum - Linux | 5 | 28-Jan-2004 12:54 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The