无法使用 ruby 2.4.5 在 AIX 7.1 上安装 ruby gem
Cannot install ruby gems on AIX 7.1 with ruby 2.4.5
我刚刚在 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 安装 gems 时,出现以下错误:
ERROR: Loading command: install (LoadError)
cannot load such file -- zlib
ERROR: While executing gem ... (NoMethodError)
undefined method `invoke_with_build_args' for nil:NilClass
编辑:gdbm、readline 和 zlib 都是在编译前使用 rpm 安装的 Ruby。
确保您已经安装了以下 RPM 包:
zlib-devel
readline-devel
gdbm-devel
上提供可用版本号和直接下载链接
安装开发包后重新编译 Ruby,应该可以正确编译这些库,然后重试 gem install
命令。
我刚刚在 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 安装 gems 时,出现以下错误:
ERROR: Loading command: install (LoadError)
cannot load such file -- zlib
ERROR: While executing gem ... (NoMethodError)
undefined method `invoke_with_build_args' for nil:NilClass
编辑:gdbm、readline 和 zlib 都是在编译前使用 rpm 安装的 Ruby。
确保您已经安装了以下 RPM 包:
zlib-devel
readline-devel
gdbm-devel
安装开发包后重新编译 Ruby,应该可以正确编译这些库,然后重试 gem install
命令。