无法在Windows上安装cairo haskell绑定
发布时间:2020-12-14 03:58:53 所属栏目:Windows 来源:网络整理
导读:我正在尝试在 Windows 7上安装cairo-0.12.4 Haskell软件包.我首先下载并解压缩Gtk 2并将其bin子目录添加到PATH.然后我尝试使用额外的库运行cabal,包括: cabal --extra-lib-dirs="d:Program Files (x86)Gtk+lib" --extra-include-dirs="d:Program Files
我正在尝试在
Windows 7上安装cairo-0.12.4 Haskell软件包.我首先下载并解压缩Gtk 2并将其bin子目录添加到PATH.然后我尝试使用额外的库运行cabal,包括:
cabal --extra-lib-dirs="d:Program Files (x86)Gtk+lib" --extra-include-dirs="d:Program Files (x86)Gtk+include" install 但是我得到了以下错误 Reading available packages... Choosing modular solver. Resolving dependencies... Ready to install cairo-0.12.4 Waiting for install task to finish... Extracting C:UsersabaillyAppDataRoamingcabalpackageshackage.haskell.orgcairo .12.4cairo-0.12.4.tar.gz to C:UsersabaillyAppDataLocalTempcairo-0.12.4-2368... Updating cairo.cabal with the latest revision from the index. creating C:UsersabaillyAppDataLocalTempcairo-0.12.4-2368cairo-0.12.4distsetup creating C:UsersabaillyAppDataLocalTempcairo-0.12.4-2368cairo-0.12.4dist creating C:UsersabaillyAppDataLocalTempcairo-0.12.4-2368cairo-0.12.4distsetup d:Program Files (x86)Haskell Platform2012.2.0.0binghc.exe --make C:UsersabaillyAppDataLocalTempcairo-0.12.4-2368cairo- 0.12.4Setup.hs -o C:UsersabaillyAppDataLocalTempcairo-0.12.4-2368cairo-0.12.4distsetupsetup.exe -odir C:Usersabailly AppDataLocalTempcairo-0.12.4-2368cairo-0.12.4distsetup -hidir C:UsersabaillyAppDataLocalTempcairo-0.12.4-2368cairo-0. 12.4distsetup -i -iC:UsersabaillyAppDataLocalTempcairo-0.12.4-2368cairo-0.12.4 -package Cabal-1.14.0 [1 of 2] Compiling SetupWrapper ( C:UsersabaillyAppDataLocalTempcairo-0.12.4-2368cairo-0.12.4SetupWrapper.hs,C:Users abaillyAppDataLocalTempcairo-0.12.4-2368cairo-0.12.4distsetupSetupWrapper.o ) [2 of 2] Compiling Main ( C:UsersabaillyAppDataLocalTempcairo-0.12.4-2368cairo-0.12.4Setup.hs,C:Usersabaill yAppDataLocalTempcairo-0.12.4-2368cairo-0.12.4distsetupMain.o ) Linking C:UsersabaillyAppDataLocalTempcairo-0.12.4-2368cairo-0.12.4distsetupsetup.exe ... C:UsersabaillyAppDataLocalTempcairo-0.12.4-2368cairo-0.12.4distsetupsetup.exe configure --verbose=2 --ghc --prefix=C:UsersabaillyAppDataRoamingcabal --user --flags=cairo_svg --flags=cairo_ps --flags=cairo_pdf --extra-include-dirs=D:Program Files (x86)Gtk+include --extra-lib-dirs=D:Program Files (x86)Gtk+lib --constraint=mtl ==2.1.2 --constraint=bytestring ==0.9.2.1 --constraint=base ==4.5.0.0 --constraint=array ==0.4.0.0 --disable-tests --disable-benchmarks [1 of 2] Compiling Gtk2HsSetup ( Gtk2HsSetup.hs,distsetup-wrapperGtk2HsSetup.o ) [2 of 2] Compiling Main ( SetupMain.hs,distsetup-wrapperMain.o ) Linking dist/setup-wrappersetup.exe ... Configuring cairo-0.12.4... Flags chosen: cairo_svg=True,cairo_ps=True,cairo_pdf=True Dependency array ==0.4.0.0: using array-0.4.0.0 Dependency base ==4.5.0.0: using base-4.5.0.0 Dependency bytestring ==0.9.2.1: using bytestring-0.9.2.1 Dependency mtl ==2.1.2: using mtl-2.1.2 Dependency cairo-pdf -any: using version 1.10.2 Dependency cairo-ps -any: using version 1.10.2 Dependency cairo-svg -any: using version 1.10.2 Dependency cairo >=1.2.0: using version 1.10.2 Using Cabal-1.14.0 compiled by ghc-7.4 Using compiler: ghc-7.4.1 Using install prefix: C:UsersabaillyAppDataRoamingcabal Binaries installed in: C:UsersabaillyAppDataRoamingcabalbin Libraries installed in: C:UsersabaillyAppDataRoamingcabalcairo-0.12.4ghc-7.4.1 Private binaries installed in: C:UsersabaillyAppDataRoamingcabalcairo-0.12.4 Data files installed in: C:UsersabaillyAppDataRoamingcabalcairo-0.12.4 Documentation installed in: C:UsersabaillyAppDataRoamingcabaldoccairo-0.12.4 Using alex version 3.0.1 found on system at: d:Program Files (x86)Haskell Platform2012.2.0.0libextralibsbinalex.exe Using ar found on system at: d:Program Files (x86)Haskell Platform2012.2.0.0mingwbinar.exe No c2hs found Using cpphs version 1.16 found on system at: c:UsersabaillyAppDataRoamingcabalbincpphs.exe No ffihugs found Using gcc version 4.5.2 found on system at: d:Program Files (x86)Haskell Platform2012.2.0.0mingwbingcc.exe Using ghc version 7.4.1 found on system at: d:Program Files (x86)Haskell Platform2012.2.0.0binghc.exe Using ghc-pkg version 7.4.1 found on system at: d:Program Files (x86)Haskell Platform2012.2.0.0binghc-pkg.exe No greencard found Using gtk2hsC2hs version 0.13.6 found on system at: c:UsersabaillyAppDataRoamingcabalbingtk2hsC2hs.exe Using gtk2hsHookGenerator found on system at: c:UsersabaillyAppDataRoamingcabalbingtk2hsHookGenerator.exe Using gtk2hsTypeGen found on system at: c:UsersabaillyAppDataRoamingcabalbingtk2hsTypeGen.exe Using haddock version 2.10.0 found on system at: d:Program Files (x86)Haskell Platform2012.2.0.0binhaddock.exe Using happy version 1.18.9 found on system at: d:Program Files (x86)Haskell Platform2012.2.0.0libextralibsbinhappy.exe No hmake found Using hpc version 0.6 found on system at: d:Program Files (x86)Haskell Platform2012.2.0.0binhpc.exe Using hsc2hs version 0.67 found on system at: d:Program Files (x86)Haskell Platform2012.2.0.0binhsc2hs.exe Using hscolour version 1.20 found on system at: c:UsersabaillyAppDataRoamingcabalbinHsColour.exe No hugs found No jhc found Using ld found on system at: d:Program Files (x86)Haskell Platform2012.2.0.0mingwbinld.exe No lhc found No lhc-pkg found No nhc98 found Using pkg-config version 0.26 found on system at: d:Program Files (x86)Gtk+binpkg-config.exe Using ranlib found on system at: d:Program Files (x86)Haskell Platform2012.2.0.0mingwbinranlib.exe Using strip found on system at: d:Program Files (x86)Haskell Platform2012.2.0.0mingwbinstrip.exe Using tar found on system at: D:Program Files (x86)Gitbintar.exe No uhc found d:Program Files (x86)Gtk+binpkg-config.exe --modversion cairo-pdf d:Program Files (x86)Gtk+binpkg-config.exe --modversion cairo-ps d:Program Files (x86)Gtk+binpkg-config.exe --modversion cairo-svg d:Program Files (x86)Gtk+binpkg-config.exe --modversion cairo setup.exe: Missing dependencies on foreign libraries: * Missing C libraries: z,cairo This problem can usually be solved by installing the system packages that provide these libraries (you may need the "-dev" versions). If the libraries are already installed but in a non-standard location then you can use the flags --extra-include-dirs= and --extra-lib-dirs= to specify where they are. Failed to install cairo-0.12.4 cabal.exe: Error: some packages failed to install: Chart-0.16 depends on cairo-0.12.4 which failed to install. cairo-0.12.4 failed during the configure step. The exception was: ExitFailure 1 splot-0.3.8 depends on cairo-0.12.4 which failed to install. 当我尝试直接安装cairo时,我得到以下内容: d:Program Files (x86)Gtk+binpkg-config.exe --modversion cairo-pdf d:Program Files (x86)Gtk+binpkg-config.exe --modversion cairo-ps d:Program Files (x86)Gtk+binpkg-config.exe --modversion cairo-svg d:Program Files (x86)Gtk+binpkg-config.exe --modversion cairo setup.exe: Missing dependencies on foreign libraries: * Missing C libraries: z,cairo This problem can usually be solved by installing the system packages that provide these libraries (you may need the "-dev" versions). If the libraries are already installed but in a non-standard location then you can use the flags --extra-include-dirs= and --extra-lib-dirs= to specify where they are. Failed to install cairo-0.12.4 World file is already up to date. cabal.exe: Error: some packages failed to install: cairo-0.12.4 failed during the configure step. The exception was: ExitFailure 1 我无能为力…… 解决方法
如果您阅读错误消息:
* Missing C libraries: z,cairo 它说您需要为库libz和cairo安装库(和头文件).在* nix系统上,这通常意味着只需使用软件包管理器安装这些软件包的-dev版本.在Windows上我假设你下载了库的源版本并安装. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- 如何使用WiX软件包安装.NET 4.5?
- Advanced Installer的可靠性如何?
- 如何在Windows上使用python2.7设置FTS3 / FTS4
- windows-server-2003 – 证明内存升级,取2
- Windows-8 – 可以在Windows 10/Windows 8/WinRT中唯一标识
- 升级Windows Server并保留UNC路径?
- 如何通过cmd最大化特定窗口?(窗口)
- 【旧文章搬运】为什么win32k.sys在System进程空间无法访问
- 如何在Windows AD域中查找锁定用户帐户的原因
- windows-phone-7 – Windows手机中的SQLCE性能非常差