Problem in compiling sablotron on CentOS5.0 for php

Discussion regarding the installation and configuration of Linux distributions.
jamy-virus
Cadet
Posts: 5
Joined: Fri Sep 28, 2007 9:11 am
Location: Lahore
Contact:

Problem in compiling sablotron on CentOS5.0 for php

Postby jamy-virus » Fri Sep 28, 2007 11:36 am

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
Syed Jamshed Zaidi
Linux Admin/Programmer
"Shoot for the moon even if you miss you will land among stars"

lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Postby lambda » Fri Sep 28, 2007 11:59 am

read the config.log file to see what the error is. perhaps you don't have the c++ development libraries/headers installed.
Watch out for the !
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?

jamy-virus
Cadet
Posts: 5
Joined: Fri Sep 28, 2007 9:11 am
Location: Lahore
Contact:

Problem in compiling sablotron on CentOS5.0 for php

Postby jamy-virus » Fri Sep 28, 2007 1:04 pm

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:
Syed Jamshed Zaidi

Linux Admin/Programmer

"Shoot for the moon even if you miss you will land among stars"

lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Postby lambda » Fri Sep 28, 2007 5:09 pm

strange error. it's as if it thinks you're trying to compile it on cygwin or something. try the sabletron lists.
Watch out for the !
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?

LinuxFreaK
Site Admin
Posts: 5132
Joined: Fri May 02, 2003 10:24 am
Location: Karachi
Contact:

Re:

Postby LinuxFreaK » Sat Sep 29, 2007 7:43 am

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.
Farrukh Ahmed

jamy-virus
Cadet
Posts: 5
Joined: Fri Sep 28, 2007 9:11 am
Location: Lahore
Contact:

Problem in compiling sablotron on CentOS5.0 for php

Postby jamy-virus » Mon Oct 01, 2007 4:42 pm

Syed Jamshed Zaidi

Linux Admin/Programmer

"Shoot for the moon even if you miss you will land among stars"


Return to “Installation”

Who is online

Users browsing this forum: No registered users and 1 guest