简体   繁体   English

无法在Ubuntu上安装Ruby gem unf_ext 0.7.4

[英]Unable to install Ruby gem unf_ext 0.7.4 on Ubuntu

I am having a hell of a time installing unf_ext 0.7.4 on Ubuntu. unf_ext 0.7.4在Ubuntu上安装unf_ext 0.7.4 I've tried every form of Google searching you can possibly imagined and installed almost everything I could think of, here's what I've installed so far: 我已经尝试了您可以想象的各种形式的Google搜索,并安装了几乎所有我能想到的东西,这是到目前为止我已经安装的内容:

  • libgmp-dev libgmp-dev的
  • ruby-dev 红宝石开发
  • zlib1g-dev 的zlib1g-dev的
  • liblzma-dev liblzma-dev的
  • build-essential 建立必要的
  • build-essential patch 构建基本补丁
  • libxml2 libxml2的
  • libxslt1.1 libxslt1.1
  • openssl OpenSSL的
  • libreadline6 libreadline6
  • libreadline6-dev libreadline6-dev的
  • curl 卷曲
  • git-core git的核心
  • zlib1g 的zlib1g
  • zlib1g-dev 的zlib1g-dev的
  • libssl-dev 的libssl-dev的
  • libyaml-dev libyaml-dev的
  • libsqlite3-0 libsqlite3-0
  • libsqlite3-dev libsqlite3-dev的
  • sqlite3 (found a link somewhere that said this would help?) sqlite3(在某处找到一个链接说有帮助吗?)
  • libxml2-dev 的libxml2-dev的
  • libxslt-dev 的libxslt-dev的
  • autoconf autoconf的
  • libc6-dev libc6的-dev的
  • ncurses-dev ncurses的开发
  • automake automake的
  • libtool libtool的
  • bison 野牛

However after having all of these installed it still does not work, so I tried 但是,在安装了所有这些功能后,它仍然无法正常工作,因此我尝试了

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

During that I get this error: 在此期间,我得到此错误:

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.

However, dpkg --get-selections displays no packages on hold and all are installed. 但是, dpkg --get-selections显示任何hold软件包,并且所有软件包都已安装。 How can I successfully get this gem installed? 我如何成功安装此gem?

I ran into a similar issue with installing unf_ext on Ubuntu. 我在Ubuntu上安装unf_ext时遇到了类似的问题。 I had to add a swapfile to my server. 我必须在服务器上添加交换文件。 Once I did that I was able to install the unf_ext gem. 一旦完成,就可以安装unf_ext gem。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM