2012-09-11 20 views
2

所以我打算尝试使用运行时代码重新加载,并且IIRC插件是要走的路。尝试安装插件程序包的问题

但在我的msys终端上,编译失败。这是一个包错误还是我错过了依赖关系?

我的GHC来自最新的Haskell平台7.4.1。

在此先感谢。

[email protected] ~ 
$ cabal install plugins 
Resolving dependencies... 
Configuring plugins-1.5.2.3... 
configure: WARNING: unrecognized options: --with-compiler, --with-gcc 
checking build system type... i686-pc-mingw32 
checking for ghc... ghc 
checking for value of __GLASGOW_HASKELL__... 704 
checking for ghc library directory... C:\Program Files (x86)\Haskell Platform\20 
12.2.0.0\lib 
checking for gcc... gcc 
checking whether the C compiler works... yes 
checking for C compiler default output file name... a.exe 
checking for suffix of executables... .exe 
checking whether we are cross compiling... no 
checking for suffix of object files... o 
checking whether we are using the GNU C compiler... yes 
checking whether gcc accepts -g... yes 
checking for gcc option to accept ISO C89... none needed 
checking for arc4random... no 
checking for a BSD-compatible install... /usr/bin/install -c 
configure: creating ./config.status 
config.status: creating config.mk 
config.status: creating testsuite/makewith/io/TestIO.conf 
config.status: creating testsuite/makewith/unsafeio/Unsafe.conf 
config.status: creating config.h 
configure: WARNING: unrecognized options: --with-compiler, --with-gcc 
Building plugins-1.5.2.3... 
Preprocessing library plugins-1.5.2.3... 
[ 1 of 12] Compiling System.Plugins.Process (src\System\Plugins\Process.hs, dis 
t\build\System\Plugins\Process.o) 
[ 2 of 12] Compiling System.Plugins.Parser (src\System\Plugins\Parser.hs, dist\ 
build\System\Plugins\Parser.o) 
[ 3 of 12] Compiling System.Plugins.LoadTypes (src\System\Plugins\LoadTypes.hs, 
dist\build\System\Plugins\LoadTypes.o) 
[ 4 of 12] Compiling System.Plugins.Consts (src\System\Plugins\Consts.hs, dist\ 
build\System\Plugins\Consts.o) 

src\System\Plugins\Consts.hs:39:23: 
    lexical error in string/character literal at character 'P' 
cabal.exe: Error: some packages failed to install: 
plugins-1.5.2.3 failed during the building phase. The exception was: 
ExitFailure 1 
+0

安装在这里工作得很好..你正在使用什么ghc版本..? – Satvik

+0

来自HP的最新版本,7.4.1 – MdxBhmt

+2

>检查__GLASGOW_HASKELL __... 704的值 –

回答

1

您应该从7.0.4版本更新您的ghc

+0

7.4.4是否在包描述7.0.4或7.4.1中? – MdxBhmt

+0

希望7.4是7.4。 –

+0

我把7.4当作741而不是704!感谢您的高举。 – MdxBhmt