gpt4 book ai didi

php - 缺少 json 扩展名。请检查您的 PHP 配置

转载 作者:行者123 更新时间:2023-12-04 02:24:46 24 4
gpt4 key购买 nike

我在 Ubuntu 13.10 x64 上安装 PHP5.6.0

https://launchpad.net/~ondrej/+archive/php5-5.6a

然后我在尝试午餐时安装了 phpmyadmin phpmyadmin 我收到了这条消息

The json extension is missing. Please check your PHP configuration.

我的 PHP 模块:

bcmath
bz2
calendar
Core
ctype
date
dba
dom
ereg
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
libxml
mbstring
mcrypt
mhash
mysql
mysqli
openssl
pcntl
pcre
PDO
pdo_mysql
Phar
posix
readline
Reflection
session
shmop
SimpleXML
soap
sockets
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlwriter
Zend OPcache
zip
zlib

[Zend 模块] Zend OP缓存

然后当我使用这个命令安装php-json

sudo apt-get install php5-json

我明白了

The following packages have unmet dependencies:
php5-json : Depends: phpapi-20121212
E: Unable to correct problems, you have held broken packages.

我该如何解决这个问题?

最佳答案

看起来您是从自定义存储库安装 PHP5。我会删除 PHP 并删除那个 repo。

sudo apt-add-repository --remove ppa:ondrej/php5-5.6
sudo apt-get update

现在安装 php

sudo apt-get install php5-common php5-json

关于php - 缺少 json 扩展名。请检查您的 PHP 配置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23219266/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com