无法在Ubuntu

时间:2017-07-12 17:22:27

标签: ruby ubuntu rubygems ubuntu-17.04

我有一段时间在Ubuntu上安装unf_ext 0.7.4。我已经尝试了各种形式的Google搜索,您可以想象并安装了我能想到的几乎所有内容,这是我迄今为止所安装的内容:

  • libgmp-dev的
  • ruby​​-dev
  • zlib1g-dev
  • liblzma-dev的
  • 建立必要的
  • build-essential patch
  • 的libxml2
  • libxslt1.1
  • openssl
  • libreadline6
  • libreadline6-dev
  • curl
  • git-core
  • zlib1g
  • zlib1g-dev
  • libssl-dev
  • libyaml-dev
  • libsqlite3-0
  • libsqlite3-dev
  • sqlite3(在某个地方找到了一个说这会有帮助的链接?)
  • libxml2-dev
  • libxslt-dev
  • autoconf
  • libc6-dev
  • ncurses-dev
  • automake
  • libtool
  • 野牛

然而,在安装了所有这些之后,它仍然无效,所以我尝试了

  • sudo apt-get update && sudo apt-get install libxml2-dev && sudo apt-get install libxslt-dev && sudo gem install unf_ext

在此期间我收到此错误:

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:
 libxml2-dev : Depends: libxml2 (= 2.9.1+dfsg1-3ubuntu4.9) but 2.9.4+dfsg1-2.2 is to be installed
E: Unable to correct problems, you have held broken packages.

但是,dpkg --get-selectionshold上没有显示任何软件包,并且所有软件包都已安装。如何成功安装此gem?

1 个答案:

答案 0 :(得分:0)

我遇到了在Ubuntu上安装unf_ext的类似问题。我不得不在我的服务器上添加一个交换文件。一旦我这样做,我就能安装unf_ext gem。