2014-11-24 85 views
1

我一直在嘗試幾個小時來安裝頭盔,我無法弄清楚。我遵循這裏的指示:http://helm-engine.org/guide/installing/。其完整的產出是在底部。我遇到了一些與我的問題herehere類似的情況,但解決方案無效。有什麼辦法可以在OS X Yosemite上安裝Helm嗎?在OS X上的頭盔安裝失敗

輸出:

helm-test~ cabal sandbox init 
Writing a default package environment file to 
/Users/marcusbuffett/Documents/programming/playground/helm-test/cabal.sandbox.config 
Creating a new sandbox at 
/Users/marcusbuffett/Documents/programming/playground/helm-test/.cabal-sandbox 
helm-test~ brew install sdl2 
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/sdl2-2.0.3.yosemite.bottle.1.tar.gz 
Already downloaded: /Library/Caches/Homebrew/sdl2-2.0.3.yosemite.bottle.1.tar.gz 
==> Pouring sdl2-2.0.3.yosemite.bottle.1.tar.gz 
    /usr/local/Cellar/sdl2/2.0.3: 75 files, 3.9M 
helm-test~ brew install cairo --without-x 
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/cairo-1.14.0.yosemite.bottle.1.tar.gz 
Already downloaded: /Library/Caches/Homebrew/cairo-1.14.0.yosemite.bottle.1.tar.gz 
==> Pouring cairo-1.14.0.yosemite.bottle.1.tar.gz 
    /usr/local/Cellar/cairo/1.14.0: 106 files, 6.4M 
helm-test~ brew install pango --without-x 
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/pango-1.36.8.yosemite.bottle.1.tar.gz 
Already downloaded: /Library/Caches/Homebrew/pango-1.36.8.yosemite.bottle.1.tar.gz 
==> Pouring pango-1.36.8.yosemite.bottle.1.tar.gz 
    /usr/local/Cellar/pango/1.36.8: 132 files, 4.8M 
helm-test~ cabal update 
Downloading the latest package list from hackage.haskell.org 
helm-test~ cabal install gtk2hs-buildtools 
Resolving dependencies... 
Notice: installing into a sandbox located at 
/Users/marcusbuffett/Documents/programming/playground/helm-test/.cabal-sandbox 
Configuring hashtables-1.1.2.1... 
Building hashtables-1.1.2.1... 
Installed hashtables-1.1.2.1 
Configuring gtk2hs-buildtools-0.13.0.3... 
Building gtk2hs-buildtools-0.13.0.3... 
Installed gtk2hs-buildtools-0.13.0.3 
helm-test~ cabal install helm 
Resolving dependencies... 
Notice: installing into a sandbox located at 
/Users/marcusbuffett/Documents/programming/playground/helm-test/.cabal-sandbox 
Configuring sdl2-1.3.0... 
Configuring transformers-base-0.4.3... 
Configuring utf8-string-0.3.8... 
Building utf8-string-0.3.8... 
Building transformers-base-0.4.3... 
Building sdl2-1.3.0... 
Installed transformers-base-0.4.3 
Configuring elerea-2.8.0... 
Building elerea-2.8.0... 
Installed utf8-string-0.3.8 
Configuring cairo-0.13.0.5... 
Configuring glib-0.13.0.6... 
Failed to install cairo-0.13.0.5 
Build log (/Users/marcusbuffett/Documents/programming/playground/helm-test/.cabal-sandbox/logs/cairo-0.13.0.5.log): 
[1 of 2] Compiling SetupWrapper  (/var/folders/6n/q0w_nmps7n72j9fvfy1lc40h0000gn/T/cairo-0.13.0.5-29788/cairo-0.13.0.5/SetupWrapper.hs, /var/folders/6n/q0w_nmps7n72j9fvfy1lc40h0000gn/T/cairo-0.13.0.5-29788/cairo-0.13.0.5/dist/dist-sandbox-5fb32753/setup/SetupWrapper.o) 
[2 of 2] Compiling Main    (/var/folders/6n/q0w_nmps7n72j9fvfy1lc40h0000gn/T/cairo-0.13.0.5-29788/cairo-0.13.0.5/dist/dist-sandbox-5fb32753/setup/setup.hs, /var/folders/6n/q0w_nmps7n72j9fvfy1lc40h0000gn/T/cairo-0.13.0.5-29788/cairo-0.13.0.5/dist/dist-sandbox-5fb32753/setup/Main.o) 
Linking /var/folders/6n/q0w_nmps7n72j9fvfy1lc40h0000gn/T/cairo-0.13.0.5-29788/cairo-0.13.0.5/dist/dist-sandbox-5fb32753/setup/setup ... 
[1 of 2] Compiling Gtk2HsSetup  (Gtk2HsSetup.hs, dist/setup-wrapper/Gtk2HsSetup.o) 
[2 of 2] Compiling Main    (SetupMain.hs, dist/setup-wrapper/Main.o) 
Linking dist/setup-wrapper/setup ... 
Configuring cairo-0.13.0.5... 
setup: Package xcb-shm was not found in the pkg-config search path. 
Perhaps you should add the directory containing `xcb-shm.pc' 
to the PKG_CONFIG_PATH environment variable 
Package 'xcb-shm', required by 'cairo', not found 
Building glib-0.13.0.6... 
Installed elerea-2.8.0 
Installed glib-0.13.0.6 
Installed sdl2-1.3.0 
cabal: Error: some packages failed to install: 
cairo-0.13.0.5 failed during the configure step. The exception was: 
ExitFailure 1 
helm-0.6.0 depends on cairo-0.13.0.5 which failed to install. 
pango-0.13.0.4 depends on cairo-0.13.0.5 which failed to install. 
+0

同樣的問題http://pastebin.com/qjAJufRC。你能最終安裝Helm嗎? – 2015-10-26 08:35:10

回答

5

你的問題是在這裏:

Configuring cairo-0.13.0.5... 
setup: Package xcb-shm was not found in the pkg-config search path. 
Perhaps you should add the directory containing `xcb-shm.pc' 
to the PKG_CONFIG_PATH environment variable 
Package 'xcb-shm', required by 'cairo', not found 

如果您已經安裝XQuartx,將所需的文件(XCB-shm.pc等)都在/opt/X11/lib/pkgconfig

我能夠通過第一個設置建立cairopango

export PKG_CONFIG_PATH=/opt/X11/lib/pkgconfig:/usr/local/lib/pkgconfig 

更新:

我試圖建立helm-0.6.0pango-0.13.0.3編譯錯誤。以下是我終於可以得到一個成功的構建:

  1. 陰謀得到掌舵-0.6.0
  2. CD掌舵-0.6.0
  3. 編輯helm.cabal並添加glib到第一build-depends部分
  4. 製作該文件src/FTP/Helm.hs以下編輯:
    • 行222:改變paFamily = textTypefacepaFamily = stringToGlib textTypeface
    • 添加導入:import System.Glib.UTFString (stringToGlib)
  5. 陰謀配置
  6. 小集團安裝
+0

好的,那我該怎麼辦呢? – 2014-11-24 21:15:06

+0

答覆已更新。 – ErikR 2014-11-24 22:08:06

+0

非常感謝,當我回到我的電腦時,我會嘗試。我很好奇,是不是通過了--without-x標誌,這樣就不需要XQuartz了? – 2014-11-24 22:30:47

0

除了什麼user5402說,你還需要手動安裝sdl2-1.2.0。最新版本(1.3.0)目前與helm不兼容。