我需要一些帮助。。。
我一直在遵循这些指示:https://www.redmine.org/account/activate?token=2375a89a6b6f6a04b05bc941e93cb3ea82c15a89
我对这一步有一个问题:使用Gem bundler安装依赖项¶这一步将查看在Gem file:%cd /var/www/redmine%bundle install中指定的依赖项
当我运行命令时,出现以下错误:
[fit54@u ~]$ cd /var/www/redmine
[fit54@u redmine]$ bundle install
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x64-mingw32, x86-mswin32. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x64-mingw32 x86-mswin32`.
/usr/share/gems/gems/psych-2.0.0/lib/psych.rb:98: warning: already initialized constant Psych::VERSION
/usr/share/ruby/psych.rb:98: warning: previous definition of VERSION was here
/usr/share/gems/gems/psych-2.0.0/lib/psych.rb:101: warning: already initialized constant Psych::LIBYAML_VERSION
/usr/share/ruby/psych.rb:101: warning: previous definition of LIBYAML_VERSION was here
Fetching gem metadata from https://rubygems.org/..........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies....
Using rake 12.3.1
Using i18n 0.7.0
Using minitest 5.11.3
Using thread_safe 0.3.6
Using tzinfo 1.2.5
Using activesupport 4.2.8
Using builder 3.2.3
Using erubis 2.7.0
Using mini_portile2 2.1.0
Fetching nokogiri 1.6.8.1
Installing nokogiri 1.6.8.1 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /home/fit54/.gem/ruby/gems/nokogiri-1.6.8.1/ext/nokogiri
/usr/bin/ruby -r ./siteconf20180406-9964-oibzlr.rb extconf.rb
--use-system-libraries
mkmf.rb can't find header files for ruby at /usr/share/include/ruby.h
extconf failed, exit code 1
Gem files will remain installed in /home/fit54/.gem/ruby/gems/nokogiri-1.6.8.1
for inspection.
Results logged to
/home/fit54/.gem/ruby/extensions/x86_64-linux/nokogiri-1.6.8.1/gem_make.out
An error occurred while installing nokogiri (1.6.8.1), and Bundler
cannot continue.
Make sure that `gem install nokogiri -v '1.6.8.1'` succeeds before bundling.
In Gemfile:
rails was resolved to 4.2.8, which depends on
actionmailer was resolved to 4.2.8, which depends on
actionpack was resolved to 4.2.8, which depends on
actionview was resolved to 4.2.8, which depends on
rails-dom-testing was resolved to 1.0.9, which depends on
nokogiri
请告诉我需要提供哪些其他信息,或者可以向我提供哪些帮助来帮助解决此问题。
sudo apt-get install ruby`ruby -e 'puts RUBY_VERSION[/\d+\.\d+/]'`-dev
没有ruby开发环境,因此无法构建本机扩展。试试上面的命令-它应该可以解决这个问题。
当我跑的时候
Gem安装bundler给我这个错误。 错误:找不到有效的宝石bundler( 解决办法是什么?
我试图在我的Mac上安装Bundler宝石。使用命令:我得到以下错误: 这显然是一个服务器问题,但我该如何着手解决这个问题呢<代码>gem更新--系统当前是最新的。是否有其他方式获得Bundler?
检测到JavaFX Ant API版本1.3结果:1 init:deps clean:正在更新属性文件:D:\softphone\build\build clean。属性删除目录D:\softphone\build clean:deps jar: 创建dir: D:\softphone\build 正在更新属性文件:D:\softphone\build\build jar。性质 已创建目录:D:\
问题内容: 我正在尝试通过Bundler 安装gem,但是它一直死于以下错误: 我通过谷歌搜索发现的大多数事情都建议传递参数来修复它。因此,基于: 我将以下内容添加到Bundler的配置中: 但是,仍然没有运气-与上述相同。 因为它快死于错误了,所以我检查了一下,并且据说它在附近,只是Bundler找不到。 有什么想法吗? 问题答案: 答案与Wrikken发布的答案相似-这是我为将来的读者而修复的
怎么修?