php已經加環境變數
[jam@localhost myblog]$ php -v
PHP 7.3.13 (cli) (built: Dec 17 2019 10:29:15) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.13, Copyright (c) 1998-2018 Zend Technologies
with Zend OPcache v7.3.13, Copyright (c) 1999-2018, by Zend Technologies
[jam@localhost myblog]$
php 擴充套件列表
[jam@localhost myblog]$ php -m
[PHP Modules]
bcmath
bz2
calendar
Core
crypto
ctype
curl
date
exif
fileinfo
filter
ftp
gd
geoip
gettext
hash
iconv
json
libxml
mbstring
mcrypt
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
readline
recode
Reflection
session
snmp
soap
sockets
SPL
sqlite3
standard
tokenizer
Zend OPcache
zlib
[Zend Modules]
Zend OPcache
[jam@localhost myblog]$
報錯如下:
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- laravel/horizon v3.4.5 requires ext-posix * -> the requested PHP extension posix is missing from your system.
- laravel/horizon v3.4.4 requires ext-posix * -> the requested PHP extension posix is missing from your system.
- laravel/horizon v3.4.3 requires ext-posix * -> the requested PHP extension posix is missing from your system.
- laravel/horizon v3.4.2 requires ext-posix * -> the requested PHP extension posix is missing from your system.
- laravel/horizon v3.4.1 requires ext-posix * -> the requested PHP extension posix is missing from your system.
- laravel/horizon v3.4.0 requires ext-posix * -> the requested PHP extension posix is missing from your system.
- laravel/horizon v3.3.2 requires ext-posix * -> the requested PHP extension posix is missing from your system.
- laravel/horizon v3.3.1 requires ext-posix * -> the requested PHP extension posix is missing from your system.
- laravel/horizon v3.3.0 requires ext-posix * -> the requested PHP extension posix is missing from your system.
- laravel/horizon v3.2.8 requires ext-posix * -> the requested PHP extension posix is missing from your system.
- laravel/horizon v3.2.7 requires ext-posix * -> the requested PHP extension posix is missing from your system.
- laravel/horizon v3.2.6 requires ext-posix * -> the requested PHP extension posix is missing from your system.
- laravel/horizon v3.2.5 requires ext-posix * -> the requested PHP extension posix is missing from your system.
- laravel/horizon v3.2.4 requires ext-posix * -> the requested PHP extension posix is missing from your system.
- laravel/horizon v3.2.3 requires ext-posix * -> the requested PHP extension posix is missing from your system.
- laravel/horizon v3.2.2 requires ext-posix * -> the requested PHP extension posix is missing from your system.
- laravel/horizon v3.2.1 requires ext-posix * -> the requested PHP extension posix is missing from your system.
- laravel/horizon v3.2.0 requires ext-posix * -> the requested PHP extension posix is missing from your system.
- Installation request for laravel/horizon ^3.2 -> satisfiable by laravel/horizon[v3.2.0, v3.2.1, v3.2.2, v3.2.3, v3.2.4, v3.2.5, v3.2.6, v3.2.7, v3.2.8, v3.3.0, v3.3.1, v3.3.2, v3.4.0, v3.4.1, v3.4.2, v3.4.3, v3.4.4, v3.4.5].
To enable extensions, verify that they are enabled in your .ini files:
- /etc/opt/remi/php73/php.ini
- /etc/opt/remi/php73/php.d/10-opcache.ini
- /etc/opt/remi/php73/php.d/20-bcmath.ini
- /etc/opt/remi/php73/php.d/20-bz2.ini
- /etc/opt/remi/php73/php.d/20-calendar.ini
- /etc/opt/remi/php73/php.d/20-ctype.ini
- /etc/opt/remi/php73/php.d/20-curl.ini
- /etc/opt/remi/php73/php.d/20-exif.ini
- /etc/opt/remi/php73/php.d/20-fileinfo.ini
- /etc/opt/remi/php73/php.d/20-ftp.ini
- /etc/opt/remi/php73/php.d/20-gd.ini
- /etc/opt/remi/php73/php.d/20-gettext.ini
- /etc/opt/remi/php73/php.d/20-iconv.ini
- /etc/opt/remi/php73/php.d/20-json.ini
- /etc/opt/remi/php73/php.d/20-mbstring.ini
- /etc/opt/remi/php73/php.d/20-mysqlnd.ini
- /etc/opt/remi/php73/php.d/20-pdo.ini
- /etc/opt/remi/php73/php.d/20-phar.ini
- /etc/opt/remi/php73/php.d/20-recode.ini
- /etc/opt/remi/php73/php.d/20-snmp.ini
- /etc/opt/remi/php73/php.d/20-soap.ini
- /etc/opt/remi/php73/php.d/20-sockets.ini
- /etc/opt/remi/php73/php.d/20-sqlite3.ini
- /etc/opt/remi/php73/php.d/20-tokenizer.ini
- /etc/opt/remi/php73/php.d/30-mcrypt.ini
- /etc/opt/remi/php73/php.d/30-mysqli.ini
- /etc/opt/remi/php73/php.d/30-pdo_mysql.ini
- /etc/opt/remi/php73/php.d/30-pdo_sqlite.ini
- /etc/opt/remi/php73/php.d/40-crypto.ini
- /etc/opt/remi/php73/php.d/40-geoip.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
[jam@localhost myblog]$
遇到這個問題該怎麼解決呢 ?是缺少什麼嗎? 求解 ,平臺centos7