perl install Image :: Imlib2不适用于Mac OSX Mavericks

时间:2014-07-05 22:11:13

标签: macos perl install

我正在尝试在运行OSX Mavericks的Mac上安装Image::Imlib2。我使用brew安装了Imlib2,但现在我实际上无法安装Image :: Imlib2。每当我运行make命令时,我都会收到此错误:

/usr/bin/perl Build --makefile_env_macros 1
Building Image-Imlib2
env LD_RUN_PATH=/System/Library/Perl/5.16/darwin-thread-multi-2level/CORE cc -mmacosx-version-min=10.9 -arch x86_64 -arch i386 -bundle -undefined dynamic_lookup -L/usr/local/lib -fstack-protector -o blib/arch/auto/Image/Imlib2/Imlib2.bundle lib/Image/Imlib2.o ./lib/Image/Imlib2.o -L/usr/local/Cellar/imlib2/1.4.5/lib -lImlib2 -L/usr/local/Cellar/freetype/2.5.0.1/lib -lfreetype -lz -lbz2 -lX11 -lXext -ldl -lm
ld: library not found for -lX11
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error building blib/arch/auto/Image/Imlib2/Imlib2.bundle from lib/Image/Imlib2.o ./lib/Image/Imlib2.o at /System/Library/Perl/5.16/ExtUtils/CBuilder/Base.pm line 312.
make: *** [all] Error 2

它说找不到-lX11的库。有谁知道如何解决这个问题?

0 个答案:

没有答案