The Cache: Technology Expert's Forum
 
*
Welcome, Guest. Please login or register. September 17, 2019, 11:59:06 PM

Login with username, password and session length


Pages: [1]
  Print  
Author Topic: PHP compilation tip: Can't Find mysql_config  (Read 2102 times)
perkiset
Olde World Hacker
Administrator
Lifer
*****
Offline Offline

Posts: 10096



View Profile
« on: November 22, 2010, 03:48:47 PM »

This is here more for Perk's memory than anything else...

When compiling PHP on a machine and attempting to enable mysql and mysqli, note that it works WAY better if you point right at the file you need.

EG:


./configure \
        --with-apxs2=/usr/local/apache2/bin/apxs \
        --with-mysql=/usr/local/mysql \
        --with-pear \
        --with-mysqli=/usr/local/mysql/bin/mysql_config \
        --with-curl \
        --disable-cgi \
        --enable-ftp \
        --enable-soap \
        --enable-mbstring \
        --enable-sockets \
        --with-gd -with-png-dir=/usr \
        --with-jpeg-dir=/usr \
        --with-freetype-dir=/usr



as opposed to just

        --with-mysql \
        --with-mysqli \


Just sayin'.
Logged

It is now believed, that after having lived in one compound with 3 wives and never leaving the house for 5 years, Bin Laden called the U.S. Navy Seals himself.
herbacious
Journeyman
***
Offline Offline

Posts: 51


View Profile
« Reply #1 on: December 01, 2010, 05:24:05 PM »

nice

http://www.google.com/search?client=ubuntu&channel=fs&q=PHP+compilation+tip%3A+Can%27t+Find+mysql_config&ie=utf-8&oe=utf-8
Logged
perkiset
Olde World Hacker
Administrator
Lifer
*****
Offline Offline

Posts: 10096



View Profile
« Reply #2 on: December 02, 2010, 10:04:30 AM »

Lordy, its almost as if I know what I'm doing from an SEO perspective Wink

One thing I didn't explain up top is that I always build a configuration.ep file and make it executable - that's what I call rather than the normal configure file. Then whenever I get to a machine I've not touched in a while I can look for MY configuration and know how I built (that app). Some are simple (mysql) some are bigger like this php config.
Logged

It is now believed, that after having lived in one compound with 3 wives and never leaving the house for 5 years, Bin Laden called the U.S. Navy Seals himself.
Pages: [1]
  Print  
 
Jump to:  

Perkiset's Place Home   Best of The Cache   phpMyIDE: MySQL Stored Procedures, Functions & Triggers
Politics @ Perkiset's   Pinkhat's Perspective   
cache
mart
coder
programmers
ajax
php
javascript
Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS!