尝试安装 cabal 包 sdl-mpeg 找不到包含文件 smpeg.h
运行“cabal install sdl-mpeg”
$ ls -l /usr/include/smpeg/smpeg.h
-rw-r--r-- 1 root root 7503 2008-11-05 18:07 /usr/include/smpeg/smpeg.h
$ cabal install sdl-mpeg
Resolving dependencies...
Configuring SDL-mpeg-0.0.1...
cabal: Missing dependency on a foreign library:
* Missing header file: smpeg.h
This problem can usually be solved by installing the system package that
provides this library (you may need the "-dev" version). If the library is
already installed but in a non-standard location then you can use the flags
--extra-include-dirs= and --extra-lib-dirs= to specify where it is.
cabal: Error: some packages failed to install:
SDL-mpeg-0.0.1 failed during the configure step. The exception was:
exit: ExitFailure 1
我尝试使用 --extra-include-dirs=/usr/include/smpeg 并在 ~/.cabal/config 中设置相同的内容,但无济于事。我什至尝试链接 /usr/include 中的 smpeg.h。
我正在运行 Ubuntu 9.10 Karmic Koala
running "cabal install sdl-mpeg"
$ ls -l /usr/include/smpeg/smpeg.h
-rw-r--r-- 1 root root 7503 2008-11-05 18:07 /usr/include/smpeg/smpeg.h
$ cabal install sdl-mpeg
Resolving dependencies...
Configuring SDL-mpeg-0.0.1...
cabal: Missing dependency on a foreign library:
* Missing header file: smpeg.h
This problem can usually be solved by installing the system package that
provides this library (you may need the "-dev" version). If the library is
already installed but in a non-standard location then you can use the flags
--extra-include-dirs= and --extra-lib-dirs= to specify where it is.
cabal: Error: some packages failed to install:
SDL-mpeg-0.0.1 failed during the configure step. The exception was:
exit: ExitFailure 1
I tried using --extra-include-dirs=/usr/include/smpeg and setting the same in ~/.cabal/config, but to no avail. I even tried linking smpeg.h in /usr/include.
I'm running Ubuntu 9.10 Karmic Koala
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用“cabal -v3”,我找到了一个解决方案:
Using "cabal -v3", I tracked down a solution: