Linux php5 和 php5-dev 有什么不同

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/8890286/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-06 04:06:37  来源:igfitidea点击:

What is the different between php5 and php5-dev

phplinuxubuntu

提问by Edison Liu

When I install php on ubuntu, somebody use

当我在 ubuntu 上安装 php 时,有人使用

sudo apt-get install php5

sudo apt-get 安装 php5

somebody use

有人用

sudo apt-get install php5-dev

须藤 apt-get 安装 php5-dev

What is the different between them?

它们之间有什么不同?

采纳答案by Daff

php5-devcontains files to develop PHP modules:

php5-dev包含用于开发 PHP 模块的文件:

This package provides the files from the PHP5 source needed for compiling additional modules.

这个包提供了编译附加模块所需的 PHP5 源文件。

php5is a meta package that installs the PHP runtime.

php5是一个安装 PHP 运行时的元包。

回答by Basile Starynkevitch

The command

命令

  apt-cache search php

would tell you the difference:

会告诉你区别:

   php5 - server-side, HTML-embedded scripting language (metapackage)
   php5-dev - Files for PHP5 module development