Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
My first thread here. I am currently trying to implement an ATM simulation using ns2 ( network simulator 2) using information provided in this link here
Now my problem:
I am currently using Cent OS 5.4 and I was able to successfully install ns 2.34 on the machine and run a few test FTP simulations.
The problem stems from the fact that the ns 2 installation used in the ATM simulation , in the link provided, uses ns2.1b7 or ns2.1b9.
I have tried to see if I could cheat and implement the patch for my ns2.34 installation but that failed flat out ( make failed with an incorrect parameter error)
I then tried to download the older versions of ns that were used in the ATM Simulation, ns 2.1b9 and that failed too ( otcl make failed with g++ error) which i figured failed because I am using g++ version 4.1 . ( From the docuemntation, this particular version of the software had trouble with any g++ version > 3.2)
So my question:
a) Is anyone aware of any ATM Simulation patch for the current version of ns i.e. ns 2.34?
b) Is there anyway I can confgure the patch for the ns2.1b9/7 version to work smoothly with the ns2.34 version I have installed?
c) What are the recommendations for me to install the ATM Simulation provided on the URL above.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
Welcome to LQ. .. .. ..
Installing ns-allinone-2.1b9a-gcc32(.tar.gz) to CentOS 5, 32bits
is the same as Fedora 8, mentioned here, post # 4 : http://www.linuxquestions.org/questi...-5-a-849259/#4
ns-allinone-2.1b9a-gcc32.tar.gz + ns21b9a.patch
You can have two or more versions of ns-allinone-2.x installed
in /home/<name>/<directory>/ with no problems at all.
@knudfl: I was hoping I'd meet you here. You are a legend of B. Laudrup proportions
I would like to ask a question though, do you think that the patch in the page I provided above will also work on the ns2.1b9a version ( as opposed to the ns2.1b9 used in the actual simulation)? Or do I just go safety-first and try and install ns2.1b9? My first guess is that there would be no difference but I know you have more experience across different versions of ns so I would like an expert opinion.
According to the blog that showed the instructions for the installation, we apply a patch prior to the installation. But I also need to apply a patch for the ATM Simulation. IS there any particular order in which I should apply the different patches?
Also, you mention I can have multiple ns versions on the same systems ( provided they are located at different directories) but wouldn't my installation of a separate gcc's affect this?
Thanks for all the help. I might not be able to give an update at the moment ( its 2 AM where I live) but will do so as soon as I can get some work done. Thanks a lot again.
I am still having HUGE problems trying to get the patch working.
I successfully installed the ns2.1b9a verson (using the instructions knudfl provided) but after installation I could not get the ATM Simulation patch to work with it.
I then tried to install the ns2.1b9 version but currently I have not been able to get that to install. I have been getting all sorts of errors with individual source files , which I have had to download from the CVS Repo just to get rid of the Compilation errors, but right now I am stuck with some problems in the utils.c linking process. Undefined references and all that ( If the precise error message would be of assistance I can provide that as well)
Could anyone please provide any sort of instructions for installing ns2.1b9 on CentOS 5 ( or even looking at the ATM patch to see how it can be applied to a slightly different version of ns) , I would be very grateful.
Now from my initial research I figure that this may be a compiler/library issue so I looked into the source code of the atm. source file and found the below snippet.
Code:
#ifndef __atm_h__
#define __atm_h__
#include <string>
#include "config.h"
#include "packet.h"
#include "general.h"
...
struct hdr_atm {
int gfc;
int vpi;
int vci;
int type;
bool clp;
int hec;
string *payload;
static int offset_;
inline static int &offset() { return offset_; }
inline static hdr_atm* access(Packet *p) {
return (hdr_atm*) p->access(offset_);
}
I believe I need to change the
Code:
string* payload;
or the <string> import line but I am not sure to what.
Any help on this will be appreciated.
I will try and provide a more detailed process for installing ns2.1b9 on CentOS at a later time.
If you apply the patch 'ns-2.1b9-atm.patch' later in the build sequence,
You will have to : cd ns-allinone-2.1b9a/ns-2.1b9a/ and do : make clean.
And the redo ./install.
Or you can start from scratch with a new unpacked ns-allinone-2.1b9a-gcc32.tar.gz
in a new directory.
..
Will try this and will get back to you with results.
Regarding your earlier post, the problem was that the patch was not completely applied with ns2.1b9a ( it gave me some errors while patching some files e.g packet.h which then threw errors during compilation regarding some missing variable) so I had to run back to ns2.1b9 which I have recently been able to install. Can you confirm that you were able to apply the patch using those instructions on ns 2.1b9a?
------UPDATE-------
While following your recent instructions ( the ´make clean´ and install), I am still receiving the same error.
Any more ideas? Thanks
--EDIT--
I have replaced the ´string´ in the problematic code with ´char´ and that file seem to compile OK ( with some more errors listed in a seperate file later in the build process). One of the later errors it is given me, is that the Vector was used as a type but not defined as a type. Could this be that some libraries are incompatible with the ATM Patch I have?
I have attached the problematic files , make you can look into the source and proffer any solutions.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
Quote:
What does one do when some code uses a library that is incompatible with
the currently installed GCC compiler ?
Fix the code to use the system compiler.
Or use another compiler, like gcc / g++ version 3.3.6.
You can have several compiler installed at the same time :
1) Compilers, that come with CentOS 5.5 :
The system compiler gcc / gcc-c++ : version 4.1.3
compat-gcc-34 / compat-gcc-34-c++ : version 3.4.6
gcc44 / gcc44-c++ : version 4.4.0
2) Extra compilers like gcc/gcc-c++ -3.3.6
and / or gcc/gcc-c++ -3.3.3 ( Used for ns-2.26 ).
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
The result, I got yesterday with no errors :
I do not seem to be able to reproduce it.
I patched with 'ns-2.1b9-atm.patch' using both the p1 and p0 options.
And did so outside ns-allinone-2.1b9a/ and in ns-allinone-2.1b9a/.
And also in ns-allinone-2.1b9a/ns-2.1b9a/ .
But the patch is for 2.1b9 and may not work properly in 2.1b9a.
So actually, I am not sure, that the patch was applied properly.
I am having some problems downloading the file from Google but once I do , I will test and get back to you with the results.
I really can't thank you enough.
EDIT:
Please Knudfl could you please re-upload the file to a different location because every time I try to download the file, my download does not even start and when I try to sign up to Google Docs I get re-directed to some special domain of Google( called Orange Web Trust) which I can not log into. I could provide you with FTP locations if that is more preferable. Thanks for all the help.
Last edited by kanirip; 01-19-2011 at 12:33 PM.
Reason: Request for different file download location
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.