Rails Binaries Install
I’ve traditionally installed Ruby, RubyGems and Rails via installers. Far a laugh, I thought I’d try it from binaries but I found the experience a bit rough on the edges.
Here’s some problems I encountered with workarounds - if anyone has nicer alternatives drop me a line.
RubyGems install: No such file to load — ubygems (LoadError)
To install RubyGems it’s recommended to execute
ruby setup.rb
after extracting the gems archive (more details can be found here).
First time I tried this I encountered this problem. Turns out the cause of this was some legacy environment variables lying around from an old install, as detailed here. So I removed RUBYOPT and tried again.
RubyGems install: zlib.dll not found
Second time I executed ruby setup.rb this problem surfaced. I downloaded the dll via zlib.net, renamed the dll from zlib1.dll to zlib.dll, placed it in the ruby/bin directory and tried again.
Viola! Success! RubyGems setup complete.
Rails install: Could not find rails (> 0) in any repository
When attempting to install rails I received this error. Google told me this was the most common solution, but the last comment was the winner.
Run gem install rails -y the second time and you’re done.
Rails console startup: readline.dll not found
Yet another dll missing! On this occasion Google said download the readline package for windows and do the right things with the dll.
Viola!
For what it’s worth I can handle the first problem, but the others seem a tad unnecessary.
