简体   繁体   中英

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.

更新libv8指向您的gemfile中的版本~> 3.11.8.3 ,它将起作用.....

I was unable to install therubyracer gem in OpenBSD . As a workaround, I replaced it with the nodejs javascript runtime:

gem 'node'

Make sure to remove the gem 'therubyracer' line.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM