Summary: | /usr/portage/eclass/php-pear.eclass: line 47: pear: command not found | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Analyzer <subscribe2k> |
Component: | Eclasses | Assignee: | PHP Bugs <php-bugs> |
Status: | RESOLVED INVALID | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Analyzer
2005-07-14 23:02:50 UTC
This can only happen with package.masked versions of PHP. Which version of PHP are you using? Same problem here: --8<-- heartofgold mod_php # emerge -avt PEAR-PEAR These are the packages that I would merge, in reverse order: Calculating dependencies ...done! [ebuild N ] dev-php/PEAR-PEAR-1.3.5 105 kB [ebuild N ] dev-php/PEAR-Console_Getopt-1.2 3 kB [ebuild N ] dev-php/PEAR-Archive_Tar-1.3.1 14 kB [ebuild N ] dev-php/PEAR-XML_RPC-1.3.1 0 kB Total size of downloads: 123 kB Do you want me to merge these packages? [Yes/No] >>> emerge (1 of 4) dev-php/PEAR-XML_RPC-1.3.1 to / >>> md5 files ;-) PEAR-XML_RPC-1.3.1.ebuild >>> md5 files ;-) PEAR-XML_RPC-1.3.2.ebuild >>> md5 files ;-) files/digest-PEAR-XML_RPC-1.3.1 >>> md5 files ;-) files/digest-PEAR-XML_RPC-1.3.2 >>> md5 src_uri ;-) XML_RPC-1.3.1.tgz >>> Unpacking source... >>> Unpacking XML_RPC-1.3.1.tgz to /var/tmp/portage/PEAR-XML_RPC-1.3.1/work tar: A lone zero block at 236 >>> Source unpacked. >>> Test phase [not enabled]: dev-php/PEAR-XML_RPC-1.3.1 >>> Install PEAR-XML_RPC-1.3.1 into /var/tmp/portage/PEAR-XML_RPC-1.3.1/image/ category dev-php /usr/portage/eclass/php-pear.eclass: line 47: pear: command not found !!! ERROR: dev-php/PEAR-XML_RPC-1.3.1 failed. !!! Function php-pear_src_install, Line 47, Exitcode 127 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. heartofgold mod_php # --8<-- as the current portage php5 stuff is simply horribly broken (e.g. regarding mysqli/mysql-4.1 support), I copied dev-php/mod_php/mod_php-5.0.4.ebuild and dev-php/php/php-5.0.4-r1.ebuild to /usr/local/portage/dev-php/{mod_php,php} and changed both to use php5-sapi-r3.eclass instead of -r2 (-r3 supports mysqli whereas -r2 does not). anyway, using the hardmasked 1.3.5-r1 of pear worked. btw, PEAR-PhpDocumentor fails to emerge because the memory_limit gets reached (8M). setting a higher limit in /etc/php/cli-php5/php.ini doesn't help, as it doesn't seem to being used by the /usr/bin/pear php, so I patched it: --8<-- heartofgold mod_php # rcsdiff -u /usr/bin/pear =================================================================== RCS file: /usr/bin/pear,v retrieving revision 1.1 diff -u -r1.1 /usr/bin/pear --- /usr/bin/pear 2005/07/15 08:28:03 1.1 +++ /usr/bin/pear 2005/07/15 08:28:28 @@ -25,4 +25,4 @@ fi fi -exec $PHP -C -q $INCARG -d output_buffering=1 $INCDIR/pearcmd.php "$@" +exec $PHP -c /etc/php/cli-php5/php.ini -C -q $INCARG -d output_buffering=1 $INCDIR/pearcmd.php "$@" heartofgold mod_php # --8<-- dev-php/PEAR-PEAR-1.3.5-r1 has to be used with the package.masked versions of PHP 5, closing. Wolfram, please open a separate issue for the memory limit issue. |