Mysql.so not found on a linux machine?

I found this problem on my new CentOs 64 bit machine. I think the solution i found for it will work both on 32 bit and 64 bit machines. The trick is to get latest mysql from repo and install all extensions you need separately and it will work fine.

First thing is to get the latest repository for php. The repository i found was listed on php.net itself so i think its best to use that everytime.

the first thing is that create a temp folder anywhere you like best place is

/usr/srcĀ  (CentOs path) this path can be different on different linux os.

now type these are 3 separate commands :
wget http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/ius-release-1-2.ius.el5.noarch.rpm

wget http://dl.iuscommunity.org/pub/ius/stable/Redhat/5/x86_64/epel-release-1-1.ius.el5.noarch.rpm

rpm -Uvh ius-release*.rpm epel-release*.rpm

Once you have done that a repository is automatically created on your linux machine to see whats in the repository

type:

yum list | grep -w \.ius\.

to install new php you have to first remove the previous version

type:

yum shell

remove php-gd php-cli php-odbc php-mbstring php-pdo php php-xml php-common php-ldap php-mysql php-imap

install php52-gd php52-cli php52-odbc php52-mbstring php52-pdo php52 php52-xml php52-common php52-ldap php52-mysql php52-imap

transaction solve

transaction run

NOTE: It is *very* important that you run ‘transaction solve’ to ensure all dependencies are being met with the new packages. Removing packages with unmet dependencies in Yum can lead to a nightmare of packages being removed.

thats it your new php has been refreshed and now mysql.so will be there.

Related posts:

  1. Nano command not working in linux?

6 Responses

[...] To install php from php.net repo you can use this article i wrote [...]

Hi from France! I have found your page on msn. Handy content! Sylvia D. Robbins x

02.28.10

The link for your site to stay in my webpage, because I appreciate your site very much.

02.28.10

In one moment in my search, I find your site, and always return for here because enjoy it.

02.28.10

Tons thanks for this striking details. It absolutely assisted me finished!

02.28.10

Thanks quest of the info, profoundly communicative post.

Leave Your Response

* Name, Email, Comment are Required