php - linux中编译安装lnmp环境,GD库要单独下载安装吗?
大家讲道理
大家讲道理 2017-05-16 12:57:59
0
6
533

PHP有自带的gd库,但是在编译安装中,需要单独下载gd库安装吗,还是直接用php自带的就可以用,但是网上很多都没有直接用PHP的GD库,而是单独下载GD安装。

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(6)
洪涛

Required, --with-gd=path

大家讲道理

If you are centos, you need to rely on jpeg and freetype
yum install libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel zlib zlib-devel glibc glibc-devel -y
After installing the dependencies
just add the following parameters when configuring
--with-freetype-dir=/usr/lib64
--with-gd
--with-jpeg-dir=/usr/lib64
--with-png-dir=/usr/lib64

淡淡烟草味

If necessary, if you find it troublesome, you can directly install the compiled binary package php-gd.

为情所困

? ? What comes with PHP is not a library, but an extension. Extensions depend on libraries. Extensions call the functions provided by the library, but do not provide functions themselves. This is also the role of PHP extensions. Therefore, you must install the GD library additionally. The methods of installing the library are generally divided into compile installation and package installation.

世界只因有你

apt install xxxxx

伊谢尔伦

Needs to be installed separately, you can compile or choose yum (or apt) to install.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!