how to install php composer?

Bill Cole macportsusers-20171215 at billmail.scconsult.com
Sun Dec 17 18:57:16 UTC 2017


On 17 Dec 2017, at 11:17 (-0500), macports at parvis.nl wrote:
[...]
> then i found the following:  https://github.com/sjorek/MacPorts-PHP
>
> it looks it works like a local port installation.
>
> as this isnt a formal port i think i cannot create a ticket.

You could (and arguably SHOULD) open an "Issue" on that GitHub 
repository. Apparently the developer failed to recognize some 
dependencies.

> this is what happens:
>
> # port install composer composer-php56 composer-select +iconv +openssl
> --->  Cleaning composer
> --->  Computing dependencies for composer-php56
> --->  Building composer-php56
> Error: Failed to build composer-php56:
> Warning: PHP Startup: Unable to load dynamic library 
> '/opt/local/lib/php56/extensions/no-debug-non-zts-20131226/gd.so' - 
> dlopen(/opt/local/lib/php56/extensions/no-debug-non-zts-20131226/gd.so, 
> 9): image not found in Unknown on line 0
>
> Warning: PHP Startup: Unable to load dynamic library 
> '/opt/local/lib/php56/extensions/no-debug-non-zts-20131226/gdchart.so' 
> - 
> dlopen(/opt/local/lib/php56/extensions/no-debug-non-zts-20131226/gdchart.so, 
> 9): image not found in Unknown on line 0
> All settings correct for using Composer
> PHP Warning:  PHP Startup: Unable to load dynamic library 
> '/opt/local/lib/php56/extensions/no-debug-non-zts-20131226/gd.so' - 
> dlopen(/opt/local/lib/php56/extensions/no-debug-non-zts-20131226/gd.so, 
> 9): image not found in Unknown on line 0
> PHP Warning:  PHP Startup: Unable to load dynamic library 
> '/opt/local/lib/php56/extensions/no-debug-non-zts-20131226/gdchart.so' 
> - 
> dlopen(/opt/local/lib/php56/extensions/no-debug-non-zts-20131226/gdchart.so, 
> 9): image not found in Unknown on line 0
> Error: See 
> /opt/local/var/macports/logs/_Users_paul_Develop_macports_MacPorts-PHP_php_composer/composer-php56/main.log 
> for details.
> Error: Follow https://guide.macports.org/#project.tickets to report a 
> bug.
> Error: Processing of port composer-php56 failed
>
> so it probably isnt the right way too.

So, the missing dependencies are (at least) php56-gd and php56-gd-chart.


-- 
Bill Cole
bill at scconsult.com or billcole at apache.org
(AKA @grumpybozo and many *@billmail.scconsult.com addresses)
Currently Seeking Steady Work: https://linkedin.com/in/billcole


More information about the macports-users mailing list