dspym82000 2014-04-22 12:14 采纳率: 100%
浏览 444

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

I install PHP5.6.0 on Ubuntu 13.10 x64 from this

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

then I installed phpmyadmin when I am trying to lunch phpmyadmin I got this message

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

my PHP modules:

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 Modules] Zend OPcache

then when i use this command to install php-json

sudo apt-get install php5-json

I got this

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

How can I fix this problem?

  • 写回答

4条回答 默认 最新

  • dqunzip3183 2014-04-22 12:36
    关注

    It looks like you are install PHP5 from a custom repo. I would remove PHP and remove that repo.

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

    now install php

    sudo apt-get install php5-common php5-json
    
    评论

报告相同问题?

悬赏问题

  • ¥15 eclipse运行项目时遇到的问题
  • ¥15 关于#c##的问题:最近需要用CAT工具Trados进行一些开发
  • ¥15 南大pa1 小游戏没有界面,并且报了如下错误,尝试过换显卡驱动,但是好像不行
  • ¥15 没有证书,nginx怎么反向代理到只能接受https的公网网站
  • ¥50 成都蓉城足球俱乐部小程序抢票
  • ¥15 yolov7训练自己的数据集
  • ¥15 esp8266与51单片机连接问题(标签-单片机|关键词-串口)(相关搜索:51单片机|单片机|测试代码)
  • ¥15 电力市场出清matlab yalmip kkt 双层优化问题
  • ¥30 ros小车路径规划实现不了,如何解决?(操作系统-ubuntu)
  • ¥20 matlab yalmip kkt 双层优化问题