On Fri, May 3, 2013 at 2:19 PM, Chris Cappuccio <[email protected]> wrote:
> Jeremy Evans [[email protected]] wrote: > > On Fri, May 3, 2013 at 10:13 AM, Chris Cappuccio <[email protected]> > wrote: > > > > > hi > > > > > > trying to get some rails stuff working but the ruby-gem port > > > keeps trying to install libv8 when it is already installed via > > > ports. clue stick? > > > > > > # thin20 start > > > > Using rack adapter > > > Could not find libv8-3.11.8.13 in any of the sources > > > Run `bundle install` to install missing gems. > > > > > > > > It appears to be trying to install the ruby libv8 gem, not the libv8 > shared > > library (which is probably what you mean by "installed via ports"). What > > happens when you run `bundle install`? What are the contents of Gemfile > > and Gemfile.lock? > > Well I installed libv8 from ports and gem from ports. But then it tries to > install > libv8 again. Not knowing anything about ruby/rails/whatever this stuff is, > I was hoping > someone could tell me how to make it work on OpenBSD ports ruby/gem :) > Like I mentioned earlier, there's libv8 the shared library, and libv8 the ruby gem. The port you installed is for the shared library. The rails app is complaining because it wants you to install the libv8 ruby gem. The Gemfile includes gem 'libv8', so it appears to be a direct dependency of the rails app you are working on. You didn't mention what happens when you run `bundle install`. As the rails app you are working on uses bundler, running `bundle install` is basically the first thing you should do after cloning the repository. Thanks, Jeremy > > Gemfile: > > # cat Gemfile > source 'https://rubygems.org' > > gem 'rails', '3.2.12' > > # Bundle edge Rails instead: > # gem 'rails', :git => 'git://github.com/rails/rails.git' > > #gem 'sqlite3' > gem 'pg' > gem 'mysql2', :git => 'git://github.com/brianmario/mysql2.git' > gem 'devise' > gem 'formtastic' > gem 'geocoder' > gem 'therubyracer' > gem 'will_paginate', '~> 3.0' > gem 'ri_cal' > gem 'nested_form' > gem 'libv8' >
