gpt4 book ai didi

ruby-on-rails - Gem::Installer::ExtensionBuildError:错误:无法构建 gem native 扩展。 - 在 Debian 7 上安装 Redmine

转载 作者:数据小太阳 更新时间:2023-10-29 07:59:34 25 4
gpt4 key购买 nike

我按照这里的安装说明操作:

http://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_2_integrated_with_Gitolite_2_on_Debian_Wheezy_with_Apache_and_Phusion_Passenger

这是我的输出:

root@projects:~# sudo -i -u redmine -H sh -c "bundle install --without development test postgresql sqlite"
Your Gemfile lists the gem redcarpet (~> 2.3.0) more than once.
You should probably keep only one of them.
While it's not a problem now, it could cause errors if you change the version of just one of them later.
Updating https://github.com/jbox-web/gitolite-rugged.git
Updating https://github.com/jbox-web/grack.git
Fetching gem metadata from https://rubygems.org/........
Fetching version metadata from https://rubygems.org/..
Resolving dependencies...
Using rake 10.4.2
Using RedCloth 4.2.9
Using i18n 0.6.11
Using multi_json 1.10.1
Using activesupport 3.2.21
Using builder 3.0.4
Using activemodel 3.2.21
Using erubis 2.7.0
Using journey 1.0.4
Using rack 1.4.5
Using rack-cache 1.2
Using rack-test 0.6.3
Using hike 1.2.3
Using tilt 1.4.1
Using sprockets 2.2.3
Using actionpack 3.2.21
Using mime-types 1.25.1
Using polyglot 0.3.5
Using treetop 1.4.15
Using mail 2.5.4
Using actionmailer 3.2.21
Using arel 3.0.3
Using tzinfo 0.3.43
Using activerecord 3.2.21
Using activeresource 3.2.21
Using asciidoctor 1.5.2
Using bundler 1.7.13
Using coderay 1.1.0
Using creole 0.5.0
Using dalli 2.7.2
Using posix-spawn 0.3.9
Using github-markup 1.3.1
Using gitlab-grack 2.0.0.pre from https://github.com/jbox-web/grack.git (at fix_rails3)
Using gratr19 0.4.4.1

Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

/usr/bin/ruby1.9.1 extconf.rb
checking for cmake... no
ERROR: CMake is required to build Rugged.
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.

Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/bin/ruby1.9.1


Gem files will remain installed in /tmp/bundler20150209-10079-1stz4fv/rugged-0.21.4/gems/rugged-0.21.4 for inspection.
Results logged to /tmp/bundler20150209-10079-1stz4fv/rugged-0.21.4/gems/rugged-0.21.4/ext/rugged/gem_make.out
An error occurred while installing rugged (0.21.4), and Bundler cannot continue.
Make sure that `gem install rugged -v '0.21.4'` succeeds before bundling.
root@projects:~#

有什么想法吗?!如何修复

最佳答案

你需要安装cmake

sudo apt-get install cmake

关于ruby-on-rails - Gem::Installer::ExtensionBuildError:错误:无法构建 gem native 扩展。 - 在 Debian 7 上安装 Redmine,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28409225/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com