last day (18 days later) » 

1:34 PM
1
A: Installing Ruby on AIX

nPnI managed to get this done a couple of years ago (ruby 2.0.0). I installed by compiling it from source as I did not have root access and wanted to install it in an afs directory anyway. Here is my SO question and the my answer to my own question: How do I configure ruby to compile in 64 bit mode...

 
I'm sorry I'm new to Unix system. After ./configure... Should I call "make" and then "make install"? Where should I place the source code though?
I have Ruby installed on Ubuntu, would it still work if I copied it over to AIX server?
 
nPn
You would download the ruby.tar.gz file, use gunzip to create the ruby.tar, then tar to extract the tar file into a directory. the --prefix and --exec-prefix on the configure invocation determine where the compiled code will be placed. So the source code can be extracted anywhere you like. Once it is extracted you cd into that directory and run the ./configure, followed by make and make install.
I don't think you can copy it from Ubuntu, particularly if the Ubuntu install is on another server. AIX runs on POWER processors, your Ubuntu install is probably on an intel processor.
 
What about dependenies? Is there a simple option to install them all?
I copied Ruby from Ubuntu and running "ruby -v" showed the version. but when I try to install a gem: "ERROR: Loading install (LoadError) load failed - /opt/freeware/lib/ruby/2.0.0/powerpc-aix5.1.0.0/openssl.so. Please issue below command for detailed reasons: /usr/sbin/execerror ruby "2 /opt/freeware/lib/libssl.so" "50 /usr/lib/libcrypto.a libcrypto.so.1.0.1" "52 libcrypto.so.1.0.1" "2 /opt/freeware/lib/ruby/2.0.0/powerpc-aix5.1.0.0/openssl.so" "50 /opt/freeware/lib/libssl.so" ERROR: While executing gem .. (NoMethodError) undefined method `invoke_with_build_args' for nil:NilClass"
 
nPn
I don't think there are too many hard dependencies, the config process go thru and checks to make sure everything it needs to compile is available, and if any of the optional dependencies are available it will configure those as well. These would be things like the tk bindings for example. BTW, another option which may or may not be acceptable to you is to install jruby.
 
Ok, I installed Jruby using steps from its website. I go to bin and run "jruby --version" and I get "ksh: jruby: not found" The binaries are right there and when I call them I get "ksh: <somebinary>: not found" Am I going crazy or doing something wrong?
 
 
2 hours later…
3:51 PM
Ok nevermind I got it running. But now I get this openssl error: ERROR: Loading command: install (LoadError)
load failed - /opt/freeware/lib/ruby/2.0.0/powerpc-aix5.1.0.0/openssl.so. Please issue below command for detailed reasons:
/usr/sbin/execerror ruby "2 /opt/freeware/lib/libssl.so" "50 /usr/lib/libcrypto.a libcrypto.so.1.0.1" "52 libcrypto.so.1.0.1" "2 /opt/freeware/lib/ruby/2.0.0/powerpc-aix5.1.0.0/openssl.so" "50 /opt/freeware/lib/libssl.so"
ERROR: While executing gem ... (NoMethodError)
when I try to install a gem
though I do have openssl installed
in forums it says I should recompile Ruby but how do I do that with JRuby?
recompile ruby with openssl*
 

  last day (18 days later) »