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

缺少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
    
    评论

报告相同问题?

悬赏问题

  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 CSAPPattacklab
  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图
  • ¥15 stm32开发clion时遇到的编译问题
  • ¥15 lna设计 源简并电感型共源放大器
  • ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)