Search code examples
ruby-on-railsrubygemschef-infrarbenv

rbenv command line gems setup with system install


I am using the chef rbenv recipe (https://github.com/fnichol/chef-rbenv), doing a system wide install (goes into /usr/local/rbenv) with the rails lastmile cookbook (https://github.com/DanThiffault/rails-lastmile). The server works fine, I can install gems, but command line gems don't seem to work (valkyrie, mysql2psql).

Do I need to do additional work to get this working?


Solution

  • I'm new to rbenv from rvm where it just seemed to work. It looks like in rbenv you have to run :

    bundle exec gemxx
    

    Or generate binstubs:

    https://github.com/sstephenson/rbenv/wiki/Understanding-binstubs