Synology-Forum.nl
OS Specifieke ondersteuning => Linux => Topic gestart door: Black Storck op 18 november 2015, 13:26:00
-
Ik probeer phpDocumentor via PEAR (PHP PEAR; Synology inc.; 1.9.5-0016) te installeren op een Synology DS212j. De installatie verloopt zonder foutmeldingen.
Wanneer ik als root ssh en phpdoc wil gebruiken krijg ik de foutmelding:
> phpdoc
-ash: phpdoc: not found
Ik krijg het niet opgelost, zoaken met Google helpt me ook niet verder. Hopelijk kan iemand hier mij helpen? Wordt enorm gewaardeerd!!
Hieronder de pear channel-info and pear package-info zoals geinstalleerd.
> pear channel-info phpdoc:
Channel pear.phpdoc.org Information:
====================================
Name and Server pear.phpdoc.org
Alias phpdoc
Summary phpDocumentor channel
Validation Package Name PEAR_Validate
Validation Package default
Version
Server Capabilities
===================
Type Version/REST type Function Name/REST base
rest REST1.0 http://pear.phpdoc.org/rest/
rest REST1.1 http://pear.phpdoc.org/rest/
rest REST1.2 http://pear.phpdoc.org/rest/
rest REST1.3 http://pear.phpdoc.org/rest/
> pear info phpdoc/phpDocumentor
About pear.phpdoc.org/phpDocumentor-2.8.5
=========================================
Release Type PEAR-style PHP-based Package
Name phpDocumentor
Channel pear.phpdoc.org
Summary PHP 5.3 compatible API Documentation generator
aimed at projects of all sizes and Continuous
Integration
Description phpDocumentor is a Documentation Generation
Application (DGA) for use with PHP applications.
It is capable of transforming the comments in
your source code into a full API reference
document.
phpDocumentor is build to be PHP 5.3 compatible,
fast, having a low memory consumption and easily
integratable into Continuous Integration.
Maintainers Mike van Riel <mike.vanriel@naenius.com> (lead)
Chuck Burgess <ashnazg@php.net> (lead)
Release Date 2015-07-28 18:40:43
Release Version 2.8.5 (stable)
API Version 2.8.5 (stable)
License MIT
(http://www.opensource.org/licenses/mit-license.html)
Release Notes Please see the CHANGELOG in the root of the
application for the latest changes
Required Dependencies PHP version 5.3.3
PEAR installer version 1.4.0 or newer
package.xml version 2.0
Last Modified 2015-11-18 11:46
Previous Installed - None -
Version
-
Misschien een open deur, maar de melding die je krijgt "phpdoc: not found", is meestal het geval dat het programma, in dit geval phpdoc, niet in het pad staat, dus $PATH.
-
Bedankt voor je snelle reactie!
Ik had $PATH al willen checken:
> echo $PATH
/sbin:/bin:/usr/sbin:/usr/bin:/usr/syno/sbin:/usr/syno/bin:/usr/local/sbin:/usr/local/bin
Maar er staat geen phpdoc bestand op de nas. Zoeken levert alleen het volgende op:
> find . -name "phpdoc"
./volume1/@appstore/PEAR/bin/phpdoc
./volume1/@appstore/PEAR/phpDocumentor/data/templates/new-black/css/phpdoc
./volume1/@appstore/PEAR/phpDocumentor/data/templates/zend/css/phpdoc
./volume1/@appstore/PEAR/phpDocumentor/docs/references/phpdoc
> find . -name "phpdoc.php" -type f
./volume1/@appstore/PEAR/phpDocumentor/bin/phpdoc.php
phpdoc blijkt een 'socket' in plaats van een file, tenminste dat blijkt uit de * achter phpdoc*. Maar hier stopt mijn Linux kennis :(
> ls ./volume1/@appstore/PEAR/bin -F
pear* peardev* phpdoc*
Uitvoeren van phpdoc.php geeft een dependency foutmelding:> php /volume1/@appstore/PEAR/phpDocumentor/bin/phpdoc.php
PHP Deprecated: phpDocumentor2 should be run from the phpdoc file, not phpdoc.php in /volume1/@appstore/PEAR/phpDocumentor/bin/phpdoc.php on line 13
Deprecated: phpDocumentor2 should be run from the phpdoc file, not phpdoc.php in /volume1/@appstore/PEAR/phpDocumentor/bin/phpdoc.php on line 13
PHP Warning: require_once(/volume1/@appstore/PEAR/phpDocumentor/bin/phpdoc): failed to open stream: No such file or directory in /volume1/@appstore/PEAR/phpDocumentor/bin/phpdoc.php on line 14
Warning: require_once(/volume1/@appstore/PEAR/phpDocumentor/bin/phpdoc): failed to open stream: No such file or directory in /volume1/@appstore/PEAR/phpDocumentor/bin/phpdoc.php on line 14
PHP Fatal error: require_once(): Failed opening required '/volume1/@appstore/PEAR/phpDocumentor/bin/phpdoc' (include_path='.:/var/packages/PEAR/target') in /volume1/@appstore/PEAR/phpDocumentor/bin/phpdoc.php on line 14
Fatal error: require_once(): Failed opening required '/volume1/@appstore/PEAR/phpDocumentor/bin/phpdoc' (include_path='.:/var/packages/PEAR/target') in /volume1/@appstore/PEAR/phpDocumentor/bin/phpdoc.php on line 14
Het lijkt met dat phpdoc hier hoort te staan: /volume1/@appstore/PEAR/phpDocumentor/bin/phpdoc
> ls -F ./volume1/@appstore/PEAR/phpDocumentor/bin
jsonlint phpdoc.php validate-json
En hier loop ik vast... Hopelijk heeft iemand tips?
-
Zet "/volume1/@appstore/PEAR/phpDocumentor/bin" in $PATH.
Dus: /sbin:/bin:/usr/sbin:/usr/bin:/usr/syno/sbin:/usr/syno/bin:/usr/local/sbin:/usr/local/bin:/volume1/@appstore/PEAR/phpDocumentor/bin
Reboot is misschien nodig.
PS: ik heb verder niets met phpDocumentor, reageer alleen op de meldingen ;)
-
Bedankt voor de suggestie. Ik heb $PATH aangepast maar helaas blijft de foutmelding hetzelfde:
> phpdoc
-ash: phpdoc: not found
> echo $PATH
/sbin:/bin:/usr/sbin:/usr/bin:/usr/syno/sbin:/usr/syno/bin:/usr/local/sbin:/usr/local/bin:/volume1/@appstore/PEAR/phpDocumentor/bin
-
Dan kan ik je alleen nog maar doorverwijzen naar phpDocumentor site zelf (http://www.phpdoc.org/docs/latest/getting-started/installing.html) echter, ik denk dat je die zelf al gevonden hebt ;)