No success installation (reason: missing PHP extensions)

How to configure and adapt Aimeos based shops as developer
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
sereno
Posts: 3
Joined: 10 Mar 2020, 17:44

No success installation (reason: missing PHP extensions)

Post by sereno » 29 Mar 2020, 14:06

Have been trying for weeks the Aimeos installation with no success.

- aimeos/aimeos-core 2019.10.13 requires ext-intl * -> the requested PHP extension intl is missing from your system.

I have installed intl extension
I have reinstalled PHP
I have reinstalled macOS Catalina
I have reinstalled Apache

And no way that I can see.

- macOS Catalina 10.15.4
- PHP 7.3.11 (cli) (built: Feb 29 2020 02:50:36) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.11, Copyright (c) 1998-2018 Zend Technologies
- Composer version 1.10.1 2020-03-13 20:34:27

Last try was reinstalling PHP intl extension using MacPorts; and this has been worst, now I receive lots of PHP warnings, like
PHP Warning: PHP Startup: Unable to load dynamic library for:
- curl
- fileinfo
- gd2
- mbstring
- pdo_mysql

intl extension was installed in: '/opt/local/lib/php73/extensions/no-debug-non-zts-20180731/intl.so'

Have not found answers in any forum.
I am about to quit.
Any idea ?

Thanks in advance,

Juan

User avatar
aimeos
Administrator
Posts: 7873
Joined: 01 Jan 1970, 00:00

Re: No success installation (reason: missing PHP extensions)

Post by aimeos » 29 Mar 2020, 14:29

The "intl" extension doesn't show up if you run "php -m"?

Where are your other PHP extensions installed? Also in
/opt/local/lib/php73/extensions/no-debug-non-zts-20180731/ ?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

sereno
Posts: 3
Joined: 10 Mar 2020, 17:44

Re: No success installation (reason: missing PHP extensions)

Post by sereno » 29 Mar 2020, 14:42

Hi, thanks for the answer.

'php -m' does not list intl

phpinfo in the browser does show "intl" extension.

The other PHP extensions are in the default folder used by Catalina (not sure which one).

my $PATH : "/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin"

"/opt/local/bin" was created by MacPorts after intl extension installation.

User avatar
aimeos
Administrator
Posts: 7873
Joined: 01 Jan 1970, 00:00

Re: No success installation (reason: missing PHP extensions)

Post by aimeos » 29 Mar 2020, 14:52

Guess, you use a different php installation for CLI and web and that causes your problems.

If the "intl" extension isn't in the same directory as the rest of the php extensions for the php version you are using, it won't be found.

You should try to find the php version that's also used in your web server (which reports "intl" extension in the output of "php -m") and explicitely add it in front, e.g.

Code: Select all

/usr/bin/php7.3 composer create-project aimeos/aimeos
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

sereno
Posts: 3
Joined: 10 Mar 2020, 17:44

Re: No success installation (reason: missing PHP extensions)

Post by sereno » 29 Mar 2020, 15:04

I will try that, thanks a lot.

My Apache and PHP where installed by default by Catalina.
The problem began when intl extension was not found in that installation.

thank you,

Juan

Post Reply