1. 程式人生 > >安裝zabbix時遇到make: *** No targets specified and no makefile found. Stop.的解決方法

安裝zabbix時遇到make: *** No targets specified and no makefile found. Stop.的解決方法

樓主在安裝zabbix的時候,解壓後zabbix的tar包,

./configure --enable-server \

> --enable-proxy --enable-agent --with-mysql=/usr/bin/mysql_config \

> --with-net-snmp --with-libcurl

編譯完後make,提示make: *** No targets specified and no makefile found. Stop.

然後進行排錯,發現configure下面有個erro報錯,意思是curl-devel未安裝,但是自己yum  -y install curl-devel 又顯示libcurl已經安裝,解除安裝了libcurl-devel 再重新安裝,還是不行。

因此在網上翻遍資料,好像大部分都沒有遇到過我這種問題,最終還是在觀望單獨下載curl-devel包,然後編譯安裝上的。

下面是具體教程:  

然後執行下列操作

           # tar -zvxf curl-7.51.0.tar.gz

           # cd curl-7.51.0/

           # ./configure -prefix=/usr/local/curl

           # make

           # make install

           #vim /etc/profile

           # export PATH=$PATH:/usr/local/curl/bin

完成後,再重新./configure下zabbix,就會正常了。

下面是樓主在查資料的時候收集的一些相關常用的錯誤解決方法;

無法進行make無外乎都是./configure這個環節出了問題,可以檢視configure後的報錯,下面是一些常見的軟體包未安裝可能會影響到:

yum-y install gcc gcc-c++

autoconf

libjpeg libjpeg-devel

libpng libpng-develfreetype

freetype-devel l

ibxml2 libxml2-devel

zlib zlib-devel

glibc glibc-develglib2

glib2-devel

bzip2 bzip2-devel

ncurses ncurses-devel

curl curl-devele2fsprogs

e2fsprogs-devel

krb5 krb5-devel

libidn libidn-devel

opensslopenssl-devel openldap openldap-devel

nss_ldap

openldap-clientsopenldap-servers

如果還遇到了其他的問題歡迎留言。[轉載還請註明出處]