SMOLNET PORTAL home about changes

PEAR install quick howto on Debian Lenny: Image_Graph

Tested on Debian Lenny.

Time elapsed before a working script \< 10 minutes=> https://swp.com/wp-content/mu-plugins/wpcom-smileys/twemoji/2/72x72/1fpng 😉

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 2, stability “alpha”, use “channel://pear.php.net/Image_Graph-2” to install

Retype as:

pear install --alldeps Image_Graph-2


Repeat for other alpha dependencies the same procedure, eg:

pear install --alldeps Numbers_Words-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_gilfillanphp3 (http://www.phpbuilder.com)


To start using PEAR Image_Graph.

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

Image_Graph test, using Ian code (https://chirale.wordpress.com)


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.

HostMonster (http://www.hostmonster.com)


Remember:

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


See also:


*

https://web.archive.org/web/20081123000000*/http://www.phpbuilder.com/columns/ian_gilfillan20060503.php3 (https://web.archive.org)
<p>To start using PEAR Image_Graph.</p> <p>Here the result using Ian&#8217;s code on my Linux box:</p> <p><figure data-shortcode= (https://web.archive.org)
https://web.archive.org/web/20081123000000*/https://chirale.wordpress.com/2008/11/23/pear-install-quick-howto-on-debian-lenny-imagegraph/graphtest/ (https://web.archive.org)
https://web.archive.org/web/20081123000000*/http://www.hostmonster.com/ (https://web.archive.org)
https://web.archive.org/web/20081123000000*/http://pear.veggerby.dk/documentation/ (https://web.archive.org)
Response: 20 (Success), text/gemini
Original URLgemini://chirale.org/2008-11-23_232.gmi
Status Code20 (Success)
Content-Typetext/gemini; charset=utf-8