Development environment for Ruby Hack Challenge using koichisasada/rhc.
direnv
docker
git
2.13.0 or later- GNU coreutils 8.23 or later
bash
- add
rhc_exec
prefix to run build commands in the build environment - use
$(rhc_pwd)
instead of$PWD
to obtain the working directory in the build environment
This follows an instruction on (2) MRI source code structure.
$ git clone https://github.com/coord-e/rhc-build.git
$ cd rhc-build
$ git clone https://github.com/ruby/ruby.git
$ cd ruby
$ rhc_exec autoconf
$ cd ../build
$ rhc_exec ../ruby/configure --prefix=$(rhc_pwd)/../install --enable-shared
$ rhc_exec make -j
$ rhc_exec make install
$ rhc_exec ../install/bin/ruby -v