Skip to content

zw963/traveling-ruby

 
 

Repository files navigation

This is a fork for origin traveling-ruby, origin README.md please see here

This is not a completed fork of old project, and current, only linux/linux64 is supported, and only partial external library is supported, So, you can think it as a just working version pure traveling ruby.

But, anyway, it still is a traveling ruby!

Way of the Traveling Ruby

Following is the step to build newest ruby for linux.

1. cd linux folder

$ cd linux

2. build phusion/traveling-ruby-builder image yourself. (As we know, phusion offcial image is broken, that is the reason this script not working)

./setup-docker-image

3. run rake task to build expected ruby version.

Following is a example to build ruby 2.5.3.

$: rake build:2.5.3:x86_64

Caveats

  1. foreign binary package only sqlite supported is included, postgres, mysql, ICU, libssh is removed.
  2. CMake is removed. (I don't know where to use it, seem like make just working)
  3. Current supported version: 2.1.6 2.2.2 2.3.4 2.4.3 2.5.1 2.5.3 2.6.0, in fact, you can add any version you want to linux/RUBY_VERSIONS.txt, and build it.
  4. When first build, it very slow, maybe need wait 20+ minutes to finish.
  5. If you build image failed, it maybe because your kernel not compatible with docker(18.03.1-ce), try use LTS version kernel, current working version is: 4.14.90
  6. I use this build since 11 months before (2018-01), it seem like work well for my personal usage (so many ruby tools which need a portable ruby release)
  7. As changed in 76c157b, we need add -std=gnu99 to let make work, for other environment, maybe can try with -std=c99

Others

If you don't want build yourself with docker, you can download precompiled version 2.6.0-x86_64, 2.6.0-x86

Why i maintain a forked x86_64 linux version traveling ruby?

It's for my own ruby_tools project, maybe you are interested.

About

Self-contained, portable Ruby binaries

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 78.9%
  • Ruby 11.3%
  • Python 9.8%