Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Why Installing php and pecl so difficult in Debian?

598 views
Skip to first unread message

hce

unread,
Apr 10, 2008, 8:20:12 AM4/10/08
to
Hi,

I thought PHP is very common now days, but I found so difficult to
install it in debian. The apt-get install can't find any php, pecl,
php-xml packages.

So, I have to downloaded php5_5.2.0-8+etch10_all.deb,
php5-common_5.2.0-8+etch10_i386.deb and
php5-cgi_5.2.0-8+etch10_i386.deb manually and installed them by dkpg.
It installed php5-cgi, but on php binary in /usr/bin.

People helped me to find dh-make-php - Creates Debian source packages
for PHP PEAR and PECL extensions. Is it a right package for PHP5
extension?

How can I install all php extensions by using apt-get?

Thank you.

Jim


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Bob Cox

unread,
Apr 10, 2008, 9:30:32 AM4/10/08
to
On Thu, Apr 10, 2008 at 22:10:33 +1000, hce (webma...@gmail.com) wrote:

> Hi,
>
> I thought PHP is very common now days, but I found so difficult to
> install it in debian. The apt-get install can't find any php, pecl,
> php-xml packages.
>
> So, I have to downloaded php5_5.2.0-8+etch10_all.deb,
> php5-common_5.2.0-8+etch10_i386.deb and
> php5-cgi_5.2.0-8+etch10_i386.deb manually and installed them by dkpg.
> It installed php5-cgi, but on php binary in /usr/bin.
>
> People helped me to find dh-make-php - Creates Debian source packages
> for PHP PEAR and PECL extensions. Is it a right package for PHP5
> extension?
>
> How can I install all php extensions by using apt-get?

Don't know about pecl, but there are lots of php related packages:

bob@trantor:~$ aptitude search php | wc -l
250

including these specifically xml related:

bob@trantor:~$ aptitude search php | grep xml
p php-xml-htmlsax3 - SAX parser for HTML and other badly formed
p php-xml-parser - PHP PEAR module for parsing XML
p php-xml-rss - RSS parser
p php-xml-serializer - swiss-army knife for reading and writing X
p php-xml-util - a XML utility for php-pear
p php4-domxml - XMLv2 module for php4
p php5-xmlrpc - XML-RPC module for php5
p phpgroupware-xmlrpc - phpGroupWare XMLRPC module

An apt-cache search would produce the same results presumably.

--
Bob Cox. Stoke Gifford, near Bristol, UK.

signature.asc

Dave Sherohman

unread,
Apr 10, 2008, 12:20:11 PM4/10/08
to
On Thu, Apr 10, 2008 at 10:10:33PM +1000, hce wrote:
> I thought PHP is very common now days, but I found so difficult to
> install it in debian. The apt-get install can't find any php, pecl,
> php-xml packages.
>
> So, I have to downloaded php5_5.2.0-8+etch10_all.deb,
> php5-common_5.2.0-8+etch10_i386.deb and
> php5-cgi_5.2.0-8+etch10_i386.deb manually and installed them by dkpg.
> It installed php5-cgi, but on php binary in /usr/bin.
>
> People helped me to find dh-make-php - Creates Debian source packages
> for PHP PEAR and PECL extensions. Is it a right package for PHP5
> extension?
>
> How can I install all php extensions by using apt-get?

The package names all include the version of PHP. You can't "apt-get
install php", true, but you *can* "apt-get install php5" or "apt-get
install php4".

As others have mentioned, you may also want to try "apt-cache search",
although, admittedly, the sheer bulk of packages mentioning php
("apt-cache search php" returns 408 results) could make this a more
time-consuming route than would be ideal.

--
News aggregation meets world domination. Can you see the fnews?
http://seethefnews.com/

Rico Secada

unread,
Apr 10, 2008, 2:10:14 PM4/10/08
to
On Thu, 10 Apr 2008 22:10:33 +1000
hce <webma...@gmail.com> wrote:

> Hi,
>
> I thought PHP is very common now days, but I found so difficult to
> install it in debian. The apt-get install can't find any php, pecl,
> php-xml packages.
>
> So, I have to downloaded php5_5.2.0-8+etch10_all.deb,
> php5-common_5.2.0-8+etch10_i386.deb and
> php5-cgi_5.2.0-8+etch10_i386.deb manually and installed them by dkpg.
> It installed php5-cgi, but on php binary in /usr/bin.
>
> People helped me to find dh-make-php - Creates Debian source packages
> for PHP PEAR and PECL extensions. Is it a right package for PHP5
> extension?
>
> How can I install all php extensions by using apt-get?

You have to know what specific package you need. PHP is supplied as
package name "php4" or "php5".

# apt-get install php5

Would do the job.

Search for the packages you need:

# apt-cache search php | less

hce

unread,
Apr 11, 2008, 7:10:08 AM4/11/08
to
On 4/11/08, Rico Secada <cool...@it.dk> wrote:
> On Thu, 10 Apr 2008 22:10:33 +1000
>
> hce <webma...@gmail.com> wrote:
>
>
> > Hi,
> >
> > I thought PHP is very common now days, but I found so difficult to
> > install it in debian. The apt-get install can't find any php, pecl,
> > php-xml packages.
> >
> > So, I have to downloaded php5_5.2.0-8+etch10_all.deb,
> > php5-common_5.2.0-8+etch10_i386.deb and
> > php5-cgi_5.2.0-8+etch10_i386.deb manually and installed them by dkpg.
> > It installed php5-cgi, but on php binary in /usr/bin.
> >
> > People helped me to find dh-make-php - Creates Debian source packages
> > for PHP PEAR and PECL extensions. Is it a right package for PHP5
> > extension?
> >
> > How can I install all php extensions by using apt-get?
>
>
> You have to know what specific package you need. PHP is supplied as
> package name "php4" or "php5".
>
> # apt-get install php5

I've already installed php5. But could not find pecl.

> Would do the job.
>
> Search for the packages you need:
>
> # apt-cache search php | less

Yes, I did search pecl but confused by following results:

$ apt-cache search pecl


dh-make-php - Creates Debian source packages for PHP PEAR and PECL extensions

php-pear - PEAR - PHP Extension and Application Repository
php4-imagick - ImageMagick module for php4
php5-imagick - ImageMagick module for php5

And it was my question whether the dh-make-php is the right package
for PHP PECL package?

Francois Carpentier

unread,
Dec 7, 2014, 1:20:04 PM12/7/14
to
Jim, you might be interested in
https://wiki.debian.org/ReleaseGoals/pkg-php-tools

pkg-php-tools was introduced in Debian wheezy. It considerably eases the
building of PEAR packages.


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/5484958E...@ubertus.com
0 new messages