不能在我的Ubuntu Linux机器上安装hmatrix [英] Can't Install hmatrix on my Ubuntu Linux machine

查看:333
本文介绍了不能在我的Ubuntu Linux机器上安装hmatrix的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在我的Ubuntu Linux机器上安装hmatrix(不知道这是否有必要,但可能会有所帮助),无论我做什么都行不通。



我运行cabal install hmatrix并得到它:

 配置hmatrix-0.13.1.0 ... 
检查外国图书馆...失败
***对不起,我无法链接GSL。
***请确保已安装相应的-dev软件包。
***您也可以使用
指定所需的库。cab安装hmatrix --configure-option = link:lib1,lib2,lib3等。
setup:包hmatrix-0.13.1.0不能在此系统上构建。
cabal:错误:某些软件包未能安装:
hmatrix-0.13.1.0在构建阶段失败。例外是:
ExitFailure 1

显然ExitFailure 1的东西是原始的剩余物程序。



运行cabal configure时,我得到

 警告: 'hs-source-dirs:lib'目录不存在。 
检查外国图书馆...失败
***对不起,我无法链接GSL。
***请确保已安装相应的-dev软件包。
***您也可以使用
指定所需的库。cab安装hmatrix --configure-option = link:lib1,lib2,lib3等。

任何帮助都将不胜感激,并感谢您的阅读。


<您必须安装C库,例如 libgsl-dev (或 -devel )和 libgsl 本身,但应该由 dev 包。 hmatrix 是一个到C库的绑定,所以你需要安装它才能安装 hmatrix



在我的方格中, ghc-pkg描述hmatrix 列表

  extra-libraries:gsl lapack gslcblas 

我不确定所有这些实际上都是构建 hmatrix 所必需的,但是也可以安装 dev code> lapack 和BLAS(在Ubuntu上可能不是 gslcblas )。


I am trying to install hmatrix on my Ubuntu Linux machine (don't know if this is necessary, but it may help) and no matter what I do it will not work.

I run cabal install hmatrix and get this:

   Configuring hmatrix-0.13.1.0...
   Checking foreign libraries... FAIL
   *** Sorry, I can't link GSL.
   *** Please make sure that the appropriate -dev packages are installed.
   *** You can also specify the required libraries using
   *** cabal install hmatrix --configure-option=link:lib1,lib2,lib3,etc.
   setup: Package hmatrix-0.13.1.0 can't be built on this system.
   cabal: Error: some packages failed to install:
   hmatrix-0.13.1.0 failed during the building phase. The exception was:
   ExitFailure 1

Apparently the ExitFailure 1 thing is a leftover from the original program.

When I run cabal configure I get

  Warning: 'hs-source-dirs: lib' directory does not exist.
  Checking foreign libraries... FAIL
  *** Sorry, I can't link GSL.
  *** Please make sure that the appropriate -dev packages are installed.
  *** You can also specify the required libraries using
  *** cabal install hmatrix --configure-option=link:lib1,lib2,lib3,etc.

Any help would be greatly appreciated and thank you for reading.

解决方案

You have to install the C libraries, something like libgsl-dev (or -devel), and libgsl itself, but that should be pulled in by the dev package. hmatrix is a binding to a C library, so you need that installed to be able to install hmatrix.

On my box, ghc-pkg describe hmatrix lists

extra-libraries: gsl lapack gslcblas

I'm not sure all of them are actually required for building hmatrix, but it wouldn't harm to also install the dev packages for lapack and BLAS (which may be something else than gslcblas on Ubuntu).

这篇关于不能在我的Ubuntu Linux机器上安装hmatrix的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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