当我在我的macbook中配置SoXt时,运行配置时发生错误仅仅几秒钟之后。
configure:error:需要能够编译和链接X11库
我已经安装了XQuartz最新版本。 所以,我试图解决这个问题,如位置到x11库。但没有用。
任何想法?
这是我的配置错误日志。
checking build system type... x86_64-apple-darwin16.6.0
checking host system type... x86_64-apple-darwin16.6.0
checking target system type... x86_64-apple-darwin16.6.0
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 g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking dependency style of g++... gcc3
checking whether to enable maintainer-specific portions of Makefiles...
no
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
.....
checking windows.h usability... no
checking windows.h presence... no
checking for windows.h... no
checking for function name variable for CPP compiler... __func__
checking for function name variable for C compiler... __func__
checking if user is simian... probably not
checking whether gcc accepts -W... yes
checking whether gcc accepts -Wall... yes
checking whether gcc accepts -Wno-unused... yes
checking whether gcc accepts -Wno-multichar... yes
checking whether g++ accepts -W... yes
checking whether g++ accepts -Wall... yes
checking whether g++ accepts -Wno-unused... yes
checking whether g++ accepts -Wno-multichar... yes
checking whether g++ accepts -Woverloaded-virtual... yes
checking for GetEnvironmentVariable() function... no
checking for dlfcn.h... (cached) yes
checking for the dl library... yes
checking for X... libraries /usr/X11/lib, headers
checking whether -R must be followed by a space... neither works
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
configure: error: need to able to compile and link against X11
libraries
干杯。