Mountain Lion X11 libraries can't ./configure

前端 未结 1 508
夕颜
夕颜 2020-12-19 07:47

I\'m trying to build xmonad in Mountain Lion to run with Xquartz 2.7.2, tutorial found here .

I\'m using cabal to get required X11 libraries cabal install X11-

相关标签:
1条回答
  • 2020-12-19 08:28

    The toolchain won't find X11 in /opt. You need to either install X11 to a place where it can be found by the compiler/linker by default, or pass relevant -I and -L flags down to the corresponding tools. I hear this works:

     env CPPFLAGS="-I/opt/X11/include" LDFLAGS="-L/opt/X11/lib" your-build-command
    

    though I personally just symlink everything to /usr/{lib,include}.

    0 讨论(0)
提交回复
热议问题