Reputation: 37
I just compiled ruby from source on AIX 7.1. However, the following errors got logged during the make.
*** 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.
Now, when i try to install gems using gem install cool.io-1.5.3.gem, it gives the below error:
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 and zlib were all installed using rpm before compiling Ruby.
Upvotes: 1
Views: 295
Reputation: 10536
Make sure you have installed the following RPM packages:
zlib-devel
readline-devel
gdbm-devel
Available version numbers and direct download links are available on the AIX Toolbox site.
After installing the development packages recompile Ruby and it should correctly compile those libraries, then retry your gem install
command.
Upvotes: 2