gpt4 book ai didi

ubuntu - 如何在 Ubuntu 上安装 libicu-dev

转载 作者:行者123 更新时间:2023-12-02 11:54:52 24 4
gpt4 key购买 nike

我正在尝试在 Ubuntu 14.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,但错误仍然像以前一样。

如何解决这个问题?谢谢!

最佳答案

sudo apt install libicu52=52.1-6

sudo apt-get install libicu-dev

安装所需的版本。将会出现降级警告,您需要确认该警告如下所示:

The following packages will be DOWNGRADED:
libicu52
0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 0 not upgraded.
Need to get 7,643 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]

关于ubuntu - 如何在 Ubuntu 上安装 libicu-dev,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31893876/

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