dongqiao8421 2013-09-03 12:38
浏览 75
已采纳

如何在Debian Wheezy上安装PHP5.4.16?

I originally asked this question on https://unix.stackexchange.com/, but I got no answers after 1 month, so please allow me to post it here on stakoverflow.

I used to be able to install php-5fpm=5.4.16-1~dotdeb.1, but it seems that this package is no longer available from the latest dotdeb packages.

Here are the steps I tried.

  1. Append the following two lines in /etc/apt/sources.list.

    deb http://packages.dotdeb.org wheezy all

    deb-src http://packages.dotdeb.org wheezy all

  2. Run apt-get update.

  3. Run apt-get install php5-fpm=5.4.16-1~dotdeb.1.

However, this returns E: Version '5.4.16-1~dotdeb.1' for 'php5-fpm' was not found. I tried to avoid it by using a different respository, namely, deb http://packages.dotdeb.org wheezy-php54 all, but this returned the same message. How can I install that specific version of PHP?

  • 写回答

1条回答 默认 最新

  • dsnd7200 2013-09-15 23:50
    关注

    You're targeting too specific a version. Repositories won't routinely keep multiple builds of the same package around, so a specific build like 5.4.16-1~dotdeb.1 will be superseded by newer builds.

    At the moment, listing the files on the repository shows a build of 5.4.19-1~dotdeb.1, but really all you want is to select the latest version of PHP 5.4, and let APT update it in the normal way.

    If the dotdeb packages are for newer versions of PHP than any other repositories you have installed, it will be the default anyway, so you can just run:

    apt-get install php5-fpm
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 三因素重复测量数据R语句编写,不存在交互作用
  • ¥15 微信会员卡等级和折扣规则
  • ¥15 微信公众平台自制会员卡可以通过收款码收款码收款进行自动积分吗
  • ¥15 随身WiFi网络灯亮但是没有网络,如何解决?
  • ¥15 gdf格式的脑电数据如何处理matlab
  • ¥20 重新写的代码替换了之后运行hbuliderx就这样了
  • ¥100 监控抖音用户作品更新可以微信公众号提醒
  • ¥15 UE5 如何可以不渲染HDRIBackdrop背景
  • ¥70 2048小游戏毕设项目
  • ¥20 mysql架构,按照姓名分表