ghc-pkg check haddock warnings - haskell

Upon a fresh install of the haskell-platform (via homebrew) (GHC x64 7.6.3) on OSX 10.9.2 I receive the following warnings when I run ghc-pkg check (see below)
Warning: haddock-interfaces: /Users/user/.cabal/share/doc/x86_64-osx-ghc-7.6.3/ghc-mod-3.1.7/html/ghc-mod.haddock doesn't exist or isn't a file
Warning: haddock-html: /Users/user/.cabal/share/doc/x86_64-osx-ghc-7.6.3/ghc-mod-3.1.7/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /Users/user/.cabal/share/doc/x86_64-osx-ghc-7.6.3/hlint-1.8.59/html/hlint.haddock doesn't exist or isn't a file
Warning: haddock-html: /Users/user/.cabal/share/doc/x86_64-osx-ghc-7.6.3/hlint-1.8.59/html doesn't exist or isn't a directory
Warning: haddock-html: /usr/local/Cellar/haskell-platform/2013.2.0.0/share/doc/mtl-2.1.2/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/local/Cellar/haskell-platform/2013.2.0.0/share/doc/transformers-0.3.0.0/html/transformers.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/local/Cellar/haskell-platform/2013.2.0.0/share/doc/transformers-0.3.0.0/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/local/Cellar/haskell-platform/2013.2.0.0/share/doc/case-insensitive-1.0.0.1/html/case-insensitive.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/local/Cellar/haskell-platform/2013.2.0.0/share/doc/case-insensitive-1.0.0.1/html doesn't exist or isn't a directory
Per the docs:
ghc-pkg check
Check the consistency of package depenencies and list broken packages.
Accepts the --simple-output flag.
I attempt to run the following command to generate haddock documentation to no avail:
sudo cabal install --reinstall --force-reinstalls --enable-documentation
The command was from a similar question a user had on the haskell mailing list.
http://www.haskell.org/pipermail/glasgow-haskell-users/2012-February/021780.html
How do I appease ghc-pkg check and remove these warnings?
CAVEAT: When I say "fresh install" I mean I have installed the Haskell-platform from scratch, and installed globally cabal-1.18.0.3and added cabal's bin directory to my path.

Those haddock warnings are annoying, but they don't cause any problems, AFAIK. I think the warnings were fixed in Cabal 1.18. I don't see them any more.
EDIT: OK, so we need to follow kosmikus's suggestion...
mv ~/.cabal ~/.cabal.SAVE
cabal update
This will create the file ~/.cabal/config. You can edit this file if you wish.
Now try building something and see if the problem is gone.

Related

mingw64 not installed properly using msys2

