我刚刚在AIX7.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.
现在,当我尝试使用geminstallcool.io-1.53.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:gdbm、readline和zlib都是在编译Ruby之前使用rpm安装的。
确保已安装以下RPM软件包:
zlib-devel
readline-devel
gdbm-devel
AIX Toolbox站点上提供了可用的版本号和直接下载链接。
安装完开发包后,重新编译Ruby,它应该会正确编译这些库,然后重试gem install
命令。