我刚刚在AIX 7.1上从源代码编译了ruby。但是,在制作过程中记录了以下错误。
*** Following extensions failed to configure:
../../../ext/gdbm/extconf.rb:0: Failed to configure gdbm. It will not be installed.
../../../ext/readline/extconf.rb:0: Failed to configure readline. It will not be installed.
../../../ext/zlib/extconf.rb:0: Failed to configure zlib. It will not be installed.
*** Fix the problems, then remove these directories and try again if you want.
现在,当我尝试使用gem install cool.io-1.5.3.gem安装gem时,出现以下错误:
ERROR: Loading command: install (LoadError)
cannot load such file -- zlib
ERROR: While executing gem ... (NoMethodError)
undefined method `invoke_with_build_args' for nil:NilClass
edit:在编译Ruby之前,已使用rpm安装了gdbm,readline和zlib。
答案 0 :(得分:2)
确保已安装以下RPM软件包:
zlib-devel
readline-devel
gdbm-devel
AIX Toolbox site上提供了可用的版本号和直接下载链接。
在安装开发包之后,重新编译Ruby,它应该正确地编译这些库,然后重试gem install
命令。