PDA

View Full Version : [ubuntu] compilation problems



matrix003
January 21st, 2011, 10:45 AM
Hi guys,
I`m new to ubuntu, and I have problem with compilation of source codes...
I wanted to compile kontrollerlab source code, but I can`t because an error is detected.

my problem is like this:

njazi@njazi-System-Name:~/Desktop/prog$ cd/home/njazi/Desktop/prog/
njazi@njazi-System-Name:~/Desktop/prog$ ls
acinclude.m4 config.log INSTALL po
aclocal.m4 configure kontrollerlab.kdevelop README
admin configure.files kontrollerlab.kdevelop.spec src
AUTHORS configure.in Makefile.am stamp-h.in
autom4te.cache configure.in.in Makefile.cvs subdirs
ChangeLog COPYING Makefile.in templates
config.h.in doc NEWS TODO
njazi@njazi-System-Name:~/Desktop/prog$ cd /home/njazi/Desktop/prog/admin
njazi@njazi-System-Name:~/Desktop/prog/admin$ ./configure
bash: ./configure: No such file or directory
njazi@njazi-System-Name:~/Desktop/prog/admin$ cd /home/njazi/Desktop/prog/aclocal.m4
bash: cd: /home/njazi/Desktop/prog/aclocal.m4: Not a directory
njazi@njazi-System-Name:~/Desktop/prog/admin$ cd /home/njazi/Desktop/prog/
njazi@njazi-System-Name:~/Desktop/prog$ ls
acinclude.m4 config.log INSTALL po
aclocal.m4 configure kontrollerlab.kdevelop README
admin configure.files kontrollerlab.kdevelop.spec src
AUTHORS configure.in Makefile.am stamp-h.in
autom4te.cache configure.in.in Makefile.cvs subdirs
ChangeLog COPYING Makefile.in templates
config.h.in doc NEWS TODO
njazi@njazi-System-Name:~/Desktop/prog$ cd /home/njazi/Desktop/
njazi@njazi-System-Name:~/Desktop$ ls
prog
njazi@njazi-System-Name:~/Desktop$ clear

njazi@njazi-System-Name:~/Desktop$ cd /home/njazi/Desktop/prog/
njazi@njazi-System-Name:~/Desktop/prog$ ls
acinclude.m4 config.log INSTALL po
aclocal.m4 configure kontrollerlab.kdevelop README
admin configure.files kontrollerlab.kdevelop.spec src
AUTHORS configure.in Makefile.am stamp-h.in
autom4te.cache configure.in.in Makefile.cvs subdirs
ChangeLog COPYING Makefile.in templates
config.h.in doc NEWS TODO
njazi@njazi-System-Name:~/Desktop/prog$ sh./configure
bash: sh./configure: No such file or directory
njazi@njazi-System-Name:~/Desktop/prog$ sh ./configure
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking for -p flag to install... yes
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
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 ANSI C... none needed
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for g++... no
checking for c++... no
checking for gpp... no
checking for aCC... no
checking for CC... no
checking for cxx... no
checking for cc++... no
checking for cl... no
checking for FCC... no
checking for KCC... no
checking for RCC... no
checking for xlC_r... no
checking for xlC... no
checking whether we are using the GNU C++ compiler... no
checking whether g++ accepts -g... no
checking dependency style of g++... none
checking whether g++ supports -Wmissing-format-attribute... no
checking whether g++ supports -Wundef... no
checking whether g++ supports -Wno-long-long... no
checking whether g++ supports -Wnon-virtual-dtor... no
checking how to run the C++ preprocessor... /lib/cpp
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.

I will be thankful for any suggestions...

lykeion
January 21st, 2011, 02:51 PM
First of all when posting code output please enclose it in CODE tags (the # button) for readability.

And regarding your problem, have you checked config.log for details? Otherwise it's hard to tell why the compilation failed.

However rather than compiling yourself it might be easier to install a precompiled binary, and if you go to the download section (http://www.cadmaniac.org/projectMain.php?projectName=kontrollerlab&section=download) of the homepage for KontrollerLab, you'll find DEB packages for Ubuntu.
And if you really want the v0.8.0-alpha version you can use the Debian (Sid) package.

oldos2er
January 21st, 2011, 07:12 PM
Have you installed build-essential?