Discussion:
MDB2 Driver install
Paul Scott
2006-08-28 05:58:17 UTC
Permalink
Some of my clients have reported the following error that I cannot
replicate...

pear install --alldeps
MDB2_Driver_mysql
pear/MDB2_Driver_mysql requires PHP extension "mysql"
No valid packages found
install failed

Although they definitely have MySQL and the Client code installed, as it
works with PEAR::DB and other applications.

Is there something that I may be doing wrong? Is there a pear installer
error?

Any suggestions as to what to tell them while I try and figure this out?

--Paul
Paul Scott
2006-08-28 06:04:48 UTC
Permalink
Post by Paul Scott
Some of my clients have reported the following error that I cannot
replicate...
It looks as though there *may* have been a problem with the PEAR package
that was installed with Ubuntu Dapper this week. They have just released
an updated package that may fix it. Will keep you all posted.

--Paul
Lukas Kahwe Smith
2006-08-28 06:08:29 UTC
Permalink
Post by Paul Scott
Post by Paul Scott
Some of my clients have reported the following error that I cannot
replicate...
It looks as though there *may* have been a problem with the PEAR package
that was installed with Ubuntu Dapper this week. They have just released
an updated package that may fix it. Will keep you all posted.
Also keep in mind that they may be using a different php.ini on the CLI
than in mod_php.

regards,
Lukas
--
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Paul Scott
2006-08-28 06:14:09 UTC
Permalink
Post by Lukas Kahwe Smith
Also keep in mind that they may be using a different php.ini on the CLI
than in mod_php.
Duh! (slaps forehead) of course! Why didn't I think of that?!

Thanks

--Paul
Matheus Martins
2006-09-04 17:11:41 UTC
Permalink
problem:
pear install --alldeps
MDB2_Driver_mysql
pear/MDB2_Driver_mysql requires PHP extension "mysql"
No valid packages found
install failed

"Although they definitely have MySQL and the Client code installed, as it
works with PEAR::DB and other applications."

try:
pear install --nodeps MDB2_Driver_mysql-xxx.tgz

--nodeps: ignore dependencies, install anyway
--
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Paul Scott
2006-09-04 18:04:43 UTC
Permalink
Post by Matheus Martins
"Although they definitely have MySQL and the Client code installed, as it
works with PEAR::DB and other applications."
Make sure that the cli version of your php.ini has the mysql extension
enabled in it.

extension=mysql.so or dll depending....

--Paul
Raphaël Gertz
2006-09-04 18:08:28 UTC
Permalink
Post by Paul Scott
Post by Matheus Martins
"Although they definitely have MySQL and the Client code installed, as it
works with PEAR::DB and other applications."
Make sure that the cli version of your php.ini has the mysql extension
enabled in it.
extension=mysql.so or dll depending....
--Paul
shouldn't that be a warning that the pear module will not works ?
(the user will see it with a no such function... error later)
Justin Patrin
2006-09-04 18:17:13 UTC
Permalink
Post by Raphaël Gertz
Post by Paul Scott
Post by Matheus Martins
"Although they definitely have MySQL and the Client code installed, as it
works with PEAR::DB and other applications."
Make sure that the cli version of your php.ini has the mysql extension
enabled in it.
extension=mysql.so or dll depending....
--Paul
shouldn't that be a warning that the pear module will not works ?
(the user will see it with a no such function... error later)
It does. However, it is quite often the case that the CLI and CGI/SAPI
versions of php have different extensions installed/enabled so the one
you use to run the "pear" command may not be the same as the one that
runs your website.
--
Justin Patrin
--
PEAR General Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Loading...