Page MenuHomeDevCentral

Install pdepend, phpcpd, phpcs, phploc on Ysul
Closed, DuplicatePublic

Event Timeline

Testing a new build file skipping documentation for rNOTIF Continous integration and delivery purposes:

Ysul
$ ant phabricator-build
BUILD FAILED
/usr/home/dereckson/dev/nasqueron/notifications/repo/build.xml:47: 
The following error occurred while executing this line:
/usr/home/dereckson/dev/nasqueron/notifications/repo/build.xml:141: Execute failed: java.io.IOException: Cannot run program "pdepend": error=2, No such file or directory
The following error occurred while executing this line:
/usr/home/dereckson/dev/nasqueron/notifications/repo/build.xml:223: Execute failed: java.io.IOException: Cannot run program "phpcpd": error=2, No such file or directory
The following error occurred while executing this line:
/usr/home/dereckson/dev/nasqueron/notifications/repo/build.xml:196: Execute failed: java.io.IOException: Cannot run program "phpcs": error=2, No such file or directory
The following error occurred while executing this line:
/usr/home/dereckson/dev/nasqueron/notifications/repo/build.xml:124: Execute failed: java.io.IOException: Cannot run program "phploc": error=2, No such file or directory

Through packages

Sep 2 11:31:34 ysul pkg: pear-PHP_CodeSniffer-2.6.2 installed
Sep 2 11:32:44 ysul pkg: pear-SebastianBergmann_PHPLOC-2.0.3 installed
Sep 2 11:33:47 ysul pkg: pear-SebastianBergmann_PHPCPD-1.4.0 installed

Dependencies for phploc:

Sep 2 11:32:37 ysul pkg: pear-channel-theseer-20120501_1 installed
Sep 2 11:32:38 ysul pkg: pear-Symfony_Component_Finder-2.3.4 installed
Sep 2 11:32:40 ysul pkg: pear-TheSeer_fDOMDocument-1.4.3 installed
Sep 2 11:32:40 ysul pkg: pear-SebastianBergmann_Version-1.0.1 installed
Sep 2 11:32:41 ysul pkg: pear-SebastianBergmann_FinderFacade-1.1.0 installed
Sep 2 11:32:42 ysul pkg: pear-Symfony_Component_Console-2.4.4 installed
Sep 2 11:32:43 ysul pkg: pear-SebastianBergmann_Git-1.2.0 installed

Dependencies for phpcpd:

Sep 2 11:33:41 ysul pkg: pear-channel-ezc-20060124 installed
Sep 2 11:33:44 ysul pkg: pear-ezc_Base-1.8 installed
Sep 2 11:33:46 ysul pkg: pear-ezc_ConsoleTools-1.6.1 installed

pdepend

Also installed:

Sep 2 11:29:43 ysul pkg: pear-channel-pdepend-20100520 installed

This one is required by devel/pear-pdepend-staticReflection, but we could add a pear-pdepend-pdepend port now.

phpcs is up to date but the Sebastien Bergmann packages aren't really maintained to an usable version:

Ysul
$ phpcpd 
PHP Deprecated:  ini_set(): Use of mbstring.internal_encoding is deprecated in /usr/local/bin/phpcpd on line 47

Deprecated: ini_set(): Use of mbstring.internal_encoding is deprecated in /usr/local/bin/phpcpd on line 47
phpcpd 1.4.0 by Sebastian Bergmann.

$ shell docker evil_franklin phpcpd --version
phpcpd 2.0.4 by Sebastian Bergmann.

$ phploc --version
phploc 2.0.3 by Sebastian Bergmann.

$ shell docker evil_franklin phploc --version                                                        
phploc 3.0.1 by Sebastian Bergmann.

Removing everything excepted phpcs:

List replace query to prepare the list of packages to delete: http://tinyurl.com/gmwtfpw

$ pkg delete pear-SebastianBergmann_PHPLOC-2.0.3 pear-SebastianBergmann_PHPCPD-1.4.0 pear-channel-theseer-20120501_1 pear-Symfony_Component_Finder-2.3.4 pear-TheSeer_fDOMDocument-1.4.3 pear-SebastianBergmann_Version-1.0.1 pear-SebastianBergmann_FinderFacade-1.1.0 pear-Symfony_Component_Console-2.4.4 pear-SebastianBergmann_Git-1.2.0 pear-channel-ezc-20060124 pear-ezc_Base-1.8 pear-ezc_ConsoleTools-1.6.1 pear-channel-pdepend-20100520

Sep 2 11:41:04 ysul pkg: pear-SebastianBergmann_PHPLOC-2.0.3 deinstalled
Sep 2 11:41:05 ysul pkg: pear-SebastianBergmann_PHPCPD-1.4.0 deinstalled
Sep 2 11:41:07 ysul pkg: pear-SebastianBergmann_FinderFacade-1.1.0 deinstalled
Sep 2 11:41:08 ysul pkg: pear-ezc_ConsoleTools-1.6.1 deinstalled
Sep 2 11:41:08 ysul pkg: pear-TheSeer_fDOMDocument-1.4.3 deinstalled
Sep 2 11:41:09 ysul pkg: pear-ezc_Base-1.8 deinstalled
Sep 2 11:41:09 ysul pkg: pear-channel-theseer-20120501_1 deinstalled
Sep 2 11:41:09 ysul pkg: pear-Symfony_Component_Finder-2.3.4 deinstalled
Sep 2 11:41:10 ysul pkg: pear-SebastianBergmann_Version-1.0.1 deinstalled
Sep 2 11:41:11 ysul pkg: pear-Symfony_Component_Console-2.4.4 deinstalled
Sep 2 11:41:11 ysul pkg: pear-SebastianBergmann_Git-1.2.0 deinstalled
Sep 2 11:41:11 ysul pkg: pear-channel-ezc-20060124 deinstalled
Sep 2 11:41:11 ysul pkg: pear-channel-pdepend-20100520 deinstalled

dereckson closed this task as Resolved.EditedSep 2 2016, 11:50
Ysul
$ mkdir /opt/php-devel-utilities
$ cd /opt/php-devel-utilities
$ wget https://phar.phpunit.de/phpcpd.phar
$ wget https://phar.phpunit.de/phploc.phar
$ wget http://phpdox.de/releases/phpdox.phar
$ wget http://static.pdepend.org/php/latest/pdepend.phar
$ wget http://static.phpmd.org/php/latest/phpmd.phar
$ chmod +x *.phar
$ ln -s /opt/php-devel-utilities/phpcpd.phar /usr/local/bin/phpcpd
$ ln -s /opt/php-devel-utilities/phploc.phar /usr/local/bin/phploc
$ ln -s /opt/php-devel-utilities/phpdox.phar /usr/local/bin/phpdox
$ ln -s /opt/php-devel-utilities/pdepend.phar /usr/local/bin/pdepend
$ ln -s /opt/php-devel-utilities/phpmd.phar /usr/local/bin/phpmd
dereckson removed dereckson as the assignee of this task.
dereckson triaged this task as High priority.