Can't install sdl2 via cabal

前端 未结 2 1752
长发绾君心
长发绾君心 2021-01-18 06:32

I am trying to install helm. When I try to install it, however I get this error:

$ cabal install helm
Resolving dependencies...
Configuring sdl2         


        
2条回答
  •  无人共我
    2021-01-18 06:42

    Another thing which could happen (happened to me) for other installs is that the PKG_CONFIG_PATH variable might not point to the package config file (sdl2.pc, for me in the /usr/local/lib/pkgconfig directory). pkg-config uses some default directories ('/usr/lib/pkgconfig' and '/usr/share/pkgconfig'), but if the sdl.pc file isn't in one of these, you'll have to specify the directory in the environment variable. You can check this with echo $PKG_CONFIG_PATH

    If it turns out you need to set the variable, just use export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig (or to whatever directory your sdl2.pc file lives in)

提交回复
热议问题