PECL and dio

How i loathe PECL – At first, simple plain straight out hate. after 12 hours, it was loathe (with some time to sleep hahaha)

So, the aim was to install the dio extension to php 5.2 – PHP installed via repo.
Base server is a CentOS x64 server, PHP installed from the utter ramblings repo (thanks Jason!)

So, how i did it:

I started with “pecl install dio” – that ended in tears

[[email protected] /]# pecl install dio
Failed to download pecl/dio within preferred state “stable”, latest release is version 0.0.4RC4, stability “beta”, use “channel://” to install
install failed
[[email protected] /]#

Had to go a very round about way
Here is where we put a disclamer.

!!!!!!This worked for me, it may not to you. I hold no repsonsility if it or you bork the system!!!!!!

  1. Download dio and extract the files to a folder. have the main folder and the package.xml file outside of it
  2. cd into the directory and run:
    /usr/bin/phpize ./configure –enable-dio –with-php-config=/usr/local/php
  3. now run:
    make test
    make install
  4. now run:
    vim /etc/php.d/dio.ini
    And place just these 2 lines in it
    ; Enable dio extension module
  5. restart apache (/etc/init.d/httpd restart)

Should be good as gold, well, it worked for me!

Hope this helps someone 🙂

oh, btw! Merry Christmas, and Happy New Year to everyone 🙂

Leave a Reply

Your email address will not be published.

Blue Captcha Image