Jump to content

Recommended Posts

Currently I have PHP 5.1.6 installed on CentOs 4.4, and I am looking for an easy way to install the following extensions:

php_gd2.dll
php_mcrypt.dll
php_mssql.dll
php_json.dll
libpdf_php.dll

Can I use yum or update2date? Thanks for the help.
Link to comment
https://forums.phpfreaks.com/topic/32080-how-to-install-extensions-centos/
Share on other sites

Your will need to recompile PHP in order to enable those extensions, example for the gd library:

add the --with-gd option when compiling PHP.

For the others you will do the same/something similar. Go to php.net for more info.
This is absolutely insane, I never compiled. Reading over the instructions on php.net made my head spin. I simply did a update2date command and it did everything for me, there must be an easier way to install some extensions.
This is insane, I download mcrypt, and extracted it. I cant figure out how the heck to get it installed into php though. There are a dozens of files, such as mkinstalldirs, Makefile.in, Makefile.am, install-sh, configure, config.guess, and a whole bunch more. Does anybody know how to compile this thing?

In windows its easy, simply drop the dll in the extensions directory and add the extension to your php.ini. Damn linux, its nice, but often times so cryptic and hard to use, honestly shouldnt be this hard.
if your using centOS you can do it via 'yum'.

Have you used this before?  Makes life very simple...
First you neet to run something like: rpm --import /usr/share/rhn/RPM-GPG-KEY* in a terminal as root.  (THIS IS NOT THE CORRECT ONE!!).
Ones this is working just login in as root any type 'yum search php-whatever' or 'yum search whatever you wish to install' then find the one you like from the list produced.  'yum install whateveryoufound' . . . . .
Much simpler!!
  • 2 weeks later...
I have learned much:

untar the thing
run the following:

./configure
make
make install

Most of time you get horrible warnings and errors in ./configure saying you are missing dependent packages, its a real pain in the butt, just cross your fingures and hope for the best. Nobody ever said Linux was eaiser to use then windows.
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.