Search code examples
phppearphpdoc

Installing phpDocumentor via PEAR, "command not found"


I'm having trobule installing phpDocumentor via PEAR on a CentOS machine and I don't even know if this is pear or php related.

Here are the commands that I executed and their output:

# pear -v install phpdoc/phpDocumentor
## http://pastebin.com/2ijRG9KW

# /usr/local/bin/phpdoc
-bash: /usr/local/bin/phpdoc: No such file or directory

# tree -a -h /usr/local/lib/php/phpDocumentor/
## http://pastebin.com/NjynYKPL

I've included the tree command because I'm thinking something is not OK there...

At first glance, is this a PEAR or phpDocumentor issue?

Edit

Tried

# whereis phpdoc
phpdoc: /usr/local/bin/phpdoc

But

# cd /usr/local/bin
# ls -l | grep -i phpdoc
lrwxrwxrwx.  1 root root       48 Nov 23 21:46 phpdoc ->         /usr/local/lib/php/phpDocumentor2/bin/phpdoc.php
-rwxr-xr-x.  1 root root     1039 Nov 24 21:31 .tmpphpdoc*

Guess what...

-bash: cd: /usr/local/lib/php/phpDocumentor2: No such file or directory

But there is a phpDocumentor folder (instead of phpDocumentor2) whose tree is available on this pastebin


Solution

  • In the same folder where I've executed pear install I found an error_log file:

    [23-Nov-2013 22:27:54 UTC] PHP Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 8192 bytes) in /usr/local/lib/php/PEAR/Installer.php on line 580

    Gotcha.