Although I followed the instruction to install phpDocumentor, Command line doesn't seem to respond to phpdoc
Given error: Command 'phpdoc' not found, did you mean: command 'phploc' from deb phploc command 'phpdox' from deb phpdox Try: sudo apt install
I followed these steps to install phpdoc and it seemed to work
pear channel-discover pear.phpdoc.org
pear install phpdoc/phpDocumentor
When the installation completed I tried to run phpdoc -h and it did not work.
Using: 7.2.16
OS: Ubuntu 18.04.2 LTS
I appreciate any attempt to help.
Check directories in your your path with
echo $PATH
phpdoc should be in /usr/bin. Check it with
ls -l /usr/bin/php*
If phpdoc is there, add exec perms with
chmod +x /usr/bin/phpdoc
But most likely he is not in the path, so go for a search
find . -name testfile.txt
When you have identified where phpdoc is, you must either add the folder where it is located to the PATH, or create a symbolic link (symln :
to this file in a directory of the PATH.
For PATH extension, do :
export PATH=$PATH:/my/custom/path
For a symlink, cd to a directory in your PATH. After that do
ln -s /my/custom/path/phpdoc
A good custom binary directory is /usr/local/bin.
You have to perform all this task as root or with sudo.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With