Page 1 of 1

Problem in compiling sablotron on CentOS5.0 for php

Posted: Fri Sep 28, 2007 11:36 am
by jamy-virus
Hi guys,
this is my Ist post on this forum, i am having a problem in compiling Sablotron-0.96.tar.gz version. When i run './configure' '--prefix=/usr/local'
it shows me an error message at the end like this
"configure: error: installation or configuration problem: C++ compiler cannot create executables."
I have gcc and g++ installed on my system. Is there a way to get out of this problem.
thanx in advance

Posted: Fri Sep 28, 2007 11:59 am
by lambda
read the config.log file to see what the error is. perhaps you don't have the c++ development libraries/headers installed.

Problem in compiling sablotron on CentOS5.0 for php

Posted: Fri Sep 28, 2007 1:04 pm
by jamy-virus
i am not getting much of these error messages listed in config.log, plz help me in sorting out this problem.
Few lines of config.log reperesents the following errors. i mentioned the error messages lines bold format.

configure:759: checking for a BSD compatible install
configure:812: checking whether build environment is sane
configure:869: checking whether make sets ${MAKE}
configure:908: checking for working aclocal
configure:921: checking for working autoconf
configure:934: checking for working automake
configure:947: checking for working autoheader
configure:960: checking for working makeinfo
configure:978: checking for Cygwin environment
configure:994: cc -c conftest.c 1>&5
configure: In function `main':
[b]configure:990: error: `__CYGWIN32__' undeclared (first use in this function)
configure:990: error: (Each undeclared identifier is reported only once
configure:990: error: for each function it appears in.)
configure: failed program was:

#line 983 "configure"
#include "confdefs.h"
[/b]

the next few lines shows following

int main() {

#ifndef __CYGWIN__
#define __CYGWIN__ __CYGWIN32__
#endif
return __CYGWIN__;
; return 0; }
configure:1011: checking for mingw32 environment
configure:1023: cc -c conftest.c 1>&5
configure: In function `main':
configure:1019: error: `__MINGW32__' undeclared (first use in this function)
configure:1019: error: (Each undeclared identifier is reported only once
configure:1019: error: for each function it appears in.)
configure: failed program was:
#line 1016 "configure"
#include "confdefs.h"


at the last line it shows the following message


gcc: installation problem, cannot exec `cc1plus': No such file or directory
configure: failed program was:

Posted: Fri Sep 28, 2007 5:09 pm
by lambda
strange error. it's as if it thinks you're trying to compile it on cygwin or something. try the sabletron lists.

Re:

Posted: Sat Sep 29, 2007 7:43 am
by LinuxFreaK
Dear jamy-virus,
Salam,

I believe you do not have C/C++ Compiler installed on you System. Use below command if you are connected to internet. Alternatively you can install them from your installation CD's.

# yum -y install gcc gcc-c++ automake autoconf libtool

Best Regards.

Problem in compiling sablotron on CentOS5.0 for php

Posted: Mon Oct 01, 2007 4:42 pm
by jamy-virus
thanx budy
yum command worked :)