LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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-15-2013, 01:07 PM   #1
adilbashir09
LQ Newbie
 
Registered: Apr 2013
Posts: 8

Rep: Reputation: Disabled
installation errors in SenSim in linux


hello everybody,
I was trying to install "SenSim" simulator in omnet++ 4.0p1 in ubuntu 11.04, but when i typed the "make" command, i got the following last lines:

make[1]: `hwmodels_layer' is up to date.
make[1]: Leaving directory `/home/bismillah/Desktop/LSU-SensorSimulator/samples/hwmodels_layer'
g++ TargetNodeSimple.o common//Attribute.o common//Calculations.o common//CoOrdinatorSimple.o common//Gear_packet_m.o common//MAC_802_11_Packet_m.o common//Phy_Packet_m.o common//test.o app_layer//AppLayerSimple.o app_layer//NewAppLayerModuleDefn_n.o app_layer//NewAppLayer.o netw_layer//gear.o netw_layer//NetLayer.o netw_layer//NetLayerSimple.o netw_layer//NewNetLayerModuleDefn_n.o netw_layer//NewNetLayer.o mac_layer//802_11_MAC.o mac_layer//802_MAC_Layer_Defn_n.o mac_layer//MACLayerSimple.o mac_layer//NewMACLayerModuleDefn_n.o mac_layer//NewMACLayer.o phy_layer//NewPhyLayerModuleDefn_n.o phy_layer//NewPhyLayer.o phy_layer//PhyLayerSimple.o wireless_ch//SensorChannelSimple.o wireless_ch//WirelessChannelSimple.o hwmodels_layer//BatterySimple.o hwmodels_layer//CPUSimple.o hwmodels_layer//RadioSimple.o -L../src -lSensorSimulator -L/home/cariappa/omnetpp-2.3/lib -lenvir -lcmdenv -lsim_std -ldl -lstdc++ -o Simulation
/usr/bin/ld: cannot find -lenvir
/usr/bin/ld: cannot find -lcmdenv
/usr/bin/ld: cannot find -lsim_std
collect2: ld returned 1 exit status
make: *** [Simulation] Error 1

kindly help me to complete the installation.
 
Old 04-15-2013, 01:21 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
first the error is saying that you are missing a few needed programs
Quote:
/usr/bin/ld: cannot find -lenvir
/usr/bin/ld: cannot find -lcmdenv
/usr/bin/ld: cannot find -lsim_std
install ( on ubuntu it is "-dev" )
libenvir and libenvir-dev
libcmdenv and libcmdenv-dev
libsim_std and libsim_std-dev


did you read the README and or the instructions in the "doc" folder in the source ( or on the software webpage)?
for installing the prerequisites

Last edited by John VV; 04-15-2013 at 01:23 PM.
 
Old 04-15-2013, 01:27 PM   #3
adilbashir09
LQ Newbie
 
Registered: Apr 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
thanks John, i tried what you instructed me to do, but it displays now the following error: "Unable to locate package" for all the three.. So what to do now?
 
Old 04-15-2013, 01:51 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
can you post a link to the site you got this software
so that i can read the instructions
 
Old 04-15-2013, 05:23 PM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Don't know if SenSim ( LSU-SensorSimulator.tgz ) will work with your omnetpp-4.1.

{ libenvir.so libcmdenv.so libsim_std.so } are libraries from omnetpp version 3.3 - 3.4.

? May be a link to the current libraries will work ?
cd omnetpp-4.1/lib/
ln -s gcc/liboppenvir.so libenvir.so
ln -s gcc/liboppcmdenv.so libcmdenv.so
ln -s gcc/liboppsim.so libsim_std.so

-
 
Old 04-17-2013, 12:15 PM   #6
adilbashir09
LQ Newbie
 
Registered: Apr 2013
Posts: 8

Original Poster
Rep: Reputation: Disabled
As per the installation manual of SenSim, omnetpp-2.3, and i have downloaded omnetpp-2.3p1, but while installing, i got the following errors:

checking for dlopen with CFLAGS="" LIBS="-ldl"... yes
checking for wish... wish
checking for Tcl/Tk with CFLAGS="-fwritable-strings" LIBS=""... no
checking how to run the C++ preprocessor... g++ -E
checking for X... no
checking for Tcl/Tk with CFLAGS=" -fwritable-strings" LIBS=" -ltk84 -ltcl84"... no
checking for Tcl/Tk with CFLAGS=" -fwritable-strings" LIBS=" -ltk8.4 -ltcl8.4"... no
checking for Tcl/Tk with CFLAGS=" -fwritable-strings" LIBS=" -ltk83 -ltcl83"... no
checking for Tcl/Tk with CFLAGS=" -fwritable-strings" LIBS=" -ltk8.3 -ltcl8.3"... no
checking for Tcl/Tk with CFLAGS=" -fwritable-strings" LIBS=" -ltk82 -ltcl82"... no
checking for Tcl/Tk with CFLAGS=" -fwritable-strings" LIBS=" -ltk8.2 -ltcl8.2"... no
configure: error: cannot build Tcl/Tk apps, probably due to misconfigured or missing X11 headers or libs

kindly help.
 
Old 04-17-2013, 05:16 PM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 6 : omnetpp-2.3p1 = version pre1.

How about a final version omnetpp-3.2.src.tgz ?
http://omnetpp.org/download/release/omnetpp-3.2-src.tgz
... which will accept tcl8.5 / tk8.5, etc.

X11 headers, etc. : sudo apt-get install \
libxmu-dev imagemagick doxygen xsltproc graphviz libgraphviz-dev giftrans

1) cd omnetpp-3.2/
2) export PATH=$PATH:/home/<name>/omnetpp-3.2/bin
3) export LD_LIBRARY_PATH=/home/<name>/omnetpp-3.2/lib
4) export TCL_LIBRARY=/usr/share/tcltk/tcl8.5
5) export CC=gcc34 CXX=g++34
6) ./configure && make : No errors, Ubuntu 11.04 - i686.

gcc34 https://docs.google.com/file/d/0B7S2...it?usp=sharing
g++34 https://docs.google.com/file/d/0B7S2...it?usp=sharing
sudo dpkg -i gcc34-compat-3.4.6_i386.deb g++41-compat-4.1.2_i386.deb
Be aware that the above packages are for a 32bits (i686) OS only.
To use gcc34/g++34 : Please reboot.

-

Last edited by knudfl; 04-17-2013 at 05:32 PM.
 
1 members found this post helpful.
  


Reply

Tags
omnetpp, sensim



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
Grub Installation and Partition Errors during OpenSuse Linux 11.1 Install mrukjames SUSE / openSUSE 4 08-14-2009 04:36 PM
Compaq Presario C770TU--- graphical installation of RedHat Linux occurs errors mufti_nsu Linux - Laptop and Netbook 1 07-28-2008 06:13 PM
Compaq Presario C770TU---installation graphically of RedHat Linux occurs errors mufti_nsu Linux - Laptop and Netbook 2 07-19-2008 06:11 AM
Linux Installation Errors Gerald Linux - Newbie 1 11-27-2007 12:52 PM

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

All times are GMT -5. The time now is 06:33 PM.

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
Open Source Consulting | Domain Registration