簡體   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