I’m trying to build the haskell package GPipe (with the further goal of building the other packages related to GPipe). I’m building from a git repo, since the version on hackage is out-of-date/broken. GPipe depends on libGL.so, and I can build the package with $ cabal new-build --allow-newer --extra-libs-dir /…path-to-libGLU_combined…/lib
However, when I attempt to open a repl, cabal complains that it can’t find libGLso. I can confirm that libGL.so does exist in that directory. Why would new-repl fail while new-build goes through?
$ cabal new-build --allow-newer --extra-lib-dirs=/nix/store/
3gywkgvss6gc9610wmm2fp80nmdrcpa2-libGLU-combined/lib/
Build profile: -w ghc-8.6.4 -O1
In order, the following will be built (use -v for more details):
- GPipe-2.2.3 (lib) (first run)
Preprocessing library for GPipe-2.2.3..
Building library for GPipe-2.2.3..
$ cabal new-repl --allow-newer --extra-lib-dirs=/nix/store/3
gywkgvss6gc9610wmm2fp80nmdrcpa2-libGLU-combined/lib/
Build profile: -w ghc-8.6.4 -O1
In order, the following will be built (use -v for more details):
- GPipe-2.2.3 (lib) (ephemeral targets)
Preprocessing library for GPipe-2.2.3..
GHCi, version 8.6.4: http://www.haskell.org/ghc/ :? for help
<command line>: can't load .so/.DLL for: libGL.so (libGL.so: cannot open shared object file: No such file or directory)
cabal: repl failed for GPipe-2.2.3.