解決:zlib.h: 沒有那個檔案或目錄
[[email protected] maq-0.7.1]# yum install zlib-devel
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
* addons: mirrors.163.com
* base: mirrors.163.com
* extras: mirrors.163.com
* updates: mirrors.163.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package zlib-devel.i386 0:1.2.3-3 set to be updated
---> Package zlib-devel.x86_64 0:1.2.3-3 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
==========================================================================================================================
Package Arch Version Repository Size
==========================================================================================================================
Installing:
zlib-devel i386 1.2.3-3 base 101 k
zlib-devel x86_64 1.2.3-3 base 102 k
Transaction Summary
==========================================================================================================================
Install 2 Package(s)
Upgrade 0 Package(s)
Total download size: 202 k
Is this ok [y/N]: y
Downloading Packages:
(1/2): zlib-devel-1.2.3-3.i386.rpm | 101 kB 00:00
(2/2): zlib-devel-1.2.3-3.x86_64.rpm | 102 kB 00:01
--------------------------------------------------------------------------------------------------------------------------
Total 100 kB/s | 202 kB 00:02
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : zlib-devel 1/2
Installing : zlib-devel 2/2
Installed:
zlib-devel.i386 0:1.2.3-3 zlib-devel.x86_64 0:1.2.3-3
Complete!
然後再重新編譯安裝