Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby-on-rails-4/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby 捆绑机可以';在Fedora上找不到安装了dnf软件包的Nokogiri_Ruby_Ruby On Rails 4_Nokogiri_Fedora - Fatal编程技术网

Ruby 捆绑机可以';在Fedora上找不到安装了dnf软件包的Nokogiri

Ruby 捆绑机可以';在Fedora上找不到安装了dnf软件包的Nokogiri,ruby,ruby-on-rails-4,nokogiri,fedora,Ruby,Ruby On Rails 4,Nokogiri,Fedora,我正在尝试将一个正在工作的Rails 4应用程序移动到一个Fedora24生产系统,在那里我无法编译 我试图通过dnf软件包管理器安装ruby-sqlite3、nokogiri、json等“困难”软件包,因为Fedora提供了这些软件包的最新版本。然而,在我的Fedora系统上安装rubygem-nokogiri-1.6.8-3后,bundle找不到它,它说: $ bundle install Using rake 11.1.2 Using i18n 0.7.0 Using json 1.8.3

我正在尝试将一个正在工作的Rails 4应用程序移动到一个Fedora24生产系统,在那里我无法编译

我试图通过dnf软件包管理器安装ruby-sqlite3、nokogiri、json等“困难”软件包,因为Fedora提供了这些软件包的最新版本。然而,在我的Fedora系统上安装rubygem-nokogiri-1.6.8-3后,bundle找不到它,它说:

$ bundle install
Using rake 11.1.2
Using i18n 0.7.0
Using json 1.8.3
Using minitest 5.8.4
Using thread_safe 0.3.5
Using builder 3.2.2
Using erubis 2.7.0
Using nokogiri 1.6.8
Using rack 1.6.4
Using mime-types-data 3.2016.0221
Using arel 6.0.3
Using debug_inspector 0.0.2
Using coffee-script-source 1.10.0
Using execjs 2.6.0
Using thor 0.19.1
Using concurrent-ruby 1.0.1
Using multi_json 1.11.3
Using bundler 1.12.5
Using sass 3.4.22
Using tilt 2.0.2
Using spring 1.7.1
Using sqlite3 1.3.11
Using rdoc 4.2.2
Using tzinfo 1.2.2
Using loofah 2.0.3
Using rack-test 0.6.3
Using mime-types 3.0
Using binding_of_caller 0.7.2
Using coffee-script 2.4.1
Using uglifier 3.0.0
Using sprockets 3.6.0
Using sdoc 0.4.1
Using activesupport 4.2.6
Using rails-html-sanitizer 1.0.3
Using mail 2.6.4
Using rails-deprecated_sanitizer 1.0.3
Using globalid 0.3.6
Using activemodel 4.2.6
Using jbuilder 2.4.1
Using rails-dom-testing 1.0.7
Using activejob 4.2.6
Using activerecord 4.2.6
Using actionview 4.2.6
Using actionpack 4.2.6
Using actionmailer 4.2.6
Using railties 4.2.6
Using sprockets-rails 3.0.4
Using coffee-rails 4.1.1
Using jquery-rails 4.1.1
Using rails 4.2.6
Using sass-rails 5.0.4
Using web-console 2.3.0
Using turbolinks 2.5.3
Updating files in vendor/cache
Could not find nokogiri-1.6.8.gem for installation
虽然gem似乎能够找到它:

$ gem list

*** LOCAL GEMS ***

