How to Install Omnet++ in Ubuntu 8.04

OMNeT++ is a public-source, component-based, modular and open-architecture simulation environment with strong GUI support and an embeddable simulation kernel.

I have install omnet++ in my pc and also in my laptop. Both with same version of ubuntu 8.04 but with different errors when compiling the source. Upon success, you can run the samples using ./rundemo command and below window will pop up nicely. :)

 

Omnet Demo

Here are the steps :

 

1. Download the simulator archive from omnetpp.org

2. sudo tar zxf omnetpp-3.4b2-src.tgz -C /usr/local/ ; sudo ln -s omnetpp-3.4b2 omnetpp ; cd /usr/local/omnetpp

3. sudo apt-get install bison flex blt lmodern giftrans doxygen libxml2-dev graphviz imagemagick

4. sudo apt-get install tcl8.4 tk8.4 tcl8.4-dev tk8.4-dev

5. export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/omnetpp/lib

6. export TCL_LIBRARY=/usr/share/tcltk/tcl8.4

7. export PATH=$PATH:/usr/local/omnetpp/bin

8. sudo ./configure;

9. sudo make

(Step 5,6,7 may be added into ~/.bashrc for future convenience. Remember to remove the word export!)

Following all those step should be no problem. It will be a problem once you in step 9 where compiler will be complaint about some command not found. Example :

 

 

opp_msgc -Xnc -Xns sim_std.msg

make[1]: opp_msgc: Command not found

Solution :

10. sudo -i

11. cd /usr/local/omnetpp;export PATH=$PATH:/usr/local/omnetpp/bin

12. make

 

I have successfully install omnet++ using the steps mention above but when installing it in my pc,i have error: Standard C Math Library not found when running steps 8.

Solution: sudo apt-get install build-essential

Well, that’s all. enjoy your omnet++

Credit to blog.chinaunix.net

 

 

Technorati:

 

Powered by Bleezer

 

If you're new here, you may want to subscribe to my RSS feed or get my latest post directly in your mailbox. Thanks for visiting !

Related Post:
  • Repartition and Reinstall ubuntu - Gutsy Gibbon 7.10
  • Ubuntu + Wordpress + Blogging Client
  • My ubuntu installation - from Dapper to Gutsy
  • Ubuntu Hardy Heron FREE CD arrived
  • Jom cuba ubuntu !



  • Can't find what you are looking for? Go Gooogle...
    Google

    5 Responses to “How to Install Omnet++ in Ubuntu 8.04”

    1. wanmus on May 11th, 2008 at 11:34 pm Using Mozilla Firefox Mozilla Firefox 2.0.0.4 on Windows Windows XP

      Salam boh..ape criter? maaflah..ambo nih kureng skit omputih ni..hehehe..

      Ape2pun..nice to meet you semalam..

    2. arejae on May 12th, 2008 at 12:01 am Using Mozilla Firefox Mozilla Firefox 3.0b5 on Linux Linux

      ambo pun kure gok cik wey weh english nie.bahang rambang jer..ekeke…..hopefully buleh lar improve. tapi napok pesen macey dok improve jugok.hahaha…..

      nice to meet you too deh.Insya-Allah…semoga saing-saing sahabat semua mendapat kejayaan.

    3. oryzana on July 7th, 2008 at 12:11 pm Using Internet Explorer Internet Explorer 6.0 on Windows Windows XP

      can you do the tutorial on how to install the suite for omnet IPv6SuiteWithINET-20060119 on ubuntu?

      I have the windows version without IPv6SuiteWithINET-20060119 on :

      http://omnet-installation.blogspot.com

      Tried install IPv6SuiteWithINET-20060119 on windows but failed.Maybe you can help to install it on ubuntu…

    4. Franco... on July 20th, 2008 at 9:32 pm Using Mozilla Firefox Mozilla Firefox 2.0.0.15 on Ubuntu Linux Ubuntu Linux

      Nice post. Unfortunately, Omnet team is migrating its webserver, and it is impossible to download omnet’s tar from there. Is there any possibility you send me your local copy?

      Thanks…

    5. arejae on July 22nd, 2008 at 8:12 am Using Mozilla Firefox Mozilla Firefox 3.0 on Linux Linux

      Hi Franco,thanks. hmm..I can’t find my tar source that i download previously.
      anyway,I just create it again using my current folder but i’m not sure if it is ok to use it.
      If you like, you can download it here.
      http://www.arejae.com/blog/?download=omnetpp-3.4b2

      ..and kindly let me know the result yeah.

      thanks to you too. :)

    Leave a Reply

      Enable CommentLuv which will try and parse your last blog post, please be patient while it finds it for you