繁体   English   中英

OpenBSD无法安装therubyracer gem错误:无法构建gem本机扩展

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

我正在尝试将使用Ruby on Rails框架构建的OpenSourceBilling应用程序托管到OpenBSD服务器。 当我尝试使用bundle install命令安装gems时,在rubyracer 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'行。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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