Skip to content

Loading…

RVM somehow breaks Rubinius pre-installed gems #1430

Closed
brixen opened this Issue · 7 comments

3 participants

@brixen

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

rvm rubies

   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 
Using /Users/brian/.rvm/gems/rbx-head
sasha:rubinius brian$ gem list

*** LOCAL GEMS ***

bundler (1.2.3, 1.2.1)
rake (10.0.3, 0.9.2.2)
rubygems-bundler (1.1.0)
rvm (1.11.3.5)
sasha:rubinius brian$ rvm --version

rvm 1.17.6 (master) by Wayne E. Seguin , Michal Papis  [https://rvm.io/]
@mpapis mpapis closed this in 2b9532c
@brixen brixen referenced this issue in rubinius/rubinius
Closed

Missing FFI::ManagedStruct #2097

@brixen

Thanks @mpapis.

@dwbutler

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

@brixen

@dwbutler what is your platform?

@mpapis
Ruby enVironment Manager member

Looks like OSX - I'm running a test on my OSX 10.8 now

@dwbutler

Sorry, yes, it's OSX. I updated the Gist.

uname -a
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
@mpapis
Ruby enVironment Manager member

@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.

@dwbutler

Okay it looks like that did it. The FFI gem now comes preinstalled after I installed Rubinius.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.