昨天在虚拟机ubuntu 11上安装php5-redis模块
用了各种搜索(百度+googl)办法找到软件或方法。。。过程省略。。。但是好像提示缺少什么依赖,最开始是java7-runtime和php5-redis,然后也是各种找答案。。。还有个狗屎一样的什么依赖软件phpapi-20121212+lfs,找啊找~~~~~,又和php5-common有关,也是用了官网给的各种deb装上了(php5-redis仍然没装上)。在以上所有过程中(具体哪一步忘了)用了提示中的apt-get -f install 强制安装,然后提示我会删除一些软件,会重装一些软件,然后,什么软件都没重装上,不知道是不是没有一个牛逼的ubuntu源(我用的网易,台湾,163,搜狐。。。),然后后面的过程不管是安装或卸载(包括强制和带依赖的卸载)都会提示如下:
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
charles-proxy : Depends: java6-runtime or
java7-runtime
libapache2-mod-php5 : Depends: php5-common (= 5.4.9-4ubuntu2.4) but 6.2+dfsg-1 is to be installed
php5-cli : Depends: php5-common (= 5.4.9-4ubuntu2.4) but 5.6.2+dfsg-1 is to be installed
php5-curl : Depends: php5-common (= 5.4.9-4ubuntu2.4) but 5.6.2+dfsg-1 is to be installed
php5-gd : Depends: php5-common (= 5.4.9-4ubuntu2.4) but 5.6.2+dfsg-1 is to be installed
php5-mysql : Depends: php5-common (= 5.4.9-4ubuntu2.4) but 5.6.2+dfsg-1 is to be installed
php5-redis : Depends: phpapi-20121212+lfs but it is not installable
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
以上很好奇地是charles我是装上的,它提示的java7-runtime我是找的官网的压缩包手动安装的。我的php-storm都跑得好好的,charles也可以跑。。。为毛。
很久以来,不知道是多少次开始觉得Ubuntu不友好了,老大让我换centOS或者fedora,如果大家给不了建设性的意见的话,我就只有考虑重装一个或者换其他linux了(个人认为这不是解决之道,我的项目还部署在上面呢,重新搭建我司用的开发环境要很久。。。)。
不管你是一只菜鸟或老鸟。。。so,拜托了,我先装个备用的。
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
也可以考虑编译安装的