我正在尝试使用ubuntu14.10上的gem安装gollum。
当我尝试使用gem install gollum
时,我接受了以下错误:
/usr/bin/ruby2.1 extconf.rb mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h ERROR: Error installing gollum: ERROR: Failed to build gem native extension. Building has failed. See above output for more information on the failure. extconf failed, exit code 1 Gem files will remain installed in /var/lib/gems/2.1.0/gems/charlock_holmes-0.7.3 for inspection. Results logged to /var/lib/gems/2.1.0/extensions/x86_64-linux/2.1.0/charlock_holmes-0.7.3/gem_make.out
我发现原因是之前应该安装包libicu-dev。
所以,我使用sudo apt-get install libicu-dev
,但接受了错误:
$ sudo apt-get install libicu-dev Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: libicu-dev : Depends: libicu52 (= 52.1-6) but 52.1-6ubuntu0.3 is to be installed E: Unable to correct problems, you have held broken packages.
此外,我尝试apt-get install -f
,但错误与以前一样。
我该如何解决这个问题?谢谢!
答案 0 :(得分:1)
apt install libicu52=52.1-6
sudo apt-get install libicu-dev