I'm trying to run php app that use locale_accept_from_http
function from intl extension. My php version is 7.2
and I get an error: Call to undefined function locale_accept_from_http()
;
I was trying:
1. Install extension sudo apt-get install php-intl
.
The error is:
Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:
The following packages have unmet dependencies: php-intl : Depends: php7.1-intl but it is not going to be installed E: Unable to correct problems, you have held broken packages.
2. Enable intl extension in php.ini. I'm getting a warning:
PHP Warning: PHP Startup: Unable to load dynamic library 'intl'
What is the right way to use this extension with php7.2
?
apt-get install -f php7.2-intl
? – ByroadUnable to locate package php7.2-intl
– Decor