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-3.16.14.7/ext/libv8/location.rb:50:in `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. 

However,

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

Any help in this regard will be appreciated.

Answers


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


I was unable to install therubyracer gem in OpenBSD. As a workaround, i have installed nodejs as javascript runtime using OpenBSD package manager.

pkg install node

and removed therubyracer gem from Gemfile. Then bundle install works fine without any issue.


Need Your Help

Showing different view on button click and then pass data from child view to parent view in Android

android

I am creating an application in which I want to have Alarm like functionality. I mean on my parent view there will be a button which on click will show a view where user can take action, then when he

only assignment, call, increment, decrement, await and new object expressions can be used as a statement

c# vb.net urlencode

I have converted 4,000 lines of code from VB.net to c#... I am totally tripped up on this one problem. This keeps giving me the error that "Only assignment, call increment, decrement, await, and ...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.