help installing apd using pear installer

From: Tom Blumer (tom2_at_allstardirectories.com)
Date: 01/25/04


Date: 24 Jan 2004 19:23:16 -0800

I am trying to install the apd profiler on RedHat 7.2 with PHP 4.1.2
(i386)

First I had no /usr/bin/pear so I installed that by
# lynx -source http://go-pear.org/ | php
(no errors and I did get /usr/bin/pear)

I did not choose to install any of these packages during that install:
PEAR packages bundled with PHP: DB, Net_Socket, Net_SMTP, Mail,
XML_Parser, PHPUnit-0.6.2.

Then 'pear install apd' failed looking for phpize so I looked on
rpmfind.net for a version of the php-devel package matching my OS
(RedHat? 7.2) and PHP (4.1.2) versions.

Then I did an rpm install from the rpmfind.net ftp location.

rpm --install ftp://speakeasy.rpmfind.net/linux/redhat/updates/7.2/en/os/i386/php-devel-4.1.2-7.2.6.i386.rpm

This gave no output - and installed phpize in /usr/bin (not sure what
else it did).

After that the command (as root)
# pear install apd

just lists the usage and quits.

After inserting a few prints in the pear script I see that it is off
by one in its interpretation of where the command and options are
(strange!)

so to fix that I inserted an x on the command line, so make the script
understand where the install command and options are
That part worked and the script passes the correct $pkgfile to
PEAR/Installer.php install function but then dies with the following
message
[/usr/root]# pear x install apd
pear: Unable to open in read mode ''
apd: unable to unpack

any ideas?
-Tom



Relevant Pages

  • Re: devel/pear doesnt install (segfault)
    ... When I try to install pear from ports on my server, it spits out a whole bunch of messages like: ... PHP Deprecated: Assigning the return value of new by reference is ... Then I tried to install pear on my FreeBSD 8.2 desktop, it again printed all the "PHP Deprecated" messages, but it installed and I even could do "pear upgrade PEAR". ... When I reinstalled pear after this, it rebuilt textproc/php5-xml and asked me to deinstall/reinstall that port first which it didn't do before. ...
    (freebsd-questions)
  • Re: devel/pear doesnt install (segfault)
    ... When I try to install pear from ports on my server, it spits out a whole bunch of messages like: ... PHP Deprecated: Assigning the return value of new by reference is ... Then I tried to install pear on my FreeBSD 8.2 desktop, it again printed all the "PHP Deprecated" messages, but it installed and I even could do "pear upgrade PEAR". ...
    (freebsd-questions)
  • Problems installing php5-pear (zend_hash.c(678) : ht=0x8181f10 is already destroyed)
    ... I'm having problems getting pear installed with apache2, PHP5, mysql, ... Other php pages load fine. ... Is it better to install just PHP5 and then get PEAR ... php5-bz2-5.0.4_1 The bz2 shared extension for php ...
    (freebsd-questions)
  • Re: FreeBSD 5.2.1 port dependencies (PHP/PEAR)
    ... >> to install the PEAR objects. ... > PEAR needs a command line PHP binary to be able to run. ... is that the php4 package ...
    (freebsd-questions)
  • Re: PEAR on debian
    ... package (as root using 'pear install Package) it seems to install ok but ... The php include path is ... 'pear list' shows it as being installed. ...
    (Debian-User)