LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-11-2013, 02:43 AM   #1
adilbashir09
LQ Newbie
 
Registered: Apr 2013
Posts: 8

Rep: Reputation: Disabled
omnet++ installation error in linux


Hello friends,

I have been trying to install omnet++ 4.1 on ubuntu 11.04, but while i enter the "make" command, the following errors are shown which stop the installation:

bismillah@ubuntu:~/Desktop/omnetpp-4.1$ make
make MODE=release
make[1]: Entering directory `/home/bismillah/Desktop/omnetpp-4.1'
***** Configuration: MODE=release, TOOLCHAIN_NAME=gcc, LIB_SUFFIX=.so ****
===== Checking environment =====
mkdir -p /home/bismillah/Desktop/omnetpp-4.1/bin
===== Compiling utils ====
cd /home/bismillah/Desktop/omnetpp-4.1/src/utils && make
make[2]: Entering directory `/home/bismillah/Desktop/omnetpp-4.1/src/utils'
echo "#!/bin/sh" >opp_configfilepath && echo 'echo `dirname $0`/../Makefile.inc' >>opp_configfilepath
chmod +x opp_makemake opp_test opp_makedep splitvec opp_configfilepath opp_runall omnetpp omnest
if [ "$OS" = "Windows_NT" ] ; then \
echo "@echo /home/bismillah/Desktop/omnetpp-4.1/Makefile.inc" >opp_configfilepath.cmd && \
cp opp_configfilepath.cmd /home/bismillah/Desktop/omnetpp-4.1/bin; \
cp opp_makemake.cmd /home/bismillah/Desktop/omnetpp-4.1/bin; \
cp opp_runall.cmd /home/bismillah/Desktop/omnetpp-4.1/bin; \
cp opp_test.cmd /home/bismillah/Desktop/omnetpp-4.1/bin; \
cp opp_makedep.cmd /home/bismillah/Desktop/omnetpp-4.1/bin; \
cp omnetpp.cmd /home/bismillah/Desktop/omnetpp-4.1/bin; \
cp omnest.cmd /home/bismillah/Desktop/omnetpp-4.1/bin; \
fi
cp opp_configfilepath /home/bismillah/Desktop/omnetpp-4.1/bin
cp opp_makemake /home/bismillah/Desktop/omnetpp-4.1/bin
cp opp_test /home/bismillah/Desktop/omnetpp-4.1/bin
cp opp_makedep /home/bismillah/Desktop/omnetpp-4.1/bin
cp opp_shlib_postprocess /home/bismillah/Desktop/omnetpp-4.1/bin
cp opp_runall /home/bismillah/Desktop/omnetpp-4.1/bin
cp splitvec /home/bismillah/Desktop/omnetpp-4.1/bin
cp omnetpp /home/bismillah/Desktop/omnetpp-4.1/bin
cp omnest /home/bismillah/Desktop/omnetpp-4.1/bin
cd /home/bismillah/Desktop/omnetpp-4.1/out/gcc-release/src/utils && /home/bismillah/Desktop/omnetpp-4.1/src/utils/install-prog opp_lcg32_seedtool /home/bismillah/Desktop/omnetpp-4.1/bin
/bin/sh: /home/bismillah/Desktop/omnetpp-4.1/src/utils/install-prog: Permission denied
make[2]: *** [all] Error 126
make[2]: Leaving directory `/home/bismillah/Desktop/omnetpp-4.1/src/utils'
make[1]: *** [utils] Error 2
make[1]: Leaving directory `/home/bismillah/Desktop/omnetpp-4.1'
make: *** [allmodes] Error 2

the "NO_TCL=1 ./configure" command works well and i have set the PATH variable also. kindly help
 
Old 04-11-2013, 04:31 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,742

Rep: Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318
Welcome to LQ.

Quote:
/bin/sh: /home/bismillah/Desktop/omnetpp-4.1/src/utils/install-prog: Permission denied
One error only. May be you have used sudo for one of the commands ?
Solution :
Delete everything, and start from scratch with a new unpacked omnetpp-4.1-src.tgz :
$ tar xvf omnetpp-4.1-src.tgz
$ cd omnetpp-4.1/
$ . setenv
$ export CC=gcc-4.4 CXX=g++-4.4
$ ./configure
$ export TCL_LIBRARY=/usr/share/tcltk/tcl8.5
$ make : No errors, Ubuntu 11.04.

Prerequisites : sudo apt-get install g++ g++-4.4 flex bison libpcap0.8-dev \
tcl8.5-dev tk8.5-dev blt-dev swig libopenmpi-dev openmpi-bin
.. Akaroa2 http://www.akaroa.canterbury.ac.nz/d...-2.7.11.tar.gz
>> akaroa-2.7.11.tar.gz
.. And java ..