I am trying to install ming_w64 using msys2. I used the following command to install it:
pacman -S mingw-w64-x86_64-toolchain
After installing compiling gives the following error:
$ g++ test.cpp
g++.exe: fatal error: cannot execute 'cc1plus': CreateProcess: No such file or directory
compilation terminated.
After reinstalling ming_w64 this is shown:
:: Proceed with installation? [Y/n]
(19/19) checking keys in keyring [##################################] 100%
(19/19) checking package integrity [##################################] 100%
(19/19) loading package files [##################################] 100%
(19/19) checking for file conflicts [##################################] 100%
(19/19) checking available disk space [##################################] 100%
warning: could not get file information for mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/cc1.exe
warning: could not get file information for mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/cc1plus.exe
warning: could not get file information for mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/lto1.exe
warning: could not get file information for mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/gnat1.exe
warning: could not get file information for mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/f951.exe
warning: could not get file information for mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/cc1obj.exe
warning: could not get file information for mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0/cc1objplus.exe
Even after reinstalling I am unable to find cc1plus.exe in mingw64/lib/gcc/x86_64-w64-mingw32/11.2.0
How do I fix this?
Thanks to HolyBlackCat I solved it.
It was Windows Defender which was deleting those files. Excluding that folder fixed it.

Unable to Install glpk-hs

I've installed the Haskell Compiler and glpk-hs using the instructions here. Further, I've used cabal install glpk-hs to install required files in an attempt to compile a Haskell Program.
However, the cabal installation of glpk is not working. The following message keeps popping up:
Resolving dependencies...
Configuring glpk-hs-0.5...
Failed to install glpk-hs-0.5
Build log :
cabal: Entering directory '/var/folders/cr/9f1ltj7d4b31hmkfn03hjl_r0000gn/T/cabal-tmp-12521/glpk-hs-0.5'
Configuring glpk-hs-0.5...
cabal.real: Missing dependency on a foreign library:
Missing C library: glpk
This problem can usually be solved by installing the system package that
provides this library (you may need the "-dev" version). If the library is
already installed but in a non-standard location then you can use the flags
--extra-include-dirs= and --extra-lib-dirs= to specify where it is.
cabal:
Leaving directory '/var/folders/cr/9f1ltj7d4b31hmkfn03hjl_r0000gn/T/cabal-tmp-12521/glpk-hs-0.5'
cabal: Error: some packages failed to install:
glpk-hs-0.5 failed during the configure step. The exception was:
ExitFailure 1
As above, I have tried both installing glpk in a nonstandard location and the standard location, but in all cases, has been unable to find the glpk.
The glpsol solver, which uses GLPK is installed though, as it shows the version of which it is currently running: GLPSOL: GLPK LP/MIP Solver, v4.62
Figured it out! hmatrix-glpk had the extra directories for OS X in the .cabal file:
if os(OSX)
extra-lib-dirs: /usr/lib
extra-lib-dirs: /opt/local/lib/
include-dirs: /opt/local/include/
extra-lib-dirs: /usr/local/lib/
include-dirs: /usr/local/include/
if arch(i386)
cc-options: -arch i386
Copying this into the glpk-hs.cabal allows the installation to work.

error while loading shared libraries: libpoppler.so.58: cannot open shared object file

I compiled and install poppler-0.39.0 as per the instruction. By default header files went int \usr\local\include and lib files went into \usr\local\lib. pdftohtml is installed in \usr\local\bin.
Now when I tried to run pdftohtml it gives following error.
pdftohtml: error while loading shared libraries: libpoppler.so.58: cannot open shared object file: No such file or directory.
Though libpoppler.so.58 is present in \usr\local\lib. Please help me.
I had a similar problem on Ubuntu 18.04. After installation I got this error:
error while loading shared libraries: libpoppler.so.90: cannot open shared object file: No such file or directory
It turned out it was installed to /usr/local/lib:
Install the project...
-- Install configuration: "RelWithDebInfo"
-- Installing: /usr/local/lib/libpoppler.so.90.0.0
-- Installing: /usr/local/lib/libpoppler.so.90
-- Installing: /usr/local/lib/libpoppler.so
-- Installing: /usr/local/lib/pkgconfig/poppler.pc
-- Installing: /usr/local/lib/pkgconfig/poppler-splash.pc
-- Installing: /usr/local/lib/pkgconfig/poppler-qt5.pc
-- Installing: /usr/local/lib/pkgconfig/poppler-glib.pc
-- Installing: /usr/local/lib/pkgconfig/poppler-cairo.pc
-- Installing: /usr/local/lib/pkgconfig/poppler-cpp.pc
but the system wasn't looking there.
To check if /usr/local/lib is in the default directories to search you can take a look at /etc/ld.so.conf.d/libc.conf.
If not already there you can add: /usr/local/lib
In my case this was already the case:
# libc default configuration
/usr/local/lib
But the cache at /etc/ld.so.cache wasn't updated.
To do so run (as root / sudo):
ldconfig
Solved the problem for me. Hope this may be helpful for someone!
Just had this very same error message displayed in an Amazon Linux 64 bits box. I guess pdftotext was looking for libpoppler.so.58 inside /usr/lib64/ but the lib was located on /usr/lib
So i ran the following commands (as superuser):
$ cp /usr/lib/libpoppler.so.58.0.0 /usr/lib64
$ ldconfig
You may have to replace directories to make that fit your case.
I'm not sure if it's the most correct workaround but it worked.

Error on installation of ghc via homebrew

hi im not sure what im doing and
basically i tried to get ghc and haskell-platform on to my mac via homebrew
however for reasons that i don't understand, ghc doesn't work hence neither does haskell-platform
according to brew doctor:
Warning: Unbrewed .pc files were found in /usr/local/lib/pkgconfig.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected .pc files:
/usr/local/lib/pkgconfig/fuse.pc
its-fatbass:~ jellynom$ brew doctor
Warning: Unbrewed .pc files were found in /usr/local/lib/pkgconfig.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected .pc files:
/usr/local/lib/pkgconfig/fuse.pc
but according to someone this can be ignore???
also i cannot seem to find the file to delete it (if i should delete it)
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/ghc-7.6.3.mo
######################################################################## 100.0%
==> Pouring ghc-7.6.3.mountain_lion.bottle.1.tar.gz
==> Caveats
This brew is for GHC only; you might also be interested in haskell-platform.
==> Summary
/usr/local/Cellar/ghc/7.6.3: 5286 files, 776M
its-fatbass:~ jellynom$ brew install haskell-platform
==> Downloading http://lambda.haskell.org/platform/download/2013.2.0.0/haskell-pl
Already downloaded: /Library/Caches/Homebrew/haskell-platform-2013.2.0.0.tar.gz
==> ./configure --prefix=/usr/local/Cellar/haskell-platform/2013.2.0.0
configure: error: Your installation of ghc does not appear to work.
It cannot compile a simple program (see config.log for the details).
If you installed ghc from a generic binary tarball then it is worth
checking that you have the 'gmp' C library and header files installed.
(On Debian-based systems this package is called libgmp3-dev.)
READ THIS: https://github.com/mxcl/homebrew/wiki/troubleshooting
These open issues may also help:
https://github.com/mxcl/homebrew/issues/20956
i don't know how to check for the gmp c library and header files
and the link they recommended is completely over my head too; something about hscolor missing.
Does this mean i have other things i should have installed prior to installing ghc??? (i have nothing else installed via homebrew other than ghc and haskell-platform)
if so, what should i have installed??

trying to install hs-ffmpeg haskell package fails to find libdc1394

doing "cabal install hs-ffmpeg" fails like this:
checking for faacEncGetVersion in -lfaac... no
checking for zlibVersion in -lz... yes
checking for libdc1394... configure: error: Package requirements (libdc1394) were not met:
No package 'libdc1394' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables libdc1394_CFLAGS
and libdc1394_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
cabal: Error: some packages failed to install:
hs-ffmpeg-0.3.4 failed during the configure step. The exception was:
exit: ExitFailure 1
I have libdc1394-22 and libdc1394-22-dev installed on Ubuntu 9.10 Karmic Koala.
I'm thinking that the dependency needs to be updated to reflect the new package that supercedes libdc1394, but I'm not sure how to do that.
hs-ffmpeg's configure script is looking for a libdc1394.pc. For some reason, Ubuntu ships a libdc1394-2.pc instead.
Edit hs-ffmpeg's configure.ac to use the "correct" name and then run autoreconf, and it should work.
Something like mkdir -p ~/.pc; ln -s /usr/lib/pkgconfig/libdc1394-2.pc ~/.pc/libdc1394.pc; export PKG_CONFIG_PATH+=:~/.pc may work too.

Resources