Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

PHP 5.6 on CentOS 6.5

34 views
Skip to first unread message

Jeremy Seago

unread,
Sep 10, 2014, 12:49:58 AM9/10/14
to
Has anyone had luck compiling PHP 5.6 on CentOS 6.5?

I keep getting a "cannot run C compiled programs" error when I try to ./configure 5.6, 5.5 or 5.4 on CentOS 6.5.

Any help would be appreciated. I've tried all the usual suspects (permissions on tmp directories, etc.), but I can't figure it out...

Thanks

Jerry Stuckle

unread,
Sep 10, 2014, 6:52:51 AM9/10/14
to
I haven't seen this before, but googling your message shows several
people have had this same problem. Most don't have the proper
development tools installed.

--
==================
Remove the "x" from my email address
Jerry Stuckle
jstu...@attglobal.net
==================

Jeremy Seago

unread,
Sep 10, 2014, 10:32:34 AM9/10/14
to
I've installed the general development tools (`yum groupinstall "Development Tools"`), but I can't seem to find a list of required build tools anywhere.

Jerry Stuckle

unread,
Sep 10, 2014, 1:10:24 PM9/10/14
to
On 9/10/2014 10:32 AM, Jeremy Seago wrote:
> On Wednesday, September 10, 2014 5:52:51 AM UTC-5, Jerry Stuckle wrote:
>> On 9/10/2014 12:49 AM, Jeremy Seago wrote:
>>
>>> Has anyone had luck compiling PHP 5.6 on CentOS 6.5?
>>
>>>
>>
>>> I keep getting a "cannot run C compiled programs" error when I try to ./configure 5.6, 5.5 or 5.4 on CentOS 6.5.
>>
>>>
>>
>>> Any help would be appreciated. I've tried all the usual suspects (permissions on tmp directories, etc.), but I can't figure it out...
>>
>>>
>>
>>> Thanks
>>
>>>
>>
>>
>>
>> I haven't seen this before, but googling your message shows several
>>
>> people have had this same problem. Most don't have the proper
>>
>> development tools installed.
>>
>>
>>
> I've installed the general development tools (`yum groupinstall "Development Tools"`), but I can't seem to find a list of required build tools anywhere.
>

Did you read the INSTALL file? It has several notes. For instance,
under Solaris, it lists, you need gcc, make and GNU sed (plus some other
packages for extensions).

I don't use CentOS, so I don't know what's on it, or what is included in
the group Development Tools. I have compiled it on Debian, with no
problems. But as a developer, I also have a full set of tools installed.

Googling for "compile php centos" (without the quotes) also gives some
good hits.

Robert Heller

unread,
Sep 10, 2014, 2:07:01 PM9/10/14
to
Well on my CentOS 6 build VM I have installed (this is probably a good start
on the base development toolchain -- there are probably other RPMs needed:

gcc-4.4.7-3.el6.x86_64
binutils-2.20.51.0.2-5.36.el6.x86_64
autofs-5.0.5-73.el6.x86_64
automake-1.11.1-4.el6.noarch
gcc-gfortran-4.4.7-3.el6.x86_64
gcc-c++-4.4.7-3.el6.x86_64
autoconf-2.63-5.1.el6.noarch
libtool-ltdl-2.2.6-15.5.el6.x86_64
libtool-2.2.6-15.5.el6.x86_64
bison++-1.21.8-2.el6.dws.x86_64
bison-2.4.1-5.el6.x86_64
libgcc-4.4.7-3.el6.x86_64

And given the install requirements for php53 under CentOS 5, I would suspect
you would need (at least) these *-devel packages:

httpd-devel
bzip2-devel
glibc-devel
e2fsprogs-libs-devel
openssl-devel
gmp-devel
krb5-devel
pcre-devel
libxml2-devel
zlib-devel


>

--
Robert Heller -- 978-544-6933
Deepwoods Software -- Custom Software Services
http://www.deepsoft.com/ -- Linux Administration Services
hel...@deepsoft.com -- Webhosting Services

0 new messages