Re: AW: [PEAR-DOC] Testing the documentation
| From: | Greg Beaver | Date: | Fri, 01 Aug 2003 20:47:51 +0000 |
| Subject: | Re: AW: [PEAR-DOC] Testing the documentation | ||
| References: | 1 2 | Groups: | php.pear.doc |
| Request: | Send a blank email to pear-doc+get-1149@lists.php.net to get a copy of this message | ||
Hi Stephan,
I've been trying to get peardoc to compile in cygwin on Windows XP, with great difficulty. phpdoc will compile (note: not phpDocumentor, the phpdoc PHP documentation project) because they have fixed cygwin-related bugs. Unfortunately, nobody who developed peardoc uses cygwin, and so several fixes have not been applied.
One fix that I know of is a change in configure. Here I quote myself from a post to phpdoc:
-*-*-
I isolated the problem, and fixed it. Notice that it wasn't detecting PHP in the output below. Line 1320 of configure was the problem:
if test "yes" = `echo '<?php echo phpversion()>3?"yes":"no"; ?>' | $PHP -q`; then
Apprently, cygwin doesn't support piping fully, as this generates no output at all when I run it independently:
$echo '<?php echo phpversion()>3?"yes":"no"; ?>' | php -q
Owner@Chiara ~/peardoc
$
However, if I save the contents into a small file testphpver.php, and change line 1320 to:
if test "yes" =
$PHP -q testphpver.php; then
it works as expected and successfully configures.
-*-*-
The only other problem I had was I can't get either openjade or jade to compile, and the binary can't seem to detect the docbook stylesheets no matter what I do with them. If you have any experience with this end of things (or anyone does), I would appreciate it. As it stands, peardoc needs to check in with phpdoc to figure out how they fixed cygwin.
Greg
Stephan Schmidt wrote:
Hi,$ cd peardoc $ autoconf $ ./configure && makeI guess there's no way to make this work on my Win XP notebook, or is there? Stephan