libpandoc项目地址:https://github.com/ShabbyX/libpandoc
在运行cabal build命令编译过程中出现下面的错误:
src\Data\Generics\Rep.hs:6:18: Could not find module ‘Data.Data’ Perhaps you haven't installed the "dyn" libraries for package ‘base-4.8.1.0’ ? Use -v to see a list of the files searched for. src\Data\Generics\Rep.hs:7:18: Could not find module ‘Data.List’ Perhaps you haven't installed the "dyn" libraries for package ‘base-4.8.1.0’ ? Use -v to see a list of the files searched for. src\Data\Generics\Rep.hs:8:18: Could not find module ‘Data.Maybe’ Perhaps you haven't installed the "dyn" libraries for package ‘base-4.8.1.0’ ? Use -v to see a list of the files searched for. src\Data\Generics\Rep.hs:9:18: Could not find module ‘Data.Typeable’ Perhaps you haven't installed the "dyn" libraries for package ‘base-4.8.1.0’ ? Use -v to see a list of the files searched for. src\LibPandoc.hs:1:1: Could not find module ‘Prelude’ Perhaps you haven't installed the "dyn" libraries for package ‘base-4.8.1.0’ ? Use -v to see a list of the files searched for. src\LibPandoc.hs:25:18: Could not find module ‘Control.Arrow’ Perhaps you haven't installed the "dyn" libraries for package ‘base-4.8.1.0’ ? Use -v to see a list of the files searched for. src\LibPandoc.hs:26:18: Could not find module ‘Data.ByteString.Lazy.Char8’ Perhaps you haven't installed the "dyn" libraries for package ‘bytestring-0. 10.6.0@bytes_6elQVSg5cWdFrvRnfxTUrH’? Use -v to see a list of the files searched for. src\LibPandoc.hs:27:18: Could not find module ‘Data.Char’ Perhaps you haven't installed the "dyn" libraries for package ‘base-4.8.1.0’ ? Use -v to see a list of the files searched for. src\LibPandoc.hs:29:18: Could not find module ‘Data.Map’ Perhaps you haven't installed the "dyn" libraries for package ‘containers-0. 5.6.2@conta_LKCPrTJwOTOLk4OU37YmeN’? Use -v to see a list of the files searched for. src\LibPandoc.hs:32:18: Could not find module ‘Foreign.C.Types’ Perhaps you haven't installed the "dyn" libraries for package ‘base-4.8.1.0’ ? Use -v to see a list of the files searched for. src\LibPandoc.hs:35:18: Could not find module ‘System.IO.Unsafe’ Perhaps you haven't installed the "dyn" libraries for package ‘base-4.8.1.0’ ? Use -v to see a list of the files searched for. src\LibPandoc.hs:36:18: Could not find module ‘Text.Pandoc’ Perhaps you haven't installed the "dyn" libraries for package ‘pandoc-1.15.1 .1@pando_ImFH38EuJSZB4TlLXRNFo7’? Use -v to see a list of the files searched for. src\LibPandoc.hs:37:18: Could not find module ‘Text.Pandoc.Error’ Perhaps you haven't installed the "dyn" libraries for package ‘pandoc-1.15.1 .1@pando_ImFH38EuJSZB4TlLXRNFo7’? Use -v to see a list of the files searched for. src\LibPandoc\IO.hs:24:8: Could not find module ‘Foreign’ Perhaps you haven't installed the "dyn" libraries for package ‘base-4.8.1.0’ ? Use -v to see a list of the files searched for. src\LibPandoc\IO.hs:25:8: Could not find module ‘Foreign.C’ Perhaps you haven't installed the "dyn" libraries for package ‘base-4.8.1.0’ ? Use -v to see a list of the files searched for. src\LibPandoc\IO.hs:26:8: Could not find module ‘Foreign.C.String’ Perhaps you haven't installed the "dyn" libraries for package ‘base-4.8.1.0’ ? Use -v to see a list of the files searched for. src\LibPandoc\IO.hs:28:18: Could not find module ‘Codec.Binary.UTF8.String’ Perhaps you haven't installed the "dyn" libraries for package ‘utf8-string-1 .0.1.1@utf8s_HWC8Qen5AZrArJxFQJuE72’? Use -v to see a list of the files searched for. src\LibPandoc\Settings.hs:26:8: Could not find module ‘Data.Default’ Perhaps you haven't installed the "dyn" libraries for package ‘data-default- 0.5.3@datad_5ESg1VNmkW3BMxo7EwKQrK’? Use -v to see a list of the files searched for. src\Text\XML\Light\Generic.hs:3:18: Could not find module ‘Control.Monad’ Perhaps you haven't installed the "dyn" libraries for package ‘base-4.8.1.0’ ? Use -v to see a list of the files searched for. src\Text\XML\Light\Generic.hs:6:18: Could not find module ‘Text.XML.Light’ Perhaps you haven't installed the "dyn" libraries for package ‘xml-1.3.14@xm l_A51W7Krf6npGWsiTbJ1zZV’? Use -v to see a list of the files searched for. E:\Dev\GitHub\libpandoc>cabal build Building libpandoc-0.7... Preprocessing executable 'libpandoc.dll' for libpandoc-0.7... src\Data\Generics\Rep.hs:6:18: Could not find module ‘Data.Data’ Perhaps you haven't installed the "dyn" libraries for package ‘base-4.8.1.0’ ? Use -v to see a list of the files searched for. src\Data\Generics\Rep.hs:7:18: Could not find module ‘Data.List’ Perhaps you haven't installed the "dyn" libraries for package ‘base-4.8.1.0’ ? Use -v to see a list of the files searched for. src\Data\Generics\Rep.hs:8:18: Could not find module ‘Data.Maybe’ Perhaps you haven't installed the "dyn" libraries for package ‘base-4.8.1.0’ ? Use -v to see a list of the files searched for. src\Data\Generics\Rep.hs:9:18: Could not find module ‘Data.Typeable’ Perhaps you haven't installed the "dyn" libraries for package ‘base-4.8.1.0’ ? Use -v to see a list of the files searched for. src\LibPandoc.hs:1:1: Could not find module ‘Prelude’ Perhaps you haven't installed the "dyn" libraries for package ‘base-4.8.1.0’ ? Use -v to see a list of the files searched for. src\LibPandoc.hs:25:18: Could not find module ‘Control.Arrow’ Perhaps you haven't installed the "dyn" libraries for package ‘base-4.8.1.0’ ? Use -v to see a list of the files searched for. src\LibPandoc.hs:26:18: Could not find module ‘Data.ByteString.Lazy.Char8’ Perhaps you haven't installed the "dyn" libraries for package ‘bytestring-0. 10.6.0@bytes_6elQVSg5cWdFrvRnfxTUrH’? Use -v to see a list of the files searched for. src\LibPandoc.hs:27:18: Could not find module ‘Data.Char’ Perhaps you haven't installed the "dyn" libraries for package ‘base-4.8.1.0’ ? Use -v to see a list of the files searched for. src\LibPandoc.hs:29:18: Could not find module ‘Data.Map’ Perhaps you haven't installed the "dyn" libraries for package ‘containers-0. 5.6.2@conta_LKCPrTJwOTOLk4OU37YmeN’? Use -v to see a list of the files searched for. src\LibPandoc.hs:32:18: Could not find module ‘Foreign.C.Types’ Perhaps you haven't installed the "dyn" libraries for package ‘base-4.8.1.0’ ? Use -v to see a list of the files searched for. src\LibPandoc.hs:35:18: Could not find module ‘System.IO.Unsafe’ Perhaps you haven't installed the "dyn" libraries for package ‘base-4.8.1.0’ ? Use -v to see a list of the files searched for. src\LibPandoc.hs:36:18: Could not find module ‘Text.Pandoc’ Perhaps you haven't installed the "dyn" libraries for package ‘pandoc-1.15.1 .1@pando_ImFH38EuJSZB4TlLXRNFo7’? Use -v to see a list of the files searched for. src\LibPandoc.hs:37:18: Could not find module ‘Text.Pandoc.Error’ Perhaps you haven't installed the "dyn" libraries for package ‘pandoc-1.15.1 .1@pando_ImFH38EuJSZB4TlLXRNFo7’? Use -v to see a list of the files searched for. src\LibPandoc\IO.hs:24:8: Could not find module ‘Foreign’ Perhaps you haven't installed the "dyn" libraries for package ‘base-4.8.1.0’ ? Use -v to see a list of the files searched for. src\LibPandoc\IO.hs:25:8: Could not find module ‘Foreign.C’ Perhaps you haven't installed the "dyn" libraries for package ‘base-4.8.1.0’ ? Use -v to see a list of the files searched for. src\LibPandoc\IO.hs:26:8: Could not find module ‘Foreign.C.String’ Perhaps you haven't installed the "dyn" libraries for package ‘base-4.8.1.0’ ? Use -v to see a list of the files searched for. src\LibPandoc\IO.hs:28:18: Could not find module ‘Codec.Binary.UTF8.String’ Perhaps you haven't installed the "dyn" libraries for package ‘utf8-string-1 .0.1.1@utf8s_HWC8Qen5AZrArJxFQJuE72’? Use -v to see a list of the files searched for. src\LibPandoc\Settings.hs:26:8: Could not find module ‘Data.Default’ Perhaps you haven't installed the "dyn" libraries for package ‘data-default- 0.5.3@datad_5ESg1VNmkW3BMxo7EwKQrK’? Use -v to see a list of the files searched for. src\Text\XML\Light\Generic.hs:3:18: Could not find module ‘Control.Monad’ Perhaps you haven't installed the "dyn" libraries for package ‘base-4.8.1.0’ ? Use -v to see a list of the files searched for. src\Text\XML\Light\Generic.hs:6:18: Could not find module ‘Text.XML.Light’ Perhaps you haven't installed the "dyn" libraries for package ‘xml-1.3.14@xm l_A51W7Krf6npGWsiTbJ1zZV’? Use -v to see a list of the files searched for.
请问如何解决这个问题?
【相关资料】
GHC cannot find dynamic libraries - Could not find module ‘Data.Functor.Reverse’
Can't build on Windows due to missing dynamic libraries
Installing the shared versions of base and other modules
LGPL licensing restrictions on Windows because of integer-gmp