search
HomeBackend DevelopmentPHP Tutorial centos下编译php需要的GD库解决方法

centos下编译php需要的GD库
我的系统环境是centos5.5 ,编译安装php时,扩展gd库的时候,出现configure:error:libpng.(a|so) not found.
我在网上查了解决方法:通过 yum -y install libpng-devel,安装完成之后,在进行编译仍然出相同的错误。
通过 locate libpng得到libpng就在/usr/lib文件夹下。


为什么还提示编译出错呢!找不到libpng

错误截图:


------解决方案--------------------
安装libpng-devel
------解决方案--------------------
yum -y install libpng-devel
------解决方案--------------------
yum -y install libpng libpng-devel
少了个libpng

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
在 Mac 上创建 Windows 11 USB 安装程序的 3 种简单方法在 Mac 上创建 Windows 11 USB 安装程序的 3 种简单方法May 13, 2023 pm 09:43 PM

Windows11引入了丰富的新功能以及全面改进的外观,更加强调统一性和效率。因此,今天的主题是如何在Mac上创建Windows11USB安装程序。执行Windows11的全新安装而不是升级,是在获取操作系统时产生最佳结果的方法。使用可在Windows11中启动的驱动器,您可以执行此任务。如果您使用的是WindowsPC,则为Windows11制作可引导CD是一个非常简单的过程。另一方面,如果您使用的是Mac,则该过程会稍微复杂一些。这篇文章将描述如何在不使用基

centos php怎么安装opcachecentos php怎么安装opcacheJan 19, 2023 am 09:50 AM

centos php安装opcache的方法:1、执行“yum list php73* | grep opcache”命令;2、通过“yum install php73-php-opcache.x86_64”安装opcache;3、使用“find / -name opcache.so”查找“opcache.so”的位置并将其移动到php的扩展目录即可。

centos 怎么离线安装 mysqlcentos 怎么离线安装 mysqlFeb 15, 2023 am 09:56 AM

centos离线安装mysql的方法:1、将lib中的所有依赖上传到linux中,并用yum命令进行安装;2、解压MySQL并把文件复制到想要安装的目录;3、修改my.cnf配置文件;4、复制启动脚本到资源目录并修改启动脚本;5、将mysqld服务加入到系统服务里面;6、将mysql客户端配置到环境变量中,并使配置生效即可。

centos 7安装不出现界面怎么办centos 7安装不出现界面怎么办Jan 03, 2023 pm 05:33 PM

centos7安装不出现界面的解决办法:1、选择“Install CentOS 7”,按“e”进入启动引导界面;2、 将“inst.stage2=hd:LABEL=CentOS\x207\x20x86_64”改为“linux dd”;3、重新进入“Install CentOS 7”,按“e”将“hd:”后的字符替换成“/dev/sdd4”,然后按“Ctrl+x”执行即可。

Centos7配置webrtc-streamer环境教程。Centos7配置webrtc-streamer环境教程。Feb 18, 2024 pm 05:33 PM

配置webrtc-streamer环境的教程如下:安装依赖:在CentOS7上配置webrtc-streamer,首先需要安装一些依赖项。打开终端,并执行以下命令来安装所需的软件包:sudoyuminstall-yepel-releasesudoyuminstall-ycmakegitgcc-c++glib2-develgstreamer1-develgstreamer1-plugins-base-develjson-glib-developenssl-devellibsrtp-devellib

如何在新的 SSD 上安装 macOS如何在新的 SSD 上安装 macOSApr 13, 2023 pm 04:01 PM

如何使用 macOS Recovery 在新的 SSD 上安装 macOS在 2009 年之后生产的任何 Mac 上,都有一个内置的恢复系统。这允许您将 Mac 启动到恢复模式。在此模式下,您可以修复内部磁盘、从 Time Machine 备份恢复文件、获取在线帮助或重新安装 macOS。您必须能够连接到互联网才能使用这些工具。您可以使用 macOS 安装工具在计算机中安装的新 SSD 上安装 macOS。要使用 Internet Recovery 在 SSD 上安装 macOS:按照制造商针对

如何在 Windows 10 上使用命令提示符安装 PHP如何在 Windows 10 上使用命令提示符安装 PHPMay 08, 2023 pm 05:13 PM

使用命令提示符或PowerShell在Windows上安装PHP安装ChocolateyChoco包管理器我尝试了Windows默认包管理器Winget,但无法通过它安装PHP。因此,剩下的另一个最佳选择是使用流行的Chocolatey包管理器。但与Winget不同的是,Choco默认情况下不存在于我们的Windows系统中,因此我们需要在我们的系统上手动安装它。转到您的Windows10或11搜索框并键入CMD,出现时选择“以管理员身份运行”将给定的命令复制

centos 怎么删除 phpcentos 怎么删除 phpFeb 24, 2021 am 09:15 AM

centos删除php的方法:1、通过“#rpm -qa|grep php”命令查看全部php软件包;2、通过“rpm -e”命令卸载相应的依赖项;3、重新使用“php -v”命令查看版本信息即可。

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment