LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-15-2009, 11:48 AM   #1
centosfan
Member
 
Registered: Jun 2003
Location: Golem city
Distribution: Server - Debian Desktop - Linux Mint
Posts: 219

Rep: Reputation: 32
Weird things with gd and yum mysql on php compile 64 bit cent os 5


I tried to compile php source on cent os 64 bit with mysql and gd,but it's not working how it should be.I did find solution how to make it work,but that solution is kind a slow.
First,if i put --with-gd (plus variations directory location)then i always get message how libpng is missing,and i have it installed plus libpng-devel version as well.I resolved by putting --enable-gd-native-ttf,and gd checker plus operation with gd working fine,checker even say how gd supports jpeg/png/zlib.
Since this working it's no problem,i am just confused why it doesn't work with-gd option.

Next problem would be compile with yum version of mysql,mysql-devel,mysql-server,etc.I always get error:
configure: error: Cannot find libmysqlclient under /usr.
Note that the MySQL client library is not bundled anymore!

,while i see mysql client in /usr/lib64/mysql,and even --with-mysql=/usr/lib64/mysql .
I resolved this problem with installing mysql from source,but the problem is compilation from source takes up to one hour,while install from yum is instant.Any idea to make this work?
Also both this switches --with-gd and --with-mysql with yum version of mysql works perfectly fine on 32 bit version.
 
Old 09-15-2009, 06:37 PM   #2
sleddog
Member
 
Registered: Jan 2002
Location: Labrador, Canada
Distribution: CentOS, Debian
Posts: 182

Rep: Reputation: 35
When compiling PHP on CentOS 5 64bit, I have to specify the libdir for configure, like:

Code:
./configure --with-libdir=lib64 ...
(where "..." indicates your other configure options).
 
Old 09-16-2009, 02:26 PM   #3
centosfan
Member
 
Registered: Jun 2003
Location: Golem city
Distribution: Server - Debian Desktop - Linux Mint
Posts: 219

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by sleddog View Post
When compiling PHP on CentOS 5 64bit, I have to specify the libdir for configure, like:

Code:
./configure --with-libdir=lib64 ...
(where "..." indicates your other configure options).
Ugh i cant believe solution is so easy.And i was screwing around with this over a month,and now on latest server as a result i screwed yum since i tried to combine source and yum mysql so i had to request os reinstall.Well,at least now it will work fine.
 
  


Reply



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
weird PHP compile issue- module shows in "php -m" but not in phpinfo call hbbtstar Linux - Software 1 08-28-2009 03:14 PM
yum install php-mysql uhmaster2000 Linux - Newbie 11 05-18-2009 07:12 PM
yum install php-mysql fails with mysql 5.1 - "Error: mysql conflicts with MySQL" rebelde Linux - Software 2 03-13-2009 10:32 AM
Yum php-mysql 3.22 vs 4.1 Crump Fedora 1 04-21-2007 06:49 AM
PHP-MySQL Weird Error Fordor Slackware 2 02-24-2005 12:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:28 PM.

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