1
我想跟隨tutorial的圖表庫haskell。構建問題,使用macops庫與GHC
我已經安裝了開羅和gtk2hs macports。
但是當我嘗試運行實例教程,我得到以下錯誤:
$ ghc --make diagramsTutorial.lhs
Linking diagramsTutorial ...
ld: warning: in /opt/local/lib/libgtk-x11-2.0.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/lib/libgdk-x11-2.0.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/lib/libatk-1.0.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
ld: warning: in /opt/local/lib/libpangocairo-1.0.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
.. etc...
我使用的OS X 10.6.8,酷睿i5的MacBook Pro。
編輯我剛剛發現我正在使用32位haskell平臺,這可能是問題的一部分。但是,我無法安裝64位版本(安裝期間它有一個未指定的錯誤)。我找不到卸載程序。根據this page,我應該在/Library/Frameworks/GHC.framework/Tools/Uninstaller
找到一個卸載程序,但沒有任何內容。
謝謝,這是非常多的。 – 2012-01-15 00:34:04