LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   MySQL 4 on Fedora can't install php-mysql (https://www.linuxquestions.org/questions/linux-software-2/mysql-4-on-fedora-cant-install-php-mysql-198757/)

kennyg 06-28-2004 03:07 PM

MySQL 4 on Fedora can't install php-mysql
 
I am trying to upgrade to mysql 4.0.20 on Fedora Core 2. I have followed the tips located here at fedoranews.org (sorry can't post the url but google - fedora mysql 4)

The problem is I cannot get a good build from source for php from php-4.3.6-5.src.rpm which will generate a good php-mysql-4.3.6-5.i386.rpm. The ones that I have tried to install always give me the error :
error: Failed dependencies:
libmysqlclient.so.10 is needed by php-mysql-4.3.6-5

php 4.3.6.5 is installed so the dependencies should be okay.

Does anyone know how to get php-mysql installed correctly.

Thanks in advance.
Ken

david_ross 06-28-2004 04:17 PM

Welcome to LQ.

Is libmysqlclient.so.10 on your system?

kennyg 06-29-2004 12:08 PM

Nop - removed when uninstalled mysql 3. And there doesn't seem to be an easy way to get it back. I did try installing php-mysql rpm with --nodeps but don't know if it is working yet - still checking on that.

LQ looks like a very active place - great!

Cheers!
Ken

david_ross 06-29-2004 01:39 PM

You will need to have mysql installed before you install php-mysql. That is only the php interface to mysql. It does not include the client or server.

kennyg 06-29-2004 04:11 PM

Yes - correct mysql (all components) are installed prior to installing php-mysql. My installation of php-mysql with nodeps didn't work.

So mysql 4 database is there but cannot access with php.

Any more ideas?

Thanks in advance.

Cheers!
Ken

kennyg 07-02-2004 05:39 PM

I finely got it working. In summary for those who are having the same problem.
You will have trouble upgrading by just downloading the mysql rpms and installing them. Redhat currently does not support mysql 4 on RH or Fedora, I have had that problem.

You will have to rebuild new sources for mysql and php. The problem is that you will dependencies errors when trying to install mod_ath_mysql. It will be looking for libmysqlclient.so.10.

So, follow the instructions here to get mysql 4 on RH / FC.
http://fedoranews.org/contributors/tony_smith/mysql/

They do work - but be patient - it's time consuming. In summary:
* build mysql from source rpms,
* uninstall mysql 3
* install mysql 4
* uninstall the found dependencies, perl-DBD, mod_auth_mysql, php-mysql.
* build the sources for perl-DBD, php,
* install them,
* install mod_auth_mysql (now it will install correctly since the dependency was related to php-mysql.

You should have a good mysql 4 on RH /FC

Cheers!
Ken

michaelbhahn 09-17-2004 05:25 PM

I have followed Tony's instructions to a "T" but I am getting strange errors when I go to rebuild PHP and Mod-Auth. I was hoping maybe someone could help.

Installing php-4.3.4-11.src.rpm
cat: /usr/include/httpd/.mmn: No such file or directory
error: Failed build dependencies:
aspell-devel >= 0.50.0 is needed by php-4.3.4-11
httpd-devel >= 2.0.46-1 is needed by php-4.3.4-11
pcre-devel is needed by php-4.3.4-11
libc-client-devel is needed by php-4.3.4-11
postgresql-devel is needed by php-4.3.4-11
unixODBC-devel is needed by php-4.3.4-11
net-snmp-devel is needed by php-4.3.4-11
elfutils-devel is needed by php-4.3.4-11

Perl rebuilt just fine, but as you can see PHP wants all these development packages and both mod_auth and PHP are looking for this .mmn file under Apache.

-Mike

michaelbhahn 09-17-2004 06:12 PM

ok so I went and installed all the devel packages with yum and mod_auth built ok but php won't.

It always hangs here.

/usr/src/redhat/BUILD/php-4.3.4/ext/curl/curl.c: In function `curl_free_post':
/usr/src/redhat/BUILD/php-4.3.4/ext/curl/curl.c:563: warning: passing arg 1 of `curl_formfree' from incompatible pointer type
/usr/src/redhat/BUILD/php-4.3.4/ext/curl/curl.c: In function `alloc_curl_handle':
/usr/src/redhat/BUILD/php-4.3.4/ext/curl/curl.c:603: error: invalid application of `sizeof' to an incomplete type
/usr/src/redhat/BUILD/php-4.3.4/ext/curl/curl.c: In function `zif_curl_setopt':
/usr/src/redhat/BUILD/php-4.3.4/ext/curl/curl.c:838: error: duplicate case value/usr/src/redhat/BUILD/php-4.3.4/ext/curl/curl.c:695: error: previously used here/usr/src/redhat/BUILD/php-4.3.4/ext/curl/curl.c:883: warning: passing arg 1 of `curl_formadd' from incompatible pointer type
/usr/src/redhat/BUILD/php-4.3.4/ext/curl/curl.c:883: warning: passing arg 2 of `curl_formadd' from incompatible pointer type
/usr/src/redhat/BUILD/php-4.3.4/ext/curl/curl.c:891: warning: passing arg 1 of `curl_formadd' from incompatible pointer type
/usr/src/redhat/BUILD/php-4.3.4/ext/curl/curl.c:891: warning: passing arg 2 of `curl_formadd' from incompatible pointer type
make: *** [ext/curl/curl.lo] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.96898 (%build)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.96898 (%build)

I'm searching the forums now to see if there is an answer.
Very confusing and frustrating

-Mike

michaelbhahn 09-21-2004 07:54 PM

OK, so im a NooB,

I was trying to rebuild an older version of PHP ( 4.3.4 rather then 4.3.8 )

finally got PHP to build from source, installed everything and so far so good.

I should have a working AMP with MySQL 4.X

-Mike


All times are GMT -5. The time now is 09:19 AM.