hubris无法安装:缺少C库:ruby,ruby,ruby [英] hubris fails to install with: Missing C libraries: ruby, ruby, ruby

查看:78
本文介绍了hubris无法安装:缺少C库:ruby,ruby,ruby的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我拼命尝试安装Hubris,但是每当我运行"cabal install"时安装都会失败.

I am desperately trying to install Hubris but the installation fails whenever I run "cabal install".

链接到Hurbis:
https://github.com/mwotton/Hubris/tree/master/Haskell

Link to Hurbis:
https://github.com/mwotton/Hubris/tree/master/Haskell

链接到Cabal文件:
https://github.com/mwotton/Hubris/blob/master/Haskell /hubris.cabal

Link to the Cabal file:
https://github.com/mwotton/Hubris/blob/master/Haskell/hubris.cabal

失败的cabal命令是:

The cabal command that fails is:

cabal install --extra-include-dirs=/usr/include/ruby-1.9.1/x86_64-linux --extra-include-dirs=/usr/include/ruby-1.9.1 --extra-lib-dirs=/usr/lib --user  --enable-shared  --with-ghc=/usr/local/bin/ghc

错误消息是:

Resolving dependencies...
Configuring hubris-0.0.4...
cabal: Missing dependencies on foreign libraries:
* Missing C libraries: ruby, ruby, ruby
This problem can usually be solved by installing the system packages that
provide these libraries (you may need the "-dev" versions). If the libraries
are already installed but in a non-standard location then you can use the
flags --extra-include-dirs= and --extra-lib-dirs= to specify where they are.
cabal: Error: some packages failed to install:
hubris-0.0.4 failed during the configure step. The exception was:
ExitFailure 1

前刀错误相同:

+install -c tmp/x86_64-linux/stub/1.9.3/stub.so lib/stub.so
cabal: Missing dependencies on foreign libraries:
* Missing C libraries: ruby, ruby, ruby
This problem can usually be solved by installing the system packages that
provide these libraries (you may need the "-dev" versions). If the libraries
are already installed but in a non-standard location then you can use the
flags --extra-include-dirs= and --extra-lib-dirs= to specify where they are.
cabal: Error: some packages failed to install:
hubris-0.0.4 failed during the configure step. The exception was:
ExitFailure 1
rake aborted!
ERROR: ran cabal update; cd Haskell; cabal install --extra-include-    
dirs=/usr/include/ruby-1.9.1/x86_64-linux --extra-include-dirs=/usr/include/ruby-1.9.1 -
-extra-lib-dirs=/usr/lib --user  --enable-shared  --with-ghc=/usr/local/bin/ghc, got 
Downloading the latest package list from hackage.haskell.org

我还安装了"ruby​​-dev",例如

I also installed 'ruby-dev', e.g.

apt-get install ruby1.9.1-dev

运行cabal命令时,错误可能与缺少的头文件和错误的包含目录有关.

Probably the error is related to missing header files and wrong include directories when I run the cabal command.

.

系统配置:

 ubuntu 12.04
 GHC version 7.4.1
 ruby version 1.9.3p0
 gem version 1.8.24

推荐答案

您应该使用rake安装Hubris.只需在存储库的根目录中调用rake即可.构建库的任务将为您找到相关的ruby include目录.

You should install Hubris using rake. Simply invoking rake in the root of the repository should work. The task that builds the library will find the relevant ruby include directories for you.

我必须进行一些更改才能使编译器与现代Haskell一起使用(例如Haskell Platform 2012.2.0.0).可以在 https://github.com/dflemstr/Hubris 上找到这些更改.

I had to make some changes to make the compile work with modern Haskell (E.g. Haskell Platform 2012.2.0.0). The changes are available at https://github.com/dflemstr/Hubris.

它在Arch Linux上对我有效:

It works for me on Arch Linux:

Arch ... well it's rolling release, so there is no version number
GHC version 7.4.2
ruby version 1.9.3p194 (2012-04-20 revision 35410)
gem version 1.8.23

这篇关于hubris无法安装:缺少C库:ruby,ruby,ruby的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