我正在尝试cabal-install
为 ARM 进行交叉编译。它归结为一一安装必备软件包。我可以通过以下页面配置、构建和安装一些软件包:
直到我到达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
软件包的解决方法?