I am trying to install the repa-v4l2 package and I get an error I dont know how to fix:
kyle#Kyles-Comp:~$ sudo cabal install repa-v4l2
[sudo] password for kyle:
Resolving dependencies...
Configuring repa-v4l2-0.2.0.0...
Building repa-v4l2-0.2.0.0...
Preprocessing library repa-v4l2-0.2.0.0...
[1 of 2] Compiling Graphics.Webcam.Linux.Internal( src/Graphics/Webcam/Linux/Internal.hs, dist/build/Graphics/Webcam/Linux/Internal.o )
<no location info>:
Warning: Couldn't figure out LLVM version!
Make sure you have installed LLVM
ghc: could not execute: opt
Failed to install repa-v4l2-0.2.0.0
cabal: Error: some packages failed to install:
repa-v4l2-0.2.0.0 failed during the building phase. The exception was:
ExitFailure 1
How do you help LLVM figure out the verison?
Related
Just installed the Haskell platform. When I do
$ cabal install cabal cabal-install
I get
Build log ( /Users/robbiecarlton/.cabal/logs/cabal-install-1.22.6.0.log ):
Configuring cabal-install-1.22.6.0...
Building cabal-install-1.22.6.0...
Preprocessing executable 'cabal' for cabal-install-1.22.6.0...
<command line>: cannot satisfy -package-id HTTP-4000.2.10-da371776b88c2889959897a2dc40abe7
(use -v for more information)
cabal: Error: some packages failed to install:
cabal-install-1.22.6.0 failed during the building phase. The exception was:
ExitFailure 1
The same thing happens trying to install manually from source.
I'm trying to install hsc3 following this tutorial:
http://rd.slavepianos.org/?t=hsc3-texts&e=lhs/hsc3-tutorial.lhs
But I get this error:
Sound/SC3/UGen/Type.hs:482:5:
bitSizeMaybe' is not a (visible) method of classBits'
Failed to install hsc3-0.16
cabal:
Error: some packages failed to install:
hsc3-0.16 failed during the building phase. The exception was:
ExitFailure 1
Tried both the "cabal install hsc3" method and downloading from the darcs repository.
GHC --version is 7.6.3
I'm probably missing something trivial.
I want to install "svgcairo" package on my ubuntu14.04 OS by the command cabal install svgcairo but it fails, and give me the following error message:
Resolving dependencies...
[1 of 2] Compiling SetupWrapper ( /tmp/svgcairo-0.13.0.1-4392/svgcairo-0.13.0.1/SetupWrapper.hs, /tmp/svgcairo-0.13.0.1-4392/svgcairo-0.13.0.1/dist/setup/SetupWrapper.o )
/tmp/svgcairo-0.13.0.1-4392/svgcairo-0.13.0.1/SetupWrapper.hs:12:39:
Module
``Distribution.Simple.Configure'
does not export
configCompilerEx
Failed to install svgcairo-0.13.0.1
cabal: Error: some packages failed to install:
svgcairo-0.13.0.1 failed during the configure step. The exception was:
ExitFailure 1
Anyone have an idea?
I'm trying to install the Idris language in an OSX Lion using the installation guide provided on the official tutorial. I have alraedy installed GMP. This is the error I get:
$ cabal install idris
Resolving dependencies...
Configuring libffi-0.1...
cabal: The pkg-config package libffi is required but it could not be found.
[1 of 1] Compiling Main ( /var/folders/f0/dlx6tl5x18z4k4_vq0fkqtb80000gn/T/llvm-general-3.3.5.0-61662/llvm-general-3.3.5.0/Setup.hs, /var/folders/f0/dlx6tl5x18z4k4_vq0fkqtb80000gn/T/llvm-general-3.3.5.0-61662/llvm-general-3.3.5.0/dist/setup/Main.o )
Linking /var/folders/f0/dlx6tl5x18z4k4_vq0fkqtb80000gn/T/llvm-general-3.3.5.0-61662/llvm-general-3.3.5.0/dist/setup/setup ...
setup: The program llvm-config version ==3.3.* is required but it could not be
found.
cabal: Error: some packages failed to install:
idris-0.9.9 depends on llvm-general-3.3.5.0 which failed to install.
libffi-0.1 failed during the configure step. The exception was:
ExitFailure 1
llvm-general-3.3.5.0 failed during the configure step. The exception was:
ExitFailure 1
Trying to install Idris without LLVM produces this error:
$ cabal install idris -f-LLVM
Resolving dependencies...
Configuring libffi-0.1...
cabal: The pkg-config package libffi is required but it could not be found.
cabal: Error: some packages failed to install:
idris-0.9.9 depends on libffi-0.1 which failed to install.
libffi-0.1 failed during the configure step. The exception was:
ExitFailure 1
I was having this same problem on OSX Mavericks. To get Idris to compile, I used homebrew to install gmp, then I had to do 'export PKG_CONFIG_PATH=/usr/local/Cellar/libffi/3.0.13/lib/pkgconfig', and then 'cabal install idris -f-LLVM'. I got the tip to export the PKG_CONFIG_PATH variable from this site:
https://groups.google.com/d/msg/idris-lang/gxcdvRIA2OI/NqKSd4zHkI4J
Mavericks already had libffi installed, and I didn't want to install a second copy from source, which is what the PKG_CONFIG_PATH trick helped me avoid. Do 'brew info libffi' to find the correct path to export. Hopefully someone will create a homebrew formula for Idris soon...
The first error indicates you should install the LLVM development packages of your distribution (not through cabal) and the second indicates you should install the development package for the GCC libffi library. What Linux distribution are you using? Or are you on Windows/Mac?
When I try to install it with cabal, I get
~$ cabal install ghc-mod
Resolving dependencies...
[1 of 1] Compiling Main ( /tmp/haskell-src-exts-1.13.5-21238/haskell-src-exts-1.13.5/Setup.hs, /tmp/haskell-src-exts-1.13.5-21238/haskell-src-exts-1.13.5/dist/setup/Main.o )
/tmp/haskell-src-exts-1.13.5-21238/haskell-src-exts-1.13.5/Setup.hs:1:1:
Warning: In the use of `runTests'
(imported from Distribution.Simple, but defined in Distribution.Simple.UserHooks):
Deprecated: "Please use the new testing interface instead!"
Linking /tmp/haskell-src-exts-1.13.5-21238/haskell-src-exts-1.13.5/dist/setup/setup ...
Configuring haskell-src-exts-1.13.5...
Building haskell-src-exts-1.13.5...
Preprocessing library haskell-src-exts-1.13.5...
dist/build/Language/Haskell/Exts/InternalParser.hs:1:12:
Warning: -fglasgow-exts is deprecated: Use individual extensions instead
[ 1 of 22] Compiling Language.Haskell.Exts.Annotated.Syntax ( src/Language/Haskell/Exts/Annotated/Syntax.hs, dist/build/Language/Haskell/Exts/Annotated/Syntax.o )
cabal: Error: some packages failed to install:
ghc-mod-1.11.1 depends on haskell-src-exts-1.13.5 which failed to install.
haskell-src-exts-1.13.5 failed during the building phase. The exception was:
ExitFailure 9
hlint-1.8.33 depends on haskell-src-exts-1.13.5 which failed to install.
I'm not really sure where to go from here. How can I find out more about why it failed?
edit: I'm using GHC version 7.4.1 and Cabal version 1.14.0
Running Cabal in verbose mode doesn't seem to give any hints except:
...
World file is already up to date.
cabal: Error: some packages failed to install:
ghc-mod-1.11.1 depends on haskell-src-exts-1.13.5 which failed to install.
haskell-src-exts-1.13.5 failed during the building phase. The exception was:
ExitFailure 9
hlint-1.8.33 depends on haskell-src-exts-1.13.5 which failed to install.
It turned out to be a running-out-of-memory issue, as hammar suspected. I was able to get it to install (although it was painfully slow) by adding a 1GB swap file to the system:
dd if=/dev/zero of=/swapfile bs=1M count=1024
mkswap /swapfile
swapon /swapfile
Apparently EC2 instances come without swap by default.