LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-28-2004, 02:07 PM   #1
kennyg
LQ Newbie
 
Registered: Apr 2004
Location: Toronto Ontario Canada
Posts: 4

Rep: Reputation: 0
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
 
Old 06-28-2004, 03:17 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Welcome to LQ.

Is libmysqlclient.so.10 on your system?
 
Old 06-29-2004, 11:08 AM   #3
kennyg
LQ Newbie
 
Registered: Apr 2004
Location: Toronto Ontario Canada
Posts: 4

Original Poster
Rep: Reputation: 0
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
 
Old 06-29-2004, 12:39 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
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.
 
Old 06-29-2004, 03:11 PM   #5
kennyg
LQ Newbie
 
Registered: Apr 2004
Location: Toronto Ontario Canada
Posts: 4

Original Poster
Rep: Reputation: 0
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
 
Old 07-02-2004, 04:39 PM   #6
kennyg
LQ Newbie
 
Registered: Apr 2004
Location: Toronto Ontario Canada
Posts: 4

Original Poster
Rep: Reputation: 0
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
 
Old 09-17-2004, 04:25 PM   #7
michaelbhahn
LQ Newbie
 
Registered: Jun 2004
Location: SoCal
Distribution: FDC 2
Posts: 22

Rep: Reputation: 15
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
 
Old 09-17-2004, 05:12 PM   #8
michaelbhahn
LQ Newbie
 
Registered: Jun 2004
Location: SoCal
Distribution: FDC 2
Posts: 22

Rep: Reputation: 15
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
 
Old 09-21-2004, 06:54 PM   #9
michaelbhahn
LQ Newbie
 
Registered: Jun 2004
Location: SoCal
Distribution: FDC 2
Posts: 22

Rep: Reputation: 15
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
 
  


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
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. Dannux Linux - Software 3 03-24-2006 08:44 AM
mysql-server4.1 and mod php-mysql conflig kernelvn *BSD 0 06-18-2005 11:52 AM
Fedora Core 3, MySql Server, mysql started mysql ended OkiTek Fedora 30 01-28-2005 09:15 AM
php4 mysql, installation, php-pages with mysql info stay empty dnla Linux - Software 2 03-14-2004 02:54 PM
PHP is not talking to Mysql in Fedora mahugl Linux - Software 4 02-03-2004 03:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:55 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