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

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

我正在尝试将使用 Ruby 在 Rails 框架上构建的 OpenSourceBilling 应用程序托管到 OpenBSD 服务器。当我尝试使用 bundle install 命令安装 gems 时,在 therubyracer gem 安装中出现以下错误:

/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. 

然而,

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

在这方面的任何帮助将不胜感激。

更新 libv8 以指向您的 gemfile 中的版本 ~> 3.11.8.3 这将工作.....

我无法在 OpenBSD 中安装 therubyracer gem。作为解决方法,我将其替换为 nodejs javascript 运行时:

gem 'node'

确保删除 gem 'therubyracer' 行。