首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >正在尝试安装HGL,X11错误

正在尝试安装HGL,X11错误
EN

Stack Overflow用户
提问于 2014-04-16 08:09:48
回答 1查看 670关注 0票数 0

我一直在尝试安装HGL (Haskell图形库),我使用了cabal install HGL-3.2.0.5命令。这就是我要说的:

代码语言:javascript
复制
Resolving dependencies...
Configuring X11-1.6.1.1...
configure: WARNING: unrecognized options: --with-compiler, --with-gcc
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for X... libraries , headers 
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking whether to build Xinerama... yes
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking X11/extensions/Xinerama.h usability... no
checking X11/extensions/Xinerama.h presence... no
checking for X11/extensions/Xinerama.h... no
WARNING: Xinerama headers not found. Building without Xinerama support
checking X11/extensions/Xrandr.h usability... no
checking X11/extensions/Xrandr.h presence... no
checking for X11/extensions/Xrandr.h... no
configure: error: X11/extensions/Xrandr.h (from libXrandr) is required
cabal: Error: some packages failed to install:
HGL-3.2.0.5 depends on X11-1.6.1.1 which failed to install.
X11-1.6.1.1 failed during the configure step. The exception was:
ExitFailure 1

我用谷歌搜索了很多,但它对我的帮助还不够。有人能帮我解决这个问题吗?谢谢!

EN

回答 1

Stack Overflow用户

发布于 2014-04-16 08:17:50

错误消息的相关位是

代码语言:javascript
复制
  configure: error: X11/extensions/Xrandr.h (from libXrandr) is required

cabal不安装C依赖项,所以你需要单独安装libXrandr (例如,通过你的发行版的包管理器)。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/23096718

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档