PEAR install quick howto on Debian Lenny: Image_Graph

Tested on Debian Lenny.

Time elapsed before a working script < 10 minutes ;-)

Install PEAR installer:

# apt-get install php-pear

First, type:

pear -h

to get help.

On root shell type:

# pear install --alldeps Image_Graph

Install failed with error:

Failed to download pear/Image_Graph within preferred state “stable”, latest release is version 0.7.2, stability “alpha”, use “channel://pear.php.net/Image_Graph-0.7.2″ to install

Retype as:

# pear install --alldeps Image_Graph-0.7.2

Repeat for other alpha dependencies the same procedure, eg:

pear install --alldeps Numbers_Words-0.15.0

At last, you got:

Nothing to install

Now, you can find all installed packages on /usr/share/php.

ImageGraph is installed on /usr/share/php/Image/Graph.php.

You have to include it on your PHPs.

You can follow the Ian’s howto on:

http://www.phpbuilder.com/columns/ian_gilfillan20060503.php3

To start using PEAR Image_Graph.

Here the result using Ian’s code on my Linux box:

Image_Graph test, using Ian code

Image_Graph test, using Ian code

Additional info:

Hosting providers (eg. HostMonster) sometimes furnish simplified PEAR installation via CPanel. So, you can use local PEAR installation for developement, and online installation for production use.

Remember:

  • To check differences between local and production versions
  • To change include path! (say no to white screen!)

See also:

2 Responses to “PEAR install quick howto on Debian Lenny: Image_Graph”


  1. 1 senu October 23, 2009 at 11:06 am

    hi can you tell me how to install pear on local hard disk i use debian etch, thx b4 :)

  2. 2 chirale October 23, 2009 at 4:56 pm

    Take a look to synaptic / apt, package is php-pear:
    http://packages.debian.org/etch/php-pear

    You can easily install it with:
    sudo apt-get install php-pear

    or using Synaptic frontend.

    APT howto:
    http://www.debian.org/doc/manuals/apt-howto/ch-apt-get.en.html

    Thanks for visiting!


Leave a Reply




IE6: Rust in Peace

Blog Stats

  • 102,540 hits
My Bookshelf

Texts double licensed under Creative Commons Attribution - Share Alike license and GNU Free Documentation License. Examples may contain software licensed under GNU General Public License. Images and comments texts aren't necessarily licensed under these terms.