Rubinius pre-installs several cached gems as part of the build process. Installing under RVM, these gems are not available. See eg:
sasha:rubinius brian$ rvm install rbx
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.6/i386/rbx-head.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
rbx-head installing #dependencies
Fetching yaml-0.1.4.tar.gz to /Users/brian/.rvm/archives
Extracting yaml to /Users/brian/.rvm/src/yaml-0.1.4
Configuring yaml in /Users/brian/.rvm/src/yaml-0.1.4.
Compiling yaml in /Users/brian/.rvm/src/yaml-0.1.4.
Installing yaml to /Users/brian/.rvm/usr
Cleaning git repo
Fetching from origin
Pulling from origin master
Copying from repo to source...
rbx-head - #configuring
rbx-head - #compiling
rbx-head - #importing default gemsets, this may take time ...
Saving wrappers to '/Users/brian/.rvm/bin'.
sasha:rubinius brian$ rvm list
jruby-head [ x86_64 ]
rbx-head [ x86_64 ]
ruby-1.8.6-p420 [ i686 ]
ruby-1.8.7-p352 [ i686 ]
ruby-1.8.7-p370 [ i686 ]
ruby-1.8.7-p371 [ i686 ]
ruby-1.9.2-p180 [ x86_64 ]
ruby-1.9.2-p290 [ x86_64 ]
ruby-1.9.3-p125 [ x86_64 ]
ruby-1.9.3-p194 [ x86_64 ]
ruby-1.9.3-p286 [ x86_64 ]
ruby-1.9.3-p327 [ x86_64 ]
ruby-1.9.3-p362 [ x86_64 ]
ruby-head [ x86_64 ]
# Default ruby not set. Try 'rvm alias create default '.
# => - current
# =* - current && default
# * - default
sasha:rubinius brian$ rvm use rbx
sasha:rubinius brian$ gem list
*** LOCAL GEMS ***
bundler (1.2.3, 1.2.1)
rake (10.0.3, 0.9.2.2)
sasha:rubinius brian$ rvm --version
rvm 1.17.6 (master) by Wayne E. Seguin , Michal Papis [https://rvm.io/]
fix installing providded gems for rbx, fix #1430
Hi, I've been trying to use the pre-installed FFI in the latest Rubinius, and have not been able to get it to work. Here's the gist documenting my attempt: https://gist.github.com/4497492
@dwbutler what is your platform?
Looks like OSX - I'm running a test on my OSX 10.8 now
Sorry, yes, it's OSX. I updated the Gist.
Darwin dbutler-mac-2.local 12.2.0 Darwin Kernel Version 12.2.0: Sat Aug 25 00:48:52 PDT 2012; root:xnu-2050.18.24~1/RELEASE_X86_64 x86_64
@dwbutler could you retry after rvm cleanup repos, I see proper code is executed but it fails to detect rbx gems directory properly for using the gems.
rvm cleanup repos
Okay it looks like that did it. The FFI gem now comes preinstalled after I installed Rubinius.
make sure provided gems are also in @global, update #1430