Installation omnetpp at Ubuntu 10.04

1,687 views
Skip to first unread message

Fengyuan Gong

unread,
Mar 20, 2011, 5:41:54 PM3/20/11
to omn...@googlegroups.com
Hi, ALL,

I am a new learner of omnetpp. 
I try to install it on Ubuntu 10.04 LTE 64bit.
But during the process of ./configure, there are several errors:
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-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 g++... g++
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... yes
checking for dlopen with CFLAGS="" LIBS=""... no
checking if --export-dynamic linker option is supported/needed... test failed
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 -fPIC  " LIBS="-lz"... yes
checking for Tcl/Tk with CFLAGS="-I/usr/local/include" LIBS="-L/usr/local/lib -ltk8.4 -ltcl8.4"... no
configure: error: Tcl/Tk not found, needed for all GUI parts. Version 8.4.0+ and devel package required. Check config.log for more info!

I have installed tcl and tk with version 8.4+. And also add 
TK_CFLAGS="-I/usr/local/include"
TK_LIBS="-L/usr/local/lib -ltk8.4 -ltcl8.4"
into configure.user.

But still not work.

Any advise is appreciated.

Best Regards~
Fengyuan Gong

Enrico Orsini

unread,
Mar 21, 2011, 12:31:18 PM3/21/11
to omn...@googlegroups.com
I'm On Ubuntu 10.10 64bit and all works fine.
I just followed the Install guide: http://omnetpp.org/doc/omnetpp41/InstallGuide.pdf
Pratically i gave the comand: 
sudo apt-get install build-essential gcc g++ bison flex perl tcl-dev tk-dev blt libxml2-dev zlib1g-dev openjdk-6-jre doxygen graphviz openmpi-bin libopenmpi-dev libpcap-dev
And then compiled omnet++ as usual. No error. 
Reply all
Reply to author
Forward
Message has been deleted
0 new messages