πŸš— Versions of Ruby that can be installed and run from anywhere on the filesystem.
Ruby
Switch branches/tags
Clone or download
Latest commit 77d3e18 Jul 13, 2018

README.md

Homebrew Portable Ruby

Formulae and tools to build versions of Ruby that can be installed and run from anywhere on the filesystem.

How do I install these formulae?

Just brew install homebrew/portable-ruby/<formula>.

How do I build packages for these formulae?

macOS

Run brew portable-package <formula>. Ideally inside an OS X 10.5 VM so it is compatible with old macOS versions.

Linux (x86_64)

Run brew portable-package <formula>. Ideally this should be run inside the Debian Wheezy Docker container with:

docker build -f docker/Dockerfile.x86_64 -t homebrew-portable:x86_64 .
docker run -t -i homebrew-portable:x86_64
brew portable-package <formula>
docker ps -n=5
CONTAINER_ID=...
docker cp $CONTAINER_ID:/home/linuxbrew/... .

Linux (32-bit ARM)

Run brew portable-package <formula>. Ideally this should be run inside the Raspbian Wheezy Docker container with:

docker build -f docker/Dockerfile.arm -t homebrew-portable:arm .
docker run -t -i homebrew-portable:arm
brew portable-package <formula>
docker ps -n=5
CONTAINER_ID=...
docker cp $CONTAINER_ID:/home/linuxbrew/... .

Current Status

Formula macOS 10.12 OS X 10.5 OS X 10.4 Linux (x86_64) Linux (32-bit ARM)
zlib N/A N/A N/A βœ…
ncurses N/A N/A N/A βœ…
OpenSSL βœ… βœ… βœ… βœ…
Readline βœ… βœ… βœ… βœ…
libYAML βœ… βœ… βœ… βœ…
Ruby 2.3 βœ…βš οΈ βœ…βš οΈ βœ…βš οΈ βœ…βš οΈ[1]

macOS/OS X builds on 10.6 and newer target 32-bit/64-bit Intel Macs. OS X builds on 10.4 and 10.5 target 32-bit PowerPC and Intel Macs.

Linux builds target x86_64 and 32-bit ARM (Raspberry Pi) platforms.

  1. irb on Linux builds seems to fail to link to ncurses statically. If portable-ncurses is removed, irb will fail to handle left, right or backspace keystroke.

License

Code is under the BSD 2 Clause (NetBSD) license.