@el_aur key for repo at build.opensuse.org seems to have changed. Following your instructions, pacman -Syy results in:
error: home_el_archphp_Arch: signature from "home:el OBS Project <home:el@build.opensuse.org>" is invalid
Git Clone URL: | https://aur.archlinux.org/php81.git (read-only, click to copy) |
---|---|
Package Base: | php81 |
Description: | xmlreader module for php81 |
Upstream URL: | http://www.php.net |
Keywords: | 8.1 php php8 |
Licenses: | PHP |
Submitter: | el_aur |
Maintainer: | el_aur |
Last Packager: | el_aur |
Votes: | 11 |
Popularity: | 0.044522 |
First Submitted: | 2021-12-01 12:54 (UTC) |
Last Updated: | 2024-11-29 13:05 (UTC) |
@el_aur key for repo at build.opensuse.org seems to have changed. Following your instructions, pacman -Syy results in:
error: home_el_archphp_Arch: signature from "home:el OBS Project <home:el@build.opensuse.org>" is invalid
@el_aur I have upgraded to version 8.1.21. Thank you.
PHP 8.1.21 (cli) (built: Jul 12 2023 07:01:12) (NTS) Copyright (c) The PHP Group Zend Engine v4.1.21, Copyright (c) Zend Technologies with Zend OPcache v8.1.21, Copyright (c), by Zend Technologies
php -m [PHP Modules] bcmath bz2 calendar Core ctype curl date dba dom enchant exif FFI fileinfo filter ftp gd gettext gmp hash iconv imagick imap intl json ldap libxml mbstring mysqli mysqlnd odbc openssl pcntl pcre PDO pdo_dblib PDO_Firebird pdo_mysql PDO_ODBC pdo_pgsql pdo_sqlite pgsql Phar posix pspell readline redis Reflection session shmop SimpleXML snmp soap sockets sodium SPL sqlite3 standard sysvmsg sysvsem sysvshm tidy tokenizer xml xmlreader xmlwriter xsl Zend OPcache zip zlib [Zend Modules] Zend OPcache
@el_aur
Yes, I have aur/php81-cli (8.1.17-1)
installed.
Currently trying to upgrade to php81-8.1.21-1
@DmitrySkibitsky have you insalled php81-cli subpackage?
Version bump. Added -fPIC
Can you please add these lines at the top of your PKGBUILD?
export CFLAGS="${CFLAGS} -fPIC"
export CXXFLAGS="${CXXFLAGS} -fPIC"
Without these php-imagick fails with segfault. This is related to a gcc bug in my opinion - but the gcc-devs say it is not a bug :(
export CFLAGS="${CFLAGS} -fPIC" export CXXFLAGS="${CXXFLAGS} -fPIC"
That solved my problem
@Javlonbek Thank you
php81 -v command not found: php81
No matter how many times I try to install, php-config81 prints "--php-binary [/usr/bin/php81]", but there is no php81 itself in that path. How do I solve this?
@Javlonbek The workaround, for me, has been to put these two lines at the top of the PKGBUILD of php81 and fully rebuild php81.
export CFLAGS="${CFLAGS} -fPIC"
export CXXFLAGS="${CXXFLAGS} -fPIC"
You may or may not also have to reinstall any extensions.
Pinned Comments
el_aur commented on 2022-01-27 12:09 (UTC) (edited on 2022-01-27 15:19 (UTC) by el_aur)
Read Carefully! Breaking changes in compare with native PHP package
Console version
/usr/bin/php81
is installed withphp81-cli
subpackage,php81
doesn't include it anymore!!!PEAR and PECL are available as
php81-pear
andphp81-pecl
subpackagesAll shared modules are respresented as stand-alone subpackages and are not included with
php81
package anymore.No more extensions in php.ini itself!
Separate INI files for each extension are placed in
/etc/php81/conf.d
They are loaded in correct order according to priority