2012-05-13 34 views
4

我的最終目標是爲我的研究小組運行twiki網站。在RedHat機器上安裝GD庫供twiki使用

我在運行Apache等的RedHat服務器上有空間,但是我沒有root權限。由於我無法安裝具有當前權限的perl模塊,因此我決定手動安裝本地版本的perl。得到這個工作沒有問題。以下模塊都需要獲得TWiki的工作:

我已經安裝了凍融,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

它說我還應該安裝以下第三方庫:

  1. zlib的,可從http://www.gzip.org/zlib/ 數據壓縮庫

  2. libpng,可從http://www.libpng.org/pub/png/ 便攜式網絡圖形庫;需要zlib的

  3. FreeType的2.X,可從http://www.freetype.org/ 免費,高品質,便攜字體引擎

  4. JPEG庫,可以在http://www.ijg.org/ 便攜式JPEG壓縮/解壓縮庫

  5. 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階段。

我的問題是:什麼其他的過程可能會貶低人類到這樣的水平?當我潛入這個悲慘的洋蔥深處時,我無法理解在我面前殘忍的殘酷。我應該結束這一切嗎?可以從這種瘋狂中帶來意義嗎?明天會不會有太陽出現,如果是這樣,它甚至是重要的嗎?

但是,嚴肅地說,對於做什麼不同/更好的任何建議都會非常感激 - 我不記得孩子的笑聲聽起來像什麼了。

+0

只是一個建議:也許不如問有根訪問你的系統管理員來安裝所有這些庫(順便說一句,受到了很多的軟件)你;可能嗎? – ArtM

+0

可能是......我可能最終會給他發一個這個問題的鏈接。 – JBWhitmore

回答

10

安裝包裝gd-devel,它包含/usr/bin/gdlib-config

+0

如果提案[簡易安裝非CPAN依賴關係](http://news.perlfoundation.org/2012/05/2012q2-grant-proposal-easy-ins.html)[chorny](http:// stackoverflow .com/users/13467/alexandr-ciornii)被授予並完成,這類初學者問題將大大減少。社區,請分享這個。 – daxim

+0

好吧,我試圖做到這一點。我認爲RPM會在這裏:http://rpmfind.net//linux/RPM/centos/6.2/x86_64/Packages/gd-devel-2.0.35-10.el6.x86_64.html - 但文件未找到。另外,http://www.libgd.org/Main_Page的鏈接也不起作用。你能否鏈接到一個有gd-devel tarball的地方? – JBWhitmore

+0

[yum install](http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/sec-Installing.html) – daxim

5

下面的命令應該做的needfull:

sudo apt-get -y install libgd2-xpm-dev build-essential 
+1

它不會因爲1)我沒有root權限(所以sudo出)2)CentOS不是基於debian的所以apt-get出來了)。 – JBWhitmore