Closed remicollet closed 1 year ago
Now also available as module in the php:remi-8.2 stream
Sorry if this is a dumb question, but is sodium missing from the php82
package?
Here is what I do:
yum install -y \
https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm \
https://rpms.remirepo.net/enterprise/remi-release-7.rpm \
yum-utils \
epel-release \
curl
yum-config-manager --enable remi-php82
yum update -y && yum upgrade -y
yum install --setopt=skip_missing_names_on_install=False -y \
php82-php-cli-8.2.0~rc5-18.el7.remi.x86_64
(I want to install an exact version)
php -i
shows that sodium is not installed.
Thank you for the help!
Oh additionally, as a side question relating to the PHP 8.2 package:
https://rpms.remirepo.net/enterprise/7/php82/x86_64/repoview/php-cli.html shows that the version is php-8.2.0~RC5-6.el7.remi.x86_64
. However yum install php82-php-cli-8.2.0~RC5-6.el7.remi.x86_64
fails as there is no such package.
I had to find out that the version is actually php82-php-cli-8.2.0~rc5-18.el7.remi.x86_64
. Should I look somewhere else (different web page) to find the latest version available?
@mnapoli confused by module (single version) and SCL (multiple versions), see FAQ and
Reminder: see the Wizard instructions for proper configuration / usage
php -i shows that sodium is not installed.
As for every extension, if you need it, you must install it (as explained by the wizard), so php-sodium or php82-php-sodium
What is wrong in your docker is that you enable "remi-php82" which provides the single version "php-*" and then install php82-php-cli, which is in "remi", or "remi-safe" repository (again, see the wizard)
You are also using the very old C7 distribution, which is close to its end of life, you should prefer a modern version (EL-8 or EL-9) especially to run modern software (as PHP 8.2). Everything is old on EL-7
P.S well... not C7 but amzn images... the Frankenstein image
We need EL-7 because of Amazon Linux 2, which is the OS behind AWS Lambda. Not sure if we can get EL-8 or EL-9 to work with AL2. If you have any pointers we would love it!
Thank you Remi for all the pointers and taking the time (even though I missed it in your FAQ), that was extremely useful!
Now everything is building fine, I'm switching all the builds to the module distribution: https://github.com/brefphp/aws-lambda-layers/pull/26
As Marco mentioned above, we are unfortunately stuck with Amazon Linux 2 for now :/ So far our attempts to use the EL-8 or EL-9 packages fail, but I guess that's not a surprise: https://github.com/brefphp/aws-lambda-layers/issues/22
8.2 is released and announced https://blog.remirepo.net/post/2022/12/08/PHP-version-8.2.0-is-released
According to PHP roadmap version 8.2.0 GA is planed for end of year
Plan is
Start to test, fix and build extensions, especially after RC1 (final API)
Current state
Extensions (checked are available as RPM, not checked have been tested but not built, missing have not been tested yet) :
Feedback welcome, feel free to ask for extensions you need for your tests.