Re: PHPDocumentor shell script troubles
| From: | Greg Beaver | Date: | Thu, 18 Sep 2003 15:12:31 +0000 |
| Subject: | Re: PHPDocumentor shell script troubles | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-7900@lists.php.net to get a copy of this message | ||
Hi Dorgon,
Thanks for this catch - in the future, if you find a bug in phpDocumentor, please open a bug at the sourceforge page so that in case nobody is reading pear.general, we can still fix the bug.
Thanks,
Greg
Dorgon wrote:
Hi there, to anyone who's having trouble starting with PhpDocumentor: I've just noticed, that the shell script of PhpDocumentor installed in /usr/bin/phpdoc contains WINDOWS LINE BREAKS (\r\n). On my redhat linux the bash shell has troubles with the first line which speficies the interpreter for the shell script: !#/usr/bin/php \r\n - here the \r character caused the following errors: : bad interpreter: No such file or directory You should therefore simply convert the line breaks to unix with: dos2unix /usr/bin/phpdoc Additionally you should add the parameters -Cq to the interpreter line: #!/usr/bin/php -Cq this will cause PHP to be silent and not change the current directory to the shell script (/usr/bin). greethings, dorgon ----------------------------------------------------------------- arriving soon: a MVC-based WebApplication framework for PHP! http://phpdavinci.sf.net