[英]LLVM With Haskell, Strange Linker Error
I just installed LLVM (3.0) successfully, and got the Hackage bindings (3.0.0.0). 我刚刚成功安装了LLVM(3.0),并获得了Hackage绑定(3.0.0.0)。 However when I try to use it, I get the following linker error:
但是,当我尝试使用它时,出现以下链接器错误:
Loading package llvm-base-3.0.0.0 ... can't load .so/.DLL for: (dlopen(lib.dylib, 9): image not found)
正在加载软件包llvm-base-3.0.0.0 ...无法为以下文件加载.so / .DLL:(dlopen(lib.dylib,9):找不到图像)
There is no name after "for: ", which makes this frustrating, because I don't know what it can't find. “ for:”之后没有名称,这使它感到沮丧,因为我不知道找不到什么。 I know there isn't much information to go on, but does anyone have any idea why this could be happening?
我知道没有太多要继续的信息,但是有人知道为什么会发生这种情况吗?
I am running Mac OS X, in case it matters. 如果有问题,我正在运行Mac OSX。
It's a bug in the llvm bindings installer. 这是llvm绑定安装程序中的错误。 I had it patched locally and just sent a pull request to bos, hopefully it will get merged soon.
我在本地对其进行了修补,并刚刚向bos发送了拉取请求 ,希望它将很快合并。
To fix your problem without the patch, find the llvm-base package config file. 要在没有补丁的情况下解决问题,请找到llvm-base软件包配置文件。 Mine is located here:
我的位于这里:
~/.ghc/x86_64-darwin-7.4.1/package.conf.d/llvm-base-3.0.0.0-*.conf
Locate this line and delete it: extra-ghci-libraries: ""
找到此行并将其删除:
extra-ghci-libraries: ""
Then run: ghc-pkg recache --user
然后运行:
ghc-pkg recache --user
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.