actionmailer (4.2.6)
actionpack (4.2.6)
actionview (4.2.6)
activejob (4.2.6)
activemodel (4.2.6)
activerecord (4.2.6)
activesupport (4.2.6)
arel (6.0.3)
bigdecimal (1.2.8)
binding_of_caller (0.7.2)
builder (3.2.2)
bundler (1.12.5)
coffee-rails (4.1.1)
coffee-script (2.4.1)
coffee-script-source (1.10.0)
concurrent-ruby (1.0.1)
debug_inspector (0.0.2)
did_you_mean (1.0.0)
erubis (2.7.0)
execjs (2.6.0)
globalid (0.3.6)
i18n (0.7.0)
io-console (0.4.5)
jbuilder (2.4.1)
jquery-rails (4.1.1)
json (1.8.3)
loofah (2.0.3)
mail (2.6.4)
mime-types (3.0)
mime-types-data (3.2016.0221)
mini_portile2 (2.0.0)
minitest (5.8.4)
multi_json (1.11.3)
nokogiri (1.6.8)
psych (2.0.17)
rack (1.6.4)
rack-test (0.6.3)
rails (4.2.6)
rails-deprecated_sanitizer (1.0.3)
rails-dom-testing (1.0.7)
rails-html-sanitizer (1.0.3)
railties (4.2.6)
rake (11.1.2)
rdoc (4.2.2)
sass (3.4.22)
sass-rails (5.0.4)
sdoc (0.4.1)
spring (1.7.1)
sprockets (3.6.0)
sprockets-rails (3.0.4)
sqlite3 (1.3.11)
thor (0.19.1)
thread_safe (0.3.5)
tilt (2.0.2)
turbolinks (2.5.3)
tzinfo (1.2.2)
uglifier (3.0.0)
web-console (2.3.0)
我的档案:

$ cat Gemfile
source 'https://rubygems.org'


# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.2.6'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', '~> 4.1.0'
# See https://github.com/rails/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'
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', '~> 0.4.0', group: :doc

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

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

## Use Puma as the app server
###gem 'puma'

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

#group :development, :test do
#  # Call 'byebug' anywhere in the code to stop execution and get a debugger console
#  gem 'byebug'
#end

group :development do
  # Access an IRB console on exception pages or by using <%= console %> in views
  gem 'web-console', '~> 2.0'

  # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
  gem 'spring'
end
$cat文件
来源'https://rubygems.org'
#捆绑边缘Rails:gem'Rails',github'Rails/Rails'
gem“轨道”,“4.2.6”
#使用sqlite3作为活动记录的数据库
gem'sqlite3'
#将SCS用于样式表
gem'sass-rails',“~>5.0”
#使用Uglifier作为JavaScript资产的压缩器
gem'uglifier','>=1.3.0'
#将CoffeeScript用于.coffee资产和视图
gem“咖啡轨”,“~>4.1.0”
#看https://github.com/rails/execjs#readme 获取更多受支持的运行时
#宝石“therubyracer”,平台::ruby
#使用jquery作为JavaScript库
gem'jqueryrails'
#Turbolinks使web应用程序中的以下链接更快。阅读更多:https://github.com/rails/turbolinks
gem“涡轮链接”
#轻松构建JSON API。阅读更多:https://github.com/rails/jbuilder
gem'jbuilder',“~>2.0”
#bundle exec rake doc:rails在doc/API下生成API。
gem'sdoc','~>0.4.0',组::doc
#使用ActiveModel具有\u安全\u密码
#gem'bcrypt',“~>3.1.7”
#使用Unicorn作为应用程序服务器
#宝石“独角兽”
##使用Puma作为应用程序服务器
###宝石“美洲狮”
#使用Capistrano进行部署
#gem“capistrano rails”,集团::开发
#小组:开发,:测试
##在代码中的任意位置调用“byebug”以停止执行并获得调试器控制台
#宝石“比伯”
#结束
小组:发展怎么办
#在异常页面上或通过在视图中使用访问IRB控制台
gem“web控制台”,“~>2.0”
#Spring通过让应用程序在后台运行来加速开发。阅读更多:https://github.com/rails/spring
宝石“春天”
结束

你知道有什么问题吗?

你能不能也添加你的
Gemfile
?在上面添加了我的Gemfile为什么bundle命令输出、gem命令输出和Gemfile如此不一致?可能是因为我分开了吗?我多次运行了它,但今晚我将按顺序运行所有三个并更新输出。此外,我已经使用bundler install--local从cache/vendor本地安装了大多数包((所有不需要编译的包))。但是,在使用或不使用--local标志时,输出不会改变。是否也可以添加您的
Gemfile
?在上面添加了我的Gemfile为什么bundle命令输出、gem命令输出和Gemfile如此不一致?可能是因为我分开了吗?我多次运行了它,但今晚我将按顺序运行所有三个并更新输出。此外,我已经使用bundler install--local从cache/vendor本地安装了大多数包((所有不需要编译的包))。但是,使用或不使用--local标志时,输出不会改变。