LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-01-2008, 09:48 AM   #1
jfernandez
LQ Newbie
 
Registered: Feb 2006
Posts: 13

Rep: Reputation: 0
Install PHP on a 64bit CentOS problem. HELP.


Hi, I installed PHP on CentOS on a 32bit machine successfully. When I applied the same steps on a 64bit machine, I got the errors when I did the ./configure. Here're the steps I followed and I would be appreciated that somebody can point out the fix of it.
1) install apache2 at default location /usr/local/apache2
2) install PHP by first running ./configure
./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-gd --with-curl --with-mysql --with-pdo-mysql --with-jpeg-dir --with-png-dir --with-freetype-dir --with-zlib

then it stops at
checking for openssl support in libcurl... no
checking for gnutls support in libcurl... no
checking for curl_easy_perform in -lcurl... no
configure: error: There is something wrong. Please check config.log for more information.


When I checked config.log, it shows

checking for openssl support in libcurl... no
checking for gnutls support in libcurl... no
checking for curl_easy_perform in -lcurl... no
configure: error: There is something wrong. Please check config.log for more information.
[yifei@localhost php-5.2.6]$
[yifei@localhost php-5.2.6]$ vi config.log

int main(int argc, char *argv[]) {
curl_version_info_data *data = curl_version_info(CURLVERSION_NOW);
if (data && data->ssl_version && *data->ssl_version) {
const char *ptr = data->ssl_version;
while(*ptr == ' ') ++ptr;
return strncasecmp(ptr, "OpenSSL", sizeof("OpenSSL")-1);
}
return 1;
}

configure:25298: checking for gnutls support in libcurl
configure:25320: gcc -o conftest -L/usr/kerberos/lib64 -lcurl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv -ldl -lidn -lssl -lcrypto -lz -Wl,-rpath,/usr/lib conftest.c -lz -lresolv -lm -ldl -lnsl -lxml2 -lz -lm 1>&5
/usr/bin/ld: skipping incompatible /usr/lib/libgssapi_krb5.so when searching for -lgssapi_krb5
/usr/bin/ld: skipping incompatible /usr/lib/libgssapi_krb5.a when searching for -lgssapi_krb5
/usr/bin/ld: cannot find -lgssapi_krb5
collect2: ld returned 1 exit status
configure: failed program was:
#line 25305 "configure"
#include "confdefs.h"

#include <curl/curl.h>
int main(int argc, char *argv[]) {
curl_version_info_data *data = curl_version_info(CURLVERSION_NOW);
if (data && data->ssl_version && *data->ssl_version) {
const char *ptr = data->ssl_version;
while(*ptr == ' ') ++ptr;
return strncasecmp(ptr, "GnuTLS", sizeof("GnuTLS")-1);
}
return 1;
}

configure:25697: checking for curl_easy_perform in -lcurl
configure:25716: gcc -o conftest -g -O2 -Wl,-rpath,/usr/kerberos/lib64 -L/usr/kerberos/lib64 -Wl,-rpath,/usr/kerberos/lib64 -L/usr/kerberos/lib64 -lcurl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv -ldl -lidn -lssl -lcrypto -lz conftest.c -lcurl -lcurl -lz -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lcurl -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv -ldl -lidn -lssl -lcrypto -lz 1>&5
/usr/bin/ld: skipping incompatible /usr/lib/libgssapi_krb5.so when searching for -lgssapi_krb5
/usr/bin/ld: skipping incompatible /usr/lib/libgssapi_krb5.a when searching for -lgssapi_krb5
/usr/bin/ld: cannot find -lgssapi_krb5


Can someone tell me how to fix this? Thanks.

JF
 
Old 10-01-2008, 10:45 AM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
You need a 64-bit version of everything you've specified with the --with switches. It looks like PHP is finding a 32-bit version.
 
Old 10-01-2008, 06:22 PM   #3
jfernandez
LQ Newbie
 
Registered: Feb 2006
Posts: 13

Original Poster
Rep: Reputation: 0
when I ran the command "yum install curl-devel", it displays

Package curl-devel - 7.15.5-2.el5.i386 is already installed.
Package curl-devel - 7.15.5-2.el5.x86_64 is already installed.

Does anybody knows how to only install x86_64 version of the libcurl library? Thanks.


JF
 
Old 10-29-2008, 02:10 AM   #4
hao32
LQ Newbie
 
Registered: Oct 2008
Posts: 2

Rep: Reputation: 0
curl-devel-7.15.5-2.el5
e2fsprogs-devel-1.39-15.el5
krb5-devel-1.6.1-25.el5
libidn-devel-0.6.5-1.1
openssl-devel-0.9.8b-10.el5
 
Old 10-29-2008, 02:11 AM   #5
hao32
LQ Newbie
 
Registered: Oct 2008
Posts: 2

Rep: Reputation: 0
64位的系统给php添加curl的时候,
cd /usr/local/src/php-5.2.6/ext/curl/
/usr/local/php-fcgi/bin/phpize
./configure --with-php-config=/usr/local/php-fcgi/bin/php-config
居然出现一下错误!
checking for gnutls support in libcurl... no
checking for curl_easy_perform in -lcurl... no
configure: error: There is something wrong. Please check config.log for more information.

我赶紧检查有没有装curl的devel
rpm -qa |grep curl

全都有!
查了半天资料, 还是找到结果了, 只要以下包都安装了, 就可以完美通过!
curl-devel-7.15.5-2.el5
e2fsprogs-devel-1.39-15.el5
krb5-devel-1.6.1-25.el5
libidn-devel-0.6.5-1.1
openssl-devel-0.9.8b-10.el5
至于每个包的作用, 自己去查吧! 呵呵

need install the package above, detail: http://www.hao32.com/webserver/264.html
 
Old 11-20-2008, 08:56 AM   #6
skhalid
LQ Newbie
 
Registered: Nov 2008
Posts: 3

Rep: Reputation: 0
compilation error

I had the same issue, tried alot but finally I figured out that this is 32bit and 64bit issue.

I simply followed these steps and all fine:

http://www.syednetworks.com/?page_id...ad=226&start=0
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CentOS 5 64bit - openldap - missing back_bdb.so neocontrol Red Hat 5 09-04-2008 09:23 AM
libgaim.so.0()(64bit) error | centos Cheza Linux - General 1 01-12-2008 11:32 AM
SVN compile issues - centos 5 64bit neocontrol Linux - Server 1 11-06-2007 12:07 PM
Wireshark Install On CentOS 64bit krams Linux - Newbie 3 04-24-2007 05:35 PM
Can't install amarok 64bit du eto missing provider of libpq.so.4()(64bit) Ossah Linux - Software 1 04-21-2007 10:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration