I'm trying to install the ghcjs-dom package on Mac OSX. It's been bumpy as there are a lot of dependencies. Webkitgtk3 is my current nemesis
cabal install ghcjs-dom
Resolving dependencies...
Configuring webkitgtk3-0.14.1.1...
Failed to install webkitgtk3-0.14.1.1
Build log ( /Users/markkaravan/.cabal/logs/webkitgtk3-0.14.1.1.log ):
[1 of 2] Compiling SetupWrapper ( /var/folders/br/4zwhphlx3816v87cc0bb5sxh0000gn/T/cabal-tmp-24401/webkitgtk3-0.14.1.1/SetupWrapper.hs, /var/folders/br/4zwhphlx3816v87cc0bb5sxh0000gn/T/cabal-tmp-24401/webkitgtk3-0.14.1.1/dist/setup/SetupWrapper.o )
[2 of 2] Compiling Main ( /var/folders/br/4zwhphlx3816v87cc0bb5sxh0000gn/T/cabal-tmp-24401/webkitgtk3-0.14.1.1/dist/setup/setup.hs, /var/folders/br/4zwhphlx3816v87cc0bb5sxh0000gn/T/cabal-tmp-24401/webkitgtk3-0.14.1.1/dist/setup/Main.o )
Linking /var/folders/br/4zwhphlx3816v87cc0bb5sxh0000gn/T/cabal-tmp-24401/webkitgtk3-0.14.1.1/dist/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 webkitgtk3-0.14.1.1...
setup: The pkg-config package 'webkitgtk-3.0' version >=1.8 is required but it
could not be found.
cabal: Error: some packages failed to install:
ghcjs-dom-0.2.3.1 depends on webkitgtk3-0.14.1.1 which failed to install.
webkitgtk3-0.14.1.1 failed during the configure step. The exception was:
ExitFailure 1
I've tried the following commands to install this sucker:
brew install gtk+3
brew install webkitgtk
brew install webkitgtk3
brew install webkitgtk+3
cabal install webkitgtk3
...but no such luck. does anyone know how to install this package?
As I'm still running into this problem now, I've created a repository here with an attempt at a homebrew tap to solve this problem. It's not fully functional yet but I think it's close.
Related
I've been trying for a couple hours to install Helm, and I can't figure it out. I followed the instructions here : http://helm-engine.org/guide/installing/. The full output of which is at the bottom. I've come across a couple cases which seemed similar to my problem here and here, but the solutions didn't work. Is there any way to install Helm on OS X Yosemite?
Output:
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.
Your problem is here:
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
If you have installed XQuartx, the required files (xcb-shm.pc, etc.) are in /opt/X11/lib/pkgconfig.
I was able to build cairo and pango by first setting:
export PKG_CONFIG_PATH=/opt/X11/lib/pkgconfig:/usr/local/lib/pkgconfig
Update:
I got compilation errors trying to build helm-0.6.0 against pango-0.13.0.3. Here's how I was finally able to get a successful build:
cabal get helm-0.6.0
cd helm-0.6.0
Edit helm.cabal and add glib to the first build-depends section
Make the following edits on the file src/FTP/Helm.hs:
line 222: change paFamily = textTypeface to paFamily = stringToGlib textTypeface
add the import: import System.Glib.UTFString (stringToGlib)
cabal configure
cabal install
In addition to what user5402 said, you will also need to manually install sdl2-1.2.0. The latest version (1.3.0) is not compatible with helm currently.
I have Ubuntu 14.04LTS. I downloaded the latest ghc-7.8.3 from http://www.haskell.org/ghc/download_ghc_7_8_3#x86_64linux and installed it to /usr/local.
Then I updated my cabal to version 1.20.0.3.
I typed cabal install QuickCheck into my terminal, and got:
Resolving dependencies...
Configuring tf-random-0.5...
Building tf-random-0.5...
Preprocessing library tf-random-0.5...
[1 of 4] Compiling System.Random.TF.Gen ( src/System/Random/TF/Gen.hs, dist/build/System/Random/TF/Gen.o )
[2 of 4] Compiling System.Random.TF.Init ( src/System/Random/TF/Init.hs, dist/build/System/Random/TF/Init.o )
src/System/Random/TF/Init.hs:94:5: Warning:
In the use of ‘bitSize’ (imported from Data.Bits):
Deprecated: "Use 'bitSizeMaybe' or 'finiteBitSize' instead"
[3 of 4] Compiling System.Random.TF.Instances ( src/System/Random/TF/Instances.hs, dist/build/System/Random/TF/Instances.o )
[4 of 4] Compiling System.Random.TF ( src/System/Random/TF.hs, dist/build/System/Random/TF.o )
/usr/bin/ld: cannot find -lHSrandom-1.0.1.1-ghc7.8.3
collect2: error: ld returned 1 exit status
Failed to install tf-random-0.5
cabal: Error: some packages failed to install:
QuickCheck-2.7.5 depends on tf-random-0.5 which failed to install.
tf-random-0.5 failed during the building phase. The exception was:
ExitFailure 1
BTW, I already have haskell-platform with ghc-7.6.3 installed via apt-get before.
I remember having a similar issue when setting up ghc-7.8. It has something to do with the new cabal, which somehow isn't compatible with libraries installed with an older versio (but it fails to give the correct problem reason.
Anyway, I think reinstalling the packages in question
cabal install random --reinstall --force-reinstalls
sets it up so cabal install tf-random should then succeed.
The cabal install of yesod-platform hangs downloading xss-sanitize. NetHogs shows no network activity related to this download.
$ cabal install yesod-platform
Resolving dependencies...
Downloading xss-sanitize-0.3.4...
Other packages download and install without delay.
I'm on Fedora 18. The haskell-platform and cabal-install are up-to-date from the repos.
$ cabal --version
cabal-install version 0.14.0
using version 1.14.0 of the Cabal library
$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.4.1
Edit
I left it run overnight it seemed to give up on xss-sanitizer, and continued installing the other dependencies. Here is the tail.
...
Configuring yesod-test-1.2.1...
Building yesod-test-1.2.1...
Preprocessing library yesod-test-1.2.1...
[1 of 3] Compiling Yesod.Test.CssQuery ( Yesod/Test/CssQuery.hs, dist/build/Yesod/Test/CssQuery.o )
[2 of 3] Compiling Yesod.Test.TransversingCSS ( Yesod/Test/TransversingCSS.hs, dist/build/Yesod/Test/TransversingCSS.o )
[3 of 3] Compiling Yesod.Test ( Yesod/Test.hs, dist/build/Yesod/Test.o )
Yesod/Test.hs:113:1:
Warning: In the use of `runFakeHandler'
(imported from Yesod.Core, but defined in yesod-core-1.2.4.2:Yesod.Core.Internal.Run):
"Usually you should *not* use runFakeHandler unless you really understand how it works and why you need it."
Registering yesod-test-1.2.1...
Installing library in /home/smithd/.cabal/lib/yesod-test-1.2.1/ghc-7.4.1
cabal: Error: some packages failed to install:
xss-sanitize-0.3.4 failed while downloading the package. The exception was:
<socket: 4>: hGetBufSome: timeout (Connection timed out)
yesod-1.2.2.1 depends on xss-sanitize-0.3.4 which failed to install.
yesod-auth-1.2.2.1 depends on xss-sanitize-0.3.4 which failed to install.
yesod-form-1.3.2.1 depends on xss-sanitize-0.3.4 which failed to install.
yesod-platform-1.2.4.2 depends on xss-sanitize-0.3.4 which failed to install.
[smithd#lin2900 ~]$ cabal install yesod-platform
My companies internet filter was blocking the haskell-xss-sanitize package as a possible XSS threat. Specifically the test modules. Have your admin white-list hackage if possible.
I am using the most recent version of GHC distributed with Ubuntu 11.10 (7.0.3).
When I try to install glade, I get this:
$ cabal install glade
Resolving dependencies...
Downloading glade-0.12.1...
[1 of 2] Compiling SetupWrapper ( /tmp/glade-0.12.129125/glade-0.12.1/SetupWrapper.hs, /tmp/glade-0.12.129125/glade-0.12.1/dist/setup/SetupWrapper.o )
[2 of 2] Compiling Main ( /tmp/glade-0.12.129125/glade-0.12.1/Setup.hs, /tmp/glade-0.12.129125/glade-0.12.1/dist/setup/Main.o )
Linking /tmp/glade-0.12.129125/glade-0.12.1/dist/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 glade-0.12.1...
Preprocessing library glade-0.12.1...
gtk2hsC2hs: UName: root name supply used after saving
cabal: Error: some packages failed to install:
glade-0.12.1 failed during the building phase. The exception was:
ExitFailure 1
gtk2hs-buildtools and gtk were successfully installed via cabal. But glade does not install. Is this a bug?
I've managed to install the latest glade package via
$ cabal unpack glade
...
$ cd glade-0.12.1
$ runhaskell Setup.hs configure --user
...
$ runhaskell Setup.hs build
...
$ runhaskell Setup.hs build # Note: twice - first build has failed.
...
$ runhaskell Setup.hs install
...
Too bad I have no idea what has caused the error.
On windows 7 x64,
I tried:
1. install gtk+ all in one bundle 2.16
2. add MinGW's bin address to PATH Environment variables
3. add GTK+'s bin address to PATH Environment variables
On command line execute the:
cabal update
cabal install gtk2hs-buildtools
So far so good. But when I execute the:
cabal install gtk
the error arise
gtk-0.12.1 depends on glib-0.12.1 which failed to install.
I execute next command:
cabal install glib
Then I tried:
cabal install glib --ghc-option=-DCABAL_VERSION_MINOR=10
Relults:
Resolving dependencies...
[1 of 2] Compiling SetupWrapper ( C:\Users\User\AppData\Local\Temp\glib-0.12
.16572\glib-0.12.1\SetupWrapper.hs, C:\Users\User\AppData\Local\Temp\glib-0.12.1
6572\glib-0.12.1\dist\setup\SetupWrapper.o )
[2 of 2] Compiling Main ( C:\Users\User\AppData\Local\Temp\glib-0.12
.16572\glib-0.12.1\Setup.hs, C:\Users\User\AppData\Local\Temp\glib-0.12.16572\gl
ib-0.12.1\dist\setup\Main.o )
Linking C:\Users\User\AppData\Local\Temp\glib-0.12.16572\glib-0.12.1\dist\setup\
setup.exe ...
Warning: .drectve `-aligncomm:___gmp_junk,2' unrecognized
cabal: Error: some packages failed to install:
glib-0.12.1 failed during the configure step. The exception was:
C:\Users\User\AppData\Local\Temp\glib-0.12.16572\glib-0.12.1\dist\setup\setup.exe:
runProcess: invalid argument (Exec format error)
Help, thanks!