我的最終目標是爲我的研究小組運行twiki網站。在RedHat機器上安裝GD庫供twiki使用
我在運行Apache等的RedHat服務器上有空間,但是我沒有root權限。由於我無法安裝具有當前權限的perl模塊,因此我決定手動安裝本地版本的perl。得到這個工作沒有問題。以下模塊都需要獲得TWiki的工作:
- 凍融 - http://search.cpan.org/~ilyaz/FreezeThaw
- CGI ::會議 - http://search.cpan.org/~markstos/CGI-Session
- 錯誤 - http://search.cpan.org/~shlomif/Error
- GD - http://search.cpan.org/~lds/GD
- HTML ::樹 - http://search.cpan.org/~petek/HTML-Tree
- 時間模塊 - http://search.cpan.org/~muir/Time-modules
我已經安裝了凍融,CGI,錯誤和它GD失敗,出現以下錯誤:
UNRECOVERABLE ERROR Could not find gdlib-config in the search path.
Please install libgd 2.0.28 or higher. If you want to try to
compile anyway, please rerun this script with the option --ignore_missing_gd.
在尋求如何解決這個最新的障礙,我發現前面的一個SO問題:How to install GD library with Strawberry Perl問安裝這個和頂部的答案suggested manually compiling gdlib。但是,您會注意到,該鏈接已損壞。基地網站:http://www.libgd.org/基本上是說要去該項目的bitbucket頁面。
所以我從那個頁面獲得了tarball,並試圖安裝它。當我按照說明進行操作時,會出現以下問題。 README.TXT說:「如果源已從CVS獲取,請運行bootstrap.sh [options]。」
運行bootstrap.sh產量:
configure.ac:64: warning: macro `AM_ICONV' not found in library
configure.ac:10: required directory ./config does not exist cp: cannot
create regular file `config/config.guess': No such file or directory
configure.ac:11: installing `config/config.guess' configure.ac:11:
error while copying cp: cannot create regular file
`config/config.sub': No such file or directory configure.ac:11:
installing `config/config.sub' configure.ac:11: error while
copying cp: cannot create regular file `config/install-sh': No such
file or directory configure.ac:28: installing `config/install-sh'
configure.ac:28: error while copying cp: cannot create regular
file `config/missing': No such file or directory configure.ac:28:
installing `config/missing' configure.ac:28: error while copying
configure.ac:577: required file `config/Makefile.in' not found
configure.ac:577: required file `config/gdlib-config.in' not found
configure.ac:577: required file `test/Makefile.in' not found
Makefile.am:14: Libtool library used but `LIBTOOL' is undefined
Makefile.am:14: The usual way to define `LIBTOOL' is to add
AC_PROG_LIBTOOL' Makefile.am:14: to
configure.ac' and run
aclocal' and
autoconf' again. Makefile.am:14: If `AC_PROG_LIBTOOL'is in `configure.ac', make sure Makefile.am:14: its definition is in
aclocal's search path. cp: cannot create regular file
`config/depcomp': No such file or directory Makefile.am: installing
`config/depcomp' Makefile.am: error while copying Failed
它說我還應該安裝以下第三方庫:
zlib的,可從http://www.gzip.org/zlib/ 數據壓縮庫
libpng,可從http://www.libpng.org/pub/png/ 便攜式網絡圖形庫;需要zlib的
FreeType的2.X,可從http://www.freetype.org/ 免費,高品質,便攜字體引擎
JPEG庫,可以在http://www.ijg.org/ 便攜式JPEG壓縮/解壓縮庫
XPM ,可從http://koala.ilog.fr/lehors/xpm.html X Pixmap庫
我現在忽略了這一點。
切換到通用指令說它遵循INSTALL文件中的建議;其中說:「cd到包含源代碼包的目錄並鍵入./configure爲您的系統配置軟件包。」哪個單位不起作用:我已經將cd'ed到tarball的每個目錄中,並且運行該命令什麼也不做。因此,試圖安裝twiki需要我安裝perl,這需要我安裝perl模塊:FreezeThaw,CGI,錯誤,HTML,時間模塊和GD - 本身要求我安裝gdlib - 進一步建議我安裝zlib,libpng,FreeType 2.x,JPEG庫和XPM。當然,我被困在安裝gdlib階段。
我的問題是:什麼其他的過程可能會貶低人類到這樣的水平?當我潛入這個悲慘的洋蔥深處時,我無法理解在我面前殘忍的殘酷。我應該結束這一切嗎?可以從這種瘋狂中帶來意義嗎?明天會不會有太陽出現,如果是這樣,它甚至是重要的嗎?
但是,嚴肅地說,對於做什麼不同/更好的任何建議都會非常感激 - 我不記得孩子的笑聲聽起來像什麼了。
只是一個建議:也許不如問有根訪問你的系統管理員來安裝所有這些庫(順便說一句,受到了很多的軟件)你;可能嗎? – ArtM
可能是......我可能最終會給他發一個這個問題的鏈接。 – JBWhitmore