You are not logged in.

#1 2011-02-10 02:26:02

Xiong Chiamiov
Member
From: central coast, california
Registered: 2008-06-18
Posts: 142
Website

rvm and Ruby Packaging Guidelines

While updating one of my Ruby pkgbuilds, I decided I needed to package crack.  All went well with the standard pkgbuild, but when I checked if I could require it in irb, I got a LoadError.

Here's the short of it:  with rvm installed, the standard rubygem pkgbuild puts the gem in ~/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/gems/1.9.1, but rubygems looks for gems in ~/.rvm/gems/ruby-1.9.2-p0/.

Upstream bug?

Offline

#2 2011-02-12 22:40:16

mnemonikk
Member
Registered: 2011-02-12
Posts: 1

Re: rvm and Ruby Packaging Guidelines

I don't think this is a bug in the PKGBUILD. You should do

rvm use system

before doing makepkg. You could argue that makepkg should be made aware of rvm and switch to the system ruby when rvm is active. Anyway, packaged gems aren't very useful when you're using rvm.

Offline

Board footer

Powered by FluxBB