-

Last edited by knudfl; 04-11-2013 at 05:03 AM.
 
1 members found this post helpful.
Old 04-11-2013, 10:48 AM   #3
adilbashir09
LQ Newbie
 
Registered: Apr 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
thanks knudfl for your help, i will do the same procedure but can you please tell me that how to "delete everything" which i have done till now for installation, which was your first point. Also you have mentioned few prerequisites, i want to know that whether these are complete prerequisites which i have to do before installation or there are some other prerequisites which you haven't mentioned and lastly you told about "java", regarding java what i have to install. please help
 
Old 04-11-2013, 12:01 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,742

Rep: Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318
# 3.

Deleting a failed omnet build : $ rm -rf omnetpp-4.1/
Or $ sudo rm -rf omnetpp-4.1/ , if any sudo commands were used to unpack etc.

Prerequisites : './configure' will tell what's missing,
and will also mention the optional build prerequisites.

Java : "Oracle (Sun) Java 6"
https://help.ubuntu.com/community/Java
Code:
 $ wget http://download.oracle.com/otn-pub/java/jdk/6u34-b04/jre-6u34-linux-i586.bin
 $ chmod u+x jre-6u34-linux-i586.bin
 $ ./jre-6u34-linux-i586.bin
 $ sudo mkdir -p /usr/lib/jvm
 $ sudo mv jre1.6.0_34 /usr/lib/jvm/
 $ sudo update-alternatives --install "/usr/bin/java" "java" "/usr/lib/jvm/jre1.6.0_34/bin/java" 1
 $ sudo update-alternatives --install "/usr/lib/mozilla/plugins/libjavaplugin.so" "mozilla-javaplugin.so" "/usr/lib/jvm/jre1.6.0_34/lib/i386/libnpjp2.so" 1
 $ sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/lib/jvm/jre1.6.0_34/bin/javaws" 1
 
1 members found this post helpful.
Old 04-12-2013, 10:56 AM   #5
adilbashir09
LQ Newbie
 
Registered: Apr 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
thanks a lot.... it really worked

and I need to install a package namely "Castalia"(http://www.castalia.npc.nicta.com.au) in omet++ in ubuntu 11.04 for my project. Kindly help me in installing it too because its install guide isn't too much helpful for itz installtion.. Thanks

Last edited by adilbashir09; 04-12-2013 at 11:24 AM. Reason: added information
 
Old 04-13-2013, 05:00 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,742

Rep: Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318
# 5 .

Can you upload the Castalia package to Google Docs ?
And supply a link, please.
( Probable change the package name, for license reasons.)
 
1 members found this post helpful.
Old 04-13-2013, 10:57 AM   #7
adilbashir09
LQ Newbie
 
Registered: Apr 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
i dint get you exactly what u mean. I want to install it and if you need that you can get it from their website, itz an open source software. The URL of their website has been already there in my last reply.
 
Old 04-13-2013, 11:34 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,742

Rep: Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318Reputation: 3318
# 7 : No valid links shown in your posts.
( You should try out your own link in post #5.)

This link works : http://castalia.research.nicta.com.au/index.php/en/
> http://castalia.research.nicta.com.a...hp/en/download

Install : Like the documentation ( Installation.doc ) says :
$ cd Castillia/ && ./makemake
... But the required omnetpp commands are probably not in your PATH.
So you will have to use an "export" similar to mine :
$ export PATH=/home/knudfl/omnetpp-4.1/bin:/usr/bin:/bin && ./makemake
.. The Makefile will be created, and you can do $ make

.
 
1 members found this post helpful.
Old 04-14-2013, 03:06 AM   #9
adilbashir09
LQ Newbie
 
Registered: Apr 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
here is the download link

http://castalia.npc.nicta.com.au/download.php

Thanks a lot,,, it worked,, no words for your help.. thanks

Last edited by adilbashir09; 04-14-2013 at 01:49 PM.
 
  


Reply

Tags
akaroa, castillia, omnetpp


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
OMNeT++ hezaveh Linux - Networking 1 02-17-2012 04:23 AM
OMNeT++ hezaveh Linux - Wireless Networking 1 02-17-2012 04:23 AM
OMNeT++ hezaveh Linux - Software 0 02-17-2012 04:21 AM
how to install OMNeT preeti sharma Linux - Newbie 1 10-30-2011 03:42 AM
i am getting this type of error when running simulation in omnet++ in base of mixim vst09 Linux - Wireless Networking 0 10-08-2010 01:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration