我有一个运行PHP 5.5的Ubuntu服务器
$ php -v PHP 5.5.3-1ubuntu2 (cli) (built: Oct 9 2013 14:49:12) Copyright (c) 1997-2013 The PHP Group Zend Engine v2.5.0, Copyright (c) 1998-2013 Zend Technologies with Zend OPcache v7.0.3-dev, Copyright (c) 1999-2013, by Zend Technologies
我正在尝试安装php5-mcrypt ,但是我收到以下错误消息:
Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: php5-mcrypt : Depends: phpapi-20090626 E: Unable to correct problems, you have held broken packages.
我明白,不知何故mcrypt软件包与我目前的PHP版本不兼容,但我该如何解决这个问题?
谢谢!
你运行的是什么版本的Ubuntu? phpapi-20090626是非常古老的与php-5.5.3一起使用。 也可以检查你的phpize版本。
你从源码或其他东西安装了PHP-5.5.3吗?