4

我正在尝试cabal-install为 ARM 进行交叉编译。它归结为一一安装必备软件包。我可以通过以下页面配置、构建和安装一些软件包:

交叉编译haskell代码时如何安装依赖项?

直到我到达network收到此错误的包裹之后./Setup build

Setup: The program hsc2hs is required but it could not be found

在此之后,我添加了

--with-hsc2hs=arm-unknown-linux-gnueabihf-hsc2hs

切换到我的配置,但这次我遇到了

/opt/ghc-cross-7.8.3/bin/arm-unknown-linux-gnueabihf-hsc2hs: line 29: /opt/ghc-cross-7.8.3/lib/arm-unknown-linux-gnueabihf-ghc-7.8.3/bin/hsc2hs: cannot execute binary file: Exec format error

显然我的arm-unknown-linux-gnueabihf-hsc2hs工具没有在我的主机上运行。为什么会这样?例如,为什么arm-unknown-linux-gnueabihf-ghc有效但无效hsc2hs?最后,是否有安装我的原始network软件包的解决方法?

4

0 回答 0