我的最终目标是运行 twiki我的研究小组的网站。
我在运行 Apache 等的 RedHat 服务器上有空间,但我没有 root 访问权限。由于我无法使用当前权限安装 perl 模块,因此我决定手动安装本地版本的 perl。得到那个工作没问题。使 twiki 工作需要以下模块:
我已经安装了 FreezeThaw、CGI、Error,但它在 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
它说我还应该安装以下 3rd 方库:
数据压缩库
可移植网络图形库;需要 zlib
免费、高质量、可移植的字体引擎
可移植JPEG压缩/解压缩库
X 像素图库
我现在忽略了。
切换到它说遵循安装文件中的建议的通用说明;它说:“cd 到包含包源代码的目录并键入 ./configure 为您的系统配置包。”哪个平面不起作用:我已经 cd'ed 到 tarball 的每个目录中并且运行该命令什么都不做。
因此,尝试安装 twiki 需要我安装 perl,这需要我安装 perl 模块:FreezeThaw、CGI、Error、HTML、Time-modules 和 GD——这本身需要我安装 gdlib——这进一步建议我安装 zlib、libpng、FreeType 2.x、JPEG 库和 XPM。当然,我被困在安装 gdlib 阶段。
我的问题是 : 还有什么其他的过程可以将人类贬低到这样的程度?当我越陷越深这颗悲惨的洋葱时,我无法理解摆在我面前的残酷的深度。我应该结束这一切吗?能从这种疯狂中获得意义吗?明天太阳会升起吗?如果是这样,这还重要吗?
但说真的,任何关于如何做不同/更好的建议都会非常感激 - 我不记得 child 的笑声听起来像什么了。
最佳答案
安装包gd-devel
, 它包含 /usr/bin/gdlib-config
.
关于perl - 在 RedHat 机器上为 twiki 安装 GD 库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10572035/