More and more about NS-2

Installing INET Framework into OMNET++

Download: Inet Framework
Download: Inetmanet Framework

To install:
You should have a working OMNeT++ installation, version 4.0 or later.
It must be compiled with dynamic NED loading enabled (WITH_NETBUILDER=yes setting).

1. Make sure your OMNeT++ installation works OK (e.g. try running the samples)
and it is in the path (to test, try the command "which nedtool").

2. Change to the INET directory.

3. Type "make" to build the inet executable (debug version). Use "make MODE=release" to build release version.

Problem:
-lpcap is not found

Solution:
yum install libpcap-devel

Problem:
make: warning: Clock skew detected. Your build may be incomplete.

Solution:

   cd directory
# Remove output files
make clean
# Put timestamps on all files equal to current time
find . -exec touch {} \;
# Rebuild all output files
make

Finally, try running the demo simulations. Change into examples/ and type
"./rundemo".

Problem:
Error during startup: Cannot load library '../../../src//libinet.so': ../../../src//libinet.so: cannot open shared object file: No such file or directory.

For INET:
Solution:
SELinux blocks the library from running. Free the library with the command:
chcon -t textrel_shlib_t '/home/user/inet/out/gcc-debug/src/libinet.so'

For INETMANET:
The problem occurs due to "makefile"

1. Copy everything from "Makefile_dll" and replace all of "Makefile"

2. Execute "buildMakefiles" shell file with the command: sh buildMakefiles

3. Finally, compile with the command: make

4. You probably need this as last step:
chcon -t textrel_shlib_t '/home/user/inetmanet/out/gcc-debug/src/libinet.so'

Then you should be able to run the demo in the examples;
./rundemo

4 comments:

How can i resolve the problem of inet on windows vista or xp?
thank you

Hi Elly:

Can you please help me? I'm having a problem with libINET.dll. It says "Error during startup: Cannot load library". I've tried a lot of things but nothing solved the problem. I´m running OMNeT++ in Windows XP and everything is OK until I tried to use INET Framework.

How can I follow the steps you mentioned before in Windows XP:

1. Copy everything from "Makefile_dll" and replace all of "Makefile" --> Where's Makefile_dll?
2. Execute "buildMakefiles" shell file with the command: sh buildMakefiles -->Where´s buildMakefiles?
3. Finally, compile with the command: make
4. You probably need this as last step:
chcon -t textrel_shlib_t '/home/user/inetmanet/out/gcc-debug/src/libinet.so' -->chcon? How can I change security context in Windows?

I hope you can Help me with this because I'm working in my Thesis Degree.

hi elly..

i'm zahian ismail..
recently i'm doing my master in network management at ukm.
my project is about heterogeneos network..
i saw your profile and seems like we are dealing with the same topics..

hope we can exchange our view and discuss our topics..

good to see you..

my email: zahianismail@gmail.com

Hi can you edit a post about inet hnrl and how to import or install !!!????
thnx in advance!!

By the way great work!!!

Post a Comment