Hello all,
I installed Omnet4.0 and inet on Ubuntu9.10 but get Tkenv error when
run the examples, error msg as below. Could anyone please help? Thank
you in advance.
1. I installed Omnet 4.0 successfully on the Ubuntu 9.10. However when
run the sample, get below error:
root@ubuntu:/home/emma/omnetpp-4.0p1/samples/dyna# ./dyna
OMNeT++ Discrete Event Simulation (C) 1992-2008 Andras Varga, OpenSim
Ltd.
Version: 4.0p1, build: 090310-10709, edition: Academic Public License
-- NOT FOR COMMERCIAL USE
See the license for distribution terms and warranty disclaimer
Setting up Tkenv...
Loading NED files from .: 6
Segmentation fault
2. INET is installed, when run the example, it shows
root@ubuntu:/home/emma/omnetpp-4.0p1/inet/examples/adhoc/ieee80211# ./
run
OMNeT++ Discrete Event Simulation (C) 1992-2008 Andras Varga, OpenSim
Ltd.
Version: 4.0p1, build: 090310-10709, edition: Academic Public License
-- NOT FOR COMMERCIAL USE
See the license for distribution terms and warranty disclaimer
<!> Error during startup: No user interface (Cmdenv, Tkenv, etc.)
found.
End.
Segmentation fault
3. Tkenv8.5 & Tcl8.5 already installed
root@ubuntu:~# sudo apt-get install bison flex byacc swig build-
essential tcl8.5 tk8.5 tcl8.5-dev tk8.5-dev
4. From the bash file I added
export PATH=$PATH:/home/emma/omnetpp-4.0p1/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/emma/omnetpp-4.0p1/lib
export TCL_LIBRARY=/usr/share/tcltk/tcl8.5
export OMNETPP_IMAGE_PATH=$OMNETPP_IMAGE_PATH:/home/emma/omnetpp-4.0p1/
images
5. As the suggestion from disscussion group, I tried below still get
the same error.
./dyna --tkenv-extra-stack=64KB
6. When run ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
configure: -----------------------------------------------
configure: reading configure.user for your custom settings
configure: -----------------------------------------------
checking for icc... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for icpc... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for ranlib... ranlib
checking whether g++ supports -fno-stack-protector... yes
checking whether g++ supports -fno-stack-protector... yes
checking if shared libs need -fPIC... no
checking for dlopen with CFLAGS="" LIBS=""... no
checking if --export-dynamic linker option is supported/needed... both
checking for flags needed to link with static libs containing simple
modules... --whole-archive
configure: NOTE: Use the following syntax when linking with static
libraries
configure: containing simple modules and other dynamically registered
components:
configure: g++ ... -Wl,--whole-archive <libs> -Wl,--no-whole-
archive ...
checking whether linker supports -rpath... yes
checking for bison... bison -y
checking for flex... flex
checking lex output file root... lex.yy
checking lex library... none needed
checking whether yytext is a pointer... no
checking for make... make
checking for perl... perl
checking for swig... swig
checking for math with CFLAGS="" LIBS=""... yes
checking for standard C++ lib with CFLAGS="" LIBS="-lstdc++"... yes
checking for dlopen with CFLAGS="" LIBS=""... no
checking for dlopen with CFLAGS="" LIBS="-ldl"... yes
checking for winsock with CFLAGS="" LIBS="-lwsock32"... no
checking for zlib with CFLAGS=" -O2 -DNDEBUG=1 -fno-stack-protector
" LIBS="-lz"... yes
checking for Tcl/Tk 8.6 with CFLAGS=" -O2 -DNDEBUG=1 -fno-stack-
protector " LIBS="-ltk8.6 -ltcl8.6"... no
checking for Tcl/Tk 8.5 with CFLAGS=" -O2 -DNDEBUG=1 -fno-stack-
protector -I/usr/include/tcl8.5" LIBS="-ltk8.5 -ltcl8.5"... yes
checking for wish... wish
checking for BLT 2.4 with CFLAGS=" -O2 -DNDEBUG=1 -fno-stack-
protector -I/usr/include/tcl8.5" LIBS="IBLT -ltk8.5 -ltcl8.5"... no
checking for BLT 2.4 with CFLAGS=" -O2 -DNDEBUG=1 -fno-stack-
protector -I/usr/include/tcl8.5" LIBS="-lBLT24 -ltk8.5 -ltcl8.5"...
no
checking for BLT 2.4 with CFLAGS=" -O2 -DNDEBUG=1 -fno-stack-
protector -I/usr/include/tcl8.5" LIBS="-lBLT -ltk8.5 -ltcl8.5"...
yes
checking for java... java
checking for JNI with CFLAGS=" -O2 -DNDEBUG=1 -fno-stack-protector -
fno-strict-aliasing -I/usr/lib/jvm/java-6-openjdk/include -I/usr/lib/
jvm/java-6-openjdk/include/linux"... yes
checking for mpic++... mpic++
c++: unrecognized option '-showme:compile'
/usr/lib/gcc/i486-linux-gnu/4.4.1/../../../../lib/crt1.o: In function
`_start':
/build/buildd/eglibc-2.10.1/csu/../sysdeps/i386/elf/start.S:115:
undefined reference to `main'
collect2: ld returned 1 exit status
c++: unrecognized option '-showme:link'
/usr/lib/gcc/i486-linux-gnu/4.4.1/../../../../lib/crt1.o: In function
`_start':
/build/buildd/eglibc-2.10.1/csu/../sysdeps/i386/elf/start.S:115:
undefined reference to `main'
collect2: ld returned 1 exit status
checking for MPI with CFLAGS=" -O2 -DNDEBUG=1 -fno-stack-protector "
LIBS=" -Wl,--export-dynamic -Wl,-rpath,$(OMNETPP_LIB_DIR):. "... no
checking for mpicxx... mpicxx
checking for MPI with CFLAGS=" -O2 -DNDEBUG=1 -fno-stack-protector c+
+ -g -O2 -g -Wall -O2 -c -I/usr/include/mpich2" LIBS=" -Wl,--export-
dynamic -Wl,-rpath,$(OMNETPP_LIB_DIR):. c++ -g -O2 -g -Wall -O2 -Wl,-
Bsymbolic-functions -I/usr/include/mpich2 -L/usr/lib -L/usr/lib -Wl,-
rpath -Wl,/usr/lib -lmpichcxx -lmpich -lopa -lpthread -lrt"... no
checking for MPI with CFLAGS=" -O2 -DNDEBUG=1 -fno-stack-protector c+
+ -g -O2 -g -Wall -O2 -c -I/usr/include/mpich2" LIBS=" -Wl,--export-
dynamic -Wl,-rpath,$(OMNETPP_LIB_DIR):. -lmpi"... no
configure: WARNING: Optional package MPI (needed for parallel
simulation) not found.
checking for PCAP with CFLAGS=" -O2 -DNDEBUG=1 -fno-stack-protector
" LIBS="-lpcap"... yes
checking for LibXML XML parser with CFLAGS=" -O2 -DNDEBUG=1 -fno-stack-
protector -DHAVE_PCAP " LIBS="-lxml2"... no
checking for LibXML XML parser with CFLAGS=" -O2 -DNDEBUG=1 -fno-stack-
protector -DHAVE_PCAP -I/usr/include/libxml2" LIBS="-lxml2"... yes
checking for Expat XML parser with CFLAGS=" -O2 -DNDEBUG=1 -fno-stack-
protector -DHAVE_PCAP " LIBS="-lexpat"... yes
configure: Using LibXML for XML parsing
checking for Akaroa with CFLAGS=" -O2 -DNDEBUG=1 -fno-stack-
protector -DHAVE_PCAP -DXMLPARSER=libxml " LIBS=""... no
checking for Akaroa with CFLAGS=" -O2 -DNDEBUG=1 -fno-stack-
protector -DHAVE_PCAP -DXMLPARSER=libxml " LIBS="-lakaroa -lfl"...
no
configure: WARNING: Optional package Akaroa not found
configure: creating ./config.status
config.status: creating Makefile.inc
config.status: creating test/core/runtest
patching the ide configuration file. default workspace is: /home/emma/
omnetpp-4.0p1/samples
WARNING: The configuration script could not detect the following
packages:
MPI (optional) Akaroa (optional)
Scroll up to see the warning messages (use shift+PgUp key), and see
config.log
for more details. While you can use OMNeT++ in the current
configuration, please be aware that some functionality may be
unavailable
or incomplete.
Your PATH contains /home/emma/omnetpp-4.0p1/bin. Good!
TCL_LIBRARY is set. Good!
--
You received this message because you are subscribed to the Google Groups "omnetpp" group.
To post to this group, send email to
omn...@googlegroups.com.
To unsubscribe from this group, send email to
omnetpp+u...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/omnetpp?hl=en.