ports/188665: phpmyadmin can't resolve dependency to mod_php5

Matthew Seaman m.seaman at infracaninophile.co.uk
Wed Apr 16 05:55:15 UTC 2014


On 15/04/2014 18:36, Mirko Steiner wrote:

> When trying to make install phpmyadmin, he tries to figure out, if mod_php5 is installed by checking if the file "libphp5.so" exists:
>  ===>   phpMyAdmin-4.1.13 depends on file: /usr/local//libphp5.so - not found
> 
> i've noticed the double slashes (//) and also the broken path specification.
> 
> this path is set in /usr/ports/Mk/bsd.php.mk line 164 which gets included due "USE_PHP" in the phpmyadmin Makefile:
> 
> RUN_DEPENDS+=   ${PHPBASE}/${APACHEMODDIR}/libphp5.so:${PORTSDIR}/${MOD_PHP_PORT}
> 
> seems like ${APACHEMODDIR} is not set...
> 
> APACHEMODDIR is set, when bsd.apache.mk is included e.g. adding "USE_APACHE_RUN" in the Makefile...
>> How-To-Repeat:
> $ cd /usr/ports/databases/phpmyadmin/
> $ sudo make install
>> Fix:
> I added the following line into the phpmyadmin Makefile:
> USE_APACHE_RUN=22+
> 
> don't know if this is the best solution...

The phpMyAdmin port is not specifically the problem here.  It is using
the default ports mechanisms for declaring dependencies on various PHP
modules.  I think you'ld see a similar effect with any PHP application.

Forcing phpMyAdmin to depend on Apache is not the ideal solution:
personally I prefer nginx + php-fpm for running php applications nowadays.

I don't see anything like this with clean-room builds on eg. Redports --
something about your local environment is triggering the problem.

Please show me what you have in /etc/make.conf, /usr/local/etc/php.conf
and what PHP related ports you have installed (eg. pkg info -x php)

	Cheers,

	Matthew





-- 
Dr Matthew J Seaman MA, D.Phil.

PGP: http://www.infracaninophile.co.uk/pgpkey
JID: matthew at infracaninophile.co.uk

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 1036 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-ports-bugs/attachments/20140416/e2f3b063/attachment.sig>


More information about the freebsd-ports-bugs mailing list