Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-21-2006, 04:39 PM   #1
LQ Newbie
Registered: Aug 2004
Posts: 9

Rep: Reputation: 0
PEAR installation problem (Text_CAPTCHA)

Hopefully someone can shed some light on this for me, I've tried to incorporate the history of what I've tried.

I want to install a PEAR package - Text_CAPTCHA which has 2 dependencies: Text_Password and Image_Text.

'#pear install Text_Password' installs successfully. However, '#pear install Image_Text' gives the following error:

[root@SYDNEY-BEL php]# pear install Image_Text
Failed to download pear/Image_Text within preferred state "stable", latest release is version 0.5.2beta2, stability "beta", use "channel://" to install
Cannot initialize 'Image_Text', invalid or missing package file
Package "Image_Text" is not valid
install failed
[root@SYDNEY-BEL php]#
So I tried '#pear install channel://' which gave me the following error:

[root@SYDNEY-BEL php]# pear install channel://
pear/Image_Text requires PHP extension "gd" No valid packages found install failed
[root@SYDNEY-BEL php]#
but according to 'rpm -qa | grep gd', gd-2.0.33-2 is already installed (plus other gd* packages). Then I tried '#pear install "http: //" ':

[root@SYDNEY-BEL php]# pear install "http: //"
downloading Image_Text-0.5.2beta2.tgz ... Starting to download Image_Text-0.5.2beta2.tgz (12,603 bytes)
.....done: 12,603 bytes
The extension 'zlib' couldn't be found.
Please make sure your version of PHP was built with 'zlib' support.
[root@SYDNEY-BEL php]#
but my PHP5 config line is:

# ./configure 
The location of my file is '/usr/lib/ruby/1.8/i386-linux' and my zlib.h file is in '/usr/include' but when i set --with-zlib to either of these directories, I got errors. Also, on a bug thread on, it said --with-zlib should be set to /usr.

I've already googled this and searched the pear and php site with no luck. If anyone requires more info, let me know and I'll try and help. Any suggestions how to fix this would be much appreciated.


Last edited by stephenb; 05-21-2006 at 04:40 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mandrake 10.1 Apache2 with PHp and pear problem Jediman Linux - Software 10 04-19-2005 04:35 PM
PEAR problem Lars79 Programming 3 01-09-2005 05:15 PM
php pear problem craddy Linux - Software 4 11-09-2004 09:25 PM
pear problem budyoke Linux - Software 1 07-29-2004 01:02 PM
Red Hat installation gone Pear Shaped troopship 7 Linux - General 2 10-10-2003 09:04 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:00 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration