What Was Ruby Compiled With?

If you ever need to see the compile-time options for Ruby (–configure input), use this command:

$ ruby -rrbconfig -e "puts RbConfig::CONFIG['configure_args']"
 '--prefix=/Users/graham/.rbenv/versions/2.3.1' '--with-openssl-dir=/usr/local/opt/openssl' '--with-readline-dir=/usr/local/opt/readline' 'CC=clang' 'CFLAGS= -O3 -Wno-error=shorten-64-to-32 ' 'LDFLAGS=-L/Users/graham/.rbenv/versions/2.3.1/lib ' 'CPPFLAGS=-I/Users/graham/.rbenv/versions/2.3.1/include '

 

%d bloggers like this: