簡體   English   中英

Ruby rnrub與gem rinruby錯誤

[英]RubyOnRails Error with gem rinruby

我正在嘗試使用rinruby 2.0.3。

在我的Gemfile中:

gem 'rinruby', '~> 2.0.3'

當我執行bundle install時,我沒有任何問題。 但是當我執行時:

rake db:migrate

我有這個錯誤:

$ rake db:create
rake aborted!
Bundler::GemRequireError: There was an error while trying to load the gem 'rinruby'.
/home/jerviver21/workspace_upworkruby/blog1/config/application.rb:7:in `<top (required)>'
/home/jerviver21/workspace_upworkruby/blog1/Rakefile:4:in `<top (required)>'
Errno::ENOENT: No such file or directory - R
/home/jerviver21/workspace_upworkruby/blog1/config/application.rb:7:in `<top (required)>'
/home/jerviver21/workspace_upworkruby/blog1/Rakefile:4:in `<top (required)>'
(See full trace by running task with --trace)

我正在使用Ubuntu 14.04和postgreSQL 9.4.7

這是我的Gemfile:

source 'https://rubygems.org'

#Buscar en rubygems.org las implementaciones que se necesiten
#Registro y autenticacion de usuarios
gem 'devise'

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.1.5'
# Use postgresql as the database for Active Record
gem 'pg'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 4.0.3'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .js.coffee assets and views
gem 'coffee-rails', '~> 4.0.0'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer',  platforms: :ruby

# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.0'
#rinruby
gem 'rinruby', '~> 2.0.3'

# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', '~> 0.4.0',          group: :doc

# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring',        group: :development

# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'

# Use unicorn as the app server
# gem 'unicorn'

# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development

# Use debugger
# gem 'debugger', group: [:development, :test]

我剛剛測試了在Ruby 2.4.0-dev上安裝rinruby 2.0.3 gem。

首先,運行require 'rinruby'給了我一個關於沒有安裝R的錯誤。

所以我按照這些說明在Ubuntu 14.04上安裝R.

之后,要求成功了。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM