This repository has been archived by the owner. It is now read-only.

Upgrading PHP to 5.4.7 removes mysql support #320

Closed
pkruithof opened this Issue Oct 8, 2012 · 2 comments

Comments

Projects
None yet
2 participants
@pkruithof

Just did a brew update && brew upgrade, and noticed PHP does not have the mysql driver anymore, even though I originally installed PHP with the --with-mysql option.

I tried to uninstall and install again, but no difference.

OS X Version: 10.8.2
Homebrew Version: 0.9.3
PHP Version in use: homebrew-php stable
XCode Version: 4.5.1

gcc -v:

Using built-in specs.
Target: i686-apple-darwin11
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.11~67/src/configure --disable-checking --enable-werror --prefix=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.11~67/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)

php -v

PHP 5.4.7 (cli) (built: Oct  8 2012 14:27:25) 
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
    with Xdebug v2.2.1, Copyright (c) 2002-2012, by Derick Rethans

Install command:
brew install -V /usr/local/Library/Taps/josegonzalez-php/Formula/php54.rb --with-fpm --with-mysql --with-intl

output gist

$ brew doctor
Your system is raring to brew.

I'm not familiar with Ruby, but it seems to me that this line expects both mysql and mariadb as options:

if build.include?('with-mysql') && build.include?('with-mariadb')

@josegonzalez

This comment has been minimized.

Show comment Hide comment
@josegonzalez

josegonzalez Oct 8, 2012

Contributor

Fuck my bad. I'll fix it as soon as I get into the office!
On Oct 8, 2012 9:20 AM, "Peter Kruithof" notifications@github.com wrote:

Just did a brew update && brew upgrade, and noticed PHP does not have the
mysql driver anymore, even though I originally installed PHP with the
--with-mysql option.

php -i output:

asdsad

I tried to uninstall and install again, but no difference.

OS X Version: 10.8.2
Homebrew Version: 0.9.3
PHP Version in use: homebrew-php stable
XCode Version: 4.5.1

gcc -v:

Using built-in specs.
Target: i686-apple-darwin11
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.1167/src/configure --disable-checking --enable-werror --prefix=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.1167/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)

php -v

PHP 5.4.7 (cli) (built: Oct 8 2012 14:27:25)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
with Xdebug v2.2.1, Copyright (c) 2002-2012, by Derick Rethans

Install command:
brew install -V /usr/local/Library/Taps/josegonzalez-php/Formula/php54.rb
--with-fpm --with-mysql --with-intl

output gist https://gist.github.com/3852392

$ brew doctor
Your system is raring to brew.

I'm not familiar with Ruby, but it seems to me that this linehttps://github.com/josegonzalez/homebrew-php/blob/master/Formula/php54.rb#L225expects both mysql and mariadb as options:

if build.include?('with-mysql') && build.include?('with-mariadb')


Reply to this email directly or view it on GitHubhttps://github.com/josegonzalez/homebrew-php/issues/320.

Contributor

josegonzalez commented Oct 8, 2012

Fuck my bad. I'll fix it as soon as I get into the office!
On Oct 8, 2012 9:20 AM, "Peter Kruithof" notifications@github.com wrote:

Just did a brew update && brew upgrade, and noticed PHP does not have the
mysql driver anymore, even though I originally installed PHP with the
--with-mysql option.

php -i output:

asdsad

I tried to uninstall and install again, but no difference.

OS X Version: 10.8.2
Homebrew Version: 0.9.3
PHP Version in use: homebrew-php stable
XCode Version: 4.5.1

gcc -v:

Using built-in specs.
Target: i686-apple-darwin11
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.1167/src/configure --disable-checking --enable-werror --prefix=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.1167/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)

php -v

PHP 5.4.7 (cli) (built: Oct 8 2012 14:27:25)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
with Xdebug v2.2.1, Copyright (c) 2002-2012, by Derick Rethans

Install command:
brew install -V /usr/local/Library/Taps/josegonzalez-php/Formula/php54.rb
--with-fpm --with-mysql --with-intl

output gist https://gist.github.com/3852392

$ brew doctor
Your system is raring to brew.

I'm not familiar with Ruby, but it seems to me that this linehttps://github.com/josegonzalez/homebrew-php/blob/master/Formula/php54.rb#L225expects both mysql and mariadb as options:

if build.include?('with-mysql') && build.include?('with-mariadb')


Reply to this email directly or view it on GitHubhttps://github.com/josegonzalez/homebrew-php/issues/320.

@josegonzalez

This comment has been minimized.

Show comment Hide comment
@josegonzalez

josegonzalez Oct 8, 2012

Contributor

FIXED!

Contributor

josegonzalez commented Oct 8, 2012

FIXED!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.