OpenBSD unable to install therubyracer gem ERROR: Failed to build gem native extension

I am trying host OpenSourceBilling application built using Ruby on Rails framework to OpenBSD server. When i try to install gems using bundle install command, I get following error on therubyracer gem installation:

/usr/local/lib/ruby/gems/2.0/gems/libv8- `configure': You have chosen to use the version of V8 found on your system (Libv8::Location::System::NotFoundError)
and *not* the one that is bundle with the libv8 rubygem. 


it could not be located. please make sure you have a version of
v8 that is compatible with installed. You may
need to special --with-v8-dir options if it is in a non-standard

Any help in this regard will be appreciated.


update libv8 to point to version ~> in your gemfile this will work.....

Need Your Help

When should I use Inline vs. External Javascript?

javascript html performance frontend

I would like to know when I should include external scripts or write them inline with the html code, in terms of performance and ease of maintenance.

if block inside echo statement?


I suspect it's not allowable because I am getting "Parse error: syntax error, unexpected T_IF in..." error. But I couldn't find a way to accomplish my goal. Here's my code: