Installing gtk2hs on ubuntu - haskell

I am trying to install gtk for Haskell on Ubuntu. I have already installed the Haskell platform.
When I run cabal install gtk2hs-buildtools, I get the following error:
Resolving dependencies...
Configuring Cabal-2.2.0.1...
Failed to install Cabal-2.2.0.1
Build log ( /home/vishad/.cabal/logs/Cabal-2.2.0.1.log ):
cabal: Error: some packages failed to install:
Cabal-2.2.0.1 failed during the configure step. The exception was:
user error ('/usr/bin/ghc' exited with an error:
/tmp/cabal-tmp-11425/Cabal-2.2.0.1/Distribution/Utils/IOData.hs:36:0:
error: missing binary operator before token "("
#if MIN_VERSION_bytestring(0,10,0)
^
)
gtk2hs-buildtools-0.13.4.0 depends on Cabal-2.2.0.1 which failed to install.
I have already installed the dependencies using the following command :
sudo apt-get install libgtk2.0-dev libpango1.0-dev libglib2.0-dev libcairo2-dev

Related

How to fix "could not find system library libudev" when installing cargo-flash?

Operating system: Ubuntu
Command 1: rustup update --> successful
Command 2: rutstup target install thumbv7m-none-eabi --> successful
Command 3: cargo install cargo-flash
error: failed to run custom build command for `hidapi v1.4.2`
process didn't exit successfully: `/tmp/cargo-installgobLzf/release/build/hidapi-aad2646622c847a4/build-script-build` (exit status: 101)
error: could not find system library 'libudev' required by the 'hidapi' crate
error: failed to compile `cargo-flash v0.13.0`, intermediate artifacts can be found at `/tmp/cargo-installgobLzf`
First, install the dependencies and then install cargo-flash:
sudo apt install -y pkg-config libusb-1.0-0-dev libftdi1-dev
sudo apt-get install libudev-dev
cargo install cargo-flash
For details, visit the cargo-flash crate.

cabal install hsparql error

Im trying to install hsparql, cabal version 1.22.1.1
cabal install hsparql
gives
Could not find module `Network.URI'
It is a member of the hidden package `network-uri-2.6.0.1'.
Perhaps you need to add `network-uri' to the build-depends in your .cabal file.
Use -v to see a list of the files searched for.
Failed to install hsparql-0.2.5
cabal: Error: some packages failed to install:
hsparql-0.2.5 failed during the building phase. The exception was:
ExitFailure 1
but
cabal install network-uri
shows
All the requested packages are already installed:
network-uri-2.6.0.1
what could be the problem?

(Haskell) Installing hsc3 in KXStudio (Ubuntu)

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.

Failed to install Darcs - Ubuntu 14.04 x64 - darcs 2.8.4 - cabal 1.20.0.2

I have a problem in installing darcs
$ cabal install darcs-2.8.4
/tmp/darcs-2.8.4-26031/darcs-2.8.4/Setup.lhs:106:3: Warning:
In the use of `runTests'
(imported from Distribution.Simple, but defined in Distribution.SimpleLinking /tmp/darcs-2.8.4-26031/darcs-2.8.4/dist/setup/setup ...
Configuring dsetup: Unable to link against the iconv library.
cabal: Error: some packages failed to install:
darcs-2.8.4 failed during the configure step. The exception was:
ExitFailure 1
darcs seems to need development files for libcurl. So, install libcurl4-gnutls-dev in Ubuntu:
sudo apt-get install libcurl4-gnutls-dev
Once you have installed that, install darcs using the usual cabal install method.

Cabal installation issues on Windows

I am having some issues installing packages on Windows using cabal. The following command:
cabal install ghc-mod
produces these errors
C:\temp> cabal install ghc-mod
Resolving dependencies...
Failed to install haskell-src-exts-1.15.0.1
cabal.exe: Error: some packages failed to install:
ghc-mod-4.1.3 depends on haskell-src-exts-1.15.0.1 which failed to install.
haskell-src-exts-1.15.0.1 failed while unpacking the package. The exception was:
C:\Users\...\AppData\Local\Temp\haskell-src-exts-1.15.0.1-55548\haskell-src- exts-1.15.0.1\dist-tmp:
MoveFileEx
"C:\\Users\\...\\AppData\\Local\\Temp\\haskell-src-exts-1.15.0.1-55548\\haskell-src-exts-1.15.0.1\\dist-tmp"
"C:\\Users\\...\\AppData\\Local\\Temp\\haskell-src-exts-1.15.0.1-55548\\haskell-src-exts-1.15.0.1\\dist":
permission denied (Acesso negado.)
hlint-1.9 depends on haskell-src-exts-1.15.0.1 which failed to install.
I have also tried:
cabal install haskell-src-exts
However I got the same error.
can someone help me?
UPDATE
Output error executing cabal install haskell-src-exts:
c:\> cabal install haskell-src-exts
Resolving dependencies...
Failed to install haskell-src-exts-1.15.0.1
cabal: Error: some packages failed to install:
haskell-src-exts-1.15.0.1 failed while unpacking the package. The exception was:
C:\Users\DIULLE~1\AppData\Local\Temp\haskell-src-exts-1.15.0.1-35992\haskell-src-exts-1.15.0.1\dist-tmp:
MoveFileEx
"C:\\Users\\DIULLE~1\\AppData\\Local\\Temp\\haskell-src-exts-1.15.0.1-35992\\haskell-src-exts-1.15.0.1\\dist-tmp"
"C:\\Users\\DIULLE~1\\AppData\\Local\\Temp\\haskell-src-exts-1.15.0.1-35992\\haskell-src-exts-1.15.0.1\\dist":
permission denied (Acesso negado.)
This has been a known bug for some time1, and seems to be fixed six days ago, so update your cabal2:
> cabal update
> cabal install cabal cabal-install
> cabal install ghc-mod
However, if you don't want to jump on the cabal-git-train, you can still unpack, configure and install packages by hand. This will prevent the behaviour, since it is triggered by moving temporary dictionaries and name clashes:
> cabal unpack haskell-src-exts
> cd haskell-src-exts*
> cabal configure
> cabal build
> cabal install
1: since the bug has been reported on 22nd Feb, it seems to affect all versions from >= 1.18.* to < 1.20.0.3.
2: make sure that you really run the new version.

Resources