二:GD2編譯的時候出現的錯誤: The usual way to define `LIBTOOL’ is to add `AC_PROG_LIBTOOL’ Libtool library used but `LIBTOOL’ is undefined [Makefile.in] Error 1 解決:缺少編譯安裝的軟件包。如:yum install automake,libjpeg-devel,libpng-devel,freetype-devel,libtiff-devel,autoconf,gettext-devel,libtool
三:安裝 snmp的時候出現的錯誤: 1>/bin/sed: can’t read /usr/lib/libbeecrypt.la: No such file or directory libtool: link: `/usr/lib/libbeecrypt.la’ is not a valid libtool archive make[1]: *** [libnetsnmpmibs.la] Error 1 解決:以為缺少libbeecrypt.la ,libbeecrypt.so等共享庫,如:yum install libbeecrypt.la 2>/usr/bin/ld: cannot find -lelf 解決:ln -s /usr/lib/libelf.so.1 /usr/lib/libelf.so 3>/usr/bin/ld:can’t not find -lselinux 解決:缺少libselinux 和 libselinux-devel包,如:yum install libselinux
四:Rsync同步常見問題: 錯誤一: @ERROR: auth failed on module xxxxx rsync: connection unexpectedly closed (90 bytes read so far) rsync error: error in rsync protocol data stream (code 12) at io.c(150) 解決:這是因為密碼設置錯了,無法登入成功,檢查一下rsync.pwd,看客服是否匹配。還有服務器端沒啟動rsync 服務也會出現這種情況。 錯誤二: password file must not be other-accessible continuing without password file Password: 解決:這是因為rsyncd.pwd rsyncd.sec的權限不對,應該設置為600。如:chmod 600 rsyncd.pwd 錯誤三: @ERROR: chroot failed rsync: connection unexpectedly closed (75 bytes read so far) rsync error: error in rsync protocol data stream (code 12) at io.c(150) 解決:這是因為你在 rsync.conf 中設置的 path 路徑不存在,要新建目錄才能開啟同步。 錯誤四: rsync: failed to connect to 218.107.243.2: No route to host (113) rsync error: error in socket IO (code 10) at clientserver.c(104) [receiver=2.6.9] 解決:對方沒開機、防火墻阻擋、通過的網絡上有防火墻阻擋,都有可能。關閉防火墻,其實就是把tcp udp 的873端口打開。