gpt4 book ai didi

linux - 尝试安装 HGL,X11 错误

转载 作者:太空宇宙 更新时间:2023-11-04 11:11:10 24 4
gpt4 key购买 nike

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

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

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

最佳答案

错误信息的相关位是

  configure: error: X11/extensions/Xrandr.h (from libXrandr) is required

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

关于linux - 尝试安装 HGL,X11 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23096718/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com