Haskell how to resolve cabal error: Missing dependencies on foreign libraries? -
while trying cabal install gd
encountered following error
configuring gd-3000.7.3... cabal: missing dependencies on foreign libraries: * missing (or bad) header file: gd.h * missing c libraries: gd, png, jpeg problem can solved installing system packages provide these libraries (you may need "-dev" versions). ...
it says missing c libraries: gd, png, jpeg
i guess right if interpret as: missing libraries some unspecified version of: libgd
, libpng
, libjpeg
, -dev versions
.
we see here cabal didn't report versions of these libraries, , difficult figure out version of foreign libraries require.
i read gd.cabal
hackage site
there line says:
extra-libraries: gd, png, z, jpeg, m, fontconfig, freetype, expat
but doesn't versions of foreign libraries.
is there location such information available (but cabal ignores or don't know correct switch)? there cabal switch need turn on this? or case cabal @ mercy of developer of package, may or may not include information versions of foreign libraries?
i wish more general answer, not specific cabal install gd
problem only.
sorry multiple questions, think related.
Comments
Post a Comment