0. Ensure you have the typical Cygwin/Linux build tools (gcc, make, autoconf, libiconv, openssl and etc.)
1. Download source for the following:
a) LibYAML 0.1.4 from http://pyyaml.org/wiki/LibYAML
b) ruby-1.9.3-p0 source from http://ruby-lang.org
c) rubygems-1.8.11 from http://rubygems.org
2. Unzip/tar them all in /tmp
a) $ cd /tmp/yaml-0.1.4
$ ./configure && make && make install
b) $ cd /tmp/ruby-1.9.3-p0/ext/openssl
$ ruby extconf.rb
$ make && make install
c) $ cd /tmp/ruby-1.9.3-p0
$ export CPPFLAGS=-I/usr/local/include
$ export LDFLAGS=-L/usr/local/lib
$ ./configure && make && make install
e) $ cd /tmp/rubygems-1.8.11
$ ruby setup.rbWith these completed, you may now install Heroku client tool as ruby gem:
c) $ gem install heroku
You would also need Git to successful push and deploy application to Heroku, but you can get Cygwin 'git' package if you haven't already done so. NOTE: FYI, all the user built applications are usually install into /usr/local directory, while those system (comes with cygwin packages) are in /usr.
Hi Zemian,
ReplyDeleteThank you for writing up these very helpful instructions. I found one small error, the first line for installing openssl should be
b) $ cd /tmp/ruby-1.9.3/ext/openssl
not
b) $ cd /tmp/rubygems...
Thanks
Philip
This is great, although I had to flay it and re-arrange it to make it work on my system.
ReplyDeleteSteps 0 - 2; no problem
Step 3: There is no "ext/openssl" path in the rubygems directory, but there is in the ruby directory. like So I skip ahead: to step c. Besides, why am I installing gems before ruby?
Step e: installed great.
Step b: installed great.
Maybe it's because I'm on a 64-bit Win& machine?
Hello Kyle,
DeleteYes you are correct, and so did Phillip mentioned a while ago. I just didn't get a chance to correct my typo. I've corrected it now.
Thank you for the feedback.