0

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

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

4

2 回答 2

2

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

于 2015-05-04T12:55:48.600 回答
0

我无法therubyracerOpenBSD. 作为一种解决方法,我将其替换为nodejsjavascript 运行时:

gem 'node'

确保删除gem 'therubyracer'线。

于 2015-05-08T10:24:39.033 回答