Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

多版本php时安装扩展怎么指定安装到哪个php版本? #476

Open
Ansar-786 opened this issue Jan 7, 2023 · 4 comments
Open

Comments

@Ansar-786
Copy link

多版本php时安装扩展怎么指定安装到哪个php版本?

@Ansar-786
Copy link
Author

./oneinstack/install.sh --nginx_option 1 --php_option 9 --phpcache_option 1 --php_extensions imagick,fileinfo,redis --mphp_ver 80

用这种方式安装时报错:
usr/local/php80/include/php/Zend/zend_API.h:304:22: note: declared here
ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...);
^~~~~~~~~~~~~~~~~~~~~
/root/oneinstack/src/imagick-3.4.4/imagick_class.c:12904:92: error: expected ‘)’ before ‘TSRMLS_CC’
php_imagick_convert_imagick_exception(intern->magick_wand, "Failed to localContrastImage" TSRMLS_CC);
^~~~~~~~~~
)
make: *** [Makefile:211: imagick_class.lo] Error 1
PHP imagick module install failed, Please contact the author!
LSB Version: :core-4.1-amd64:core-4.1-noarch
Distributor ID: CentOS
Description: CentOS Linux release 8.2.2004 (Core)
Release: 8.2.2004
Codename: Core

@oneinstack
Copy link
Owner

方便提供下oneinstack/install.log吗?

@Ansar-786
Copy link
Author

install.log

@oneinstack
Copy link
Owner

很久之前的安装包吗?我看php版本为8.0.3
升级之后在执行试试~/oneinstack/upgrade.sh --oneinstack

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants