Questions tagged [cabal-install]

cabal-install is a package manager and dependency resolver for building and installing Haskell libraries.

cabal-install is a package manager and dependency resolver for building and installing Haskell libraries.

341 questions
4
votes
3 answers

Haskell platform on mac installs cabal in /usr/bin, but cabal install goes in ~/Library/Haskell

I’ve just installed the Haskell Platform on my Mac running Mavericks 10.9. The cabal version included (1.16) is out of date, and prompts me to run “cabal update” and then “cabal install cabal-install". Doing so installs cabal 1.20.0.3, but it…
ziggurism
  • 2,264
  • 2
  • 16
  • 23
4
votes
1 answer

Cabal install package fails weirdly

I access internet through a proxy and have appropriately set up the environment variables. The problem is that whenever I am trying to install any package through cabal, it fails with a connect: does not exist (Connection Refused) error. But if I…
Vivek Rai
  • 890
  • 1
  • 9
  • 22
4
votes
1 answer

Cabal configure can't find an installed package inside a cabal sandbox

I've made a cabal sandbox, installed a package to it, yet runhaskell Setup configure complains that the package dependency that I just installed is missing. I verified the package name and version and that's okay. Running cabal install…
MasterMastic
  • 20,711
  • 12
  • 68
  • 90
4
votes
4 answers

Can't install and use Cabal (Haskell) on CentOS Server - zlib-0.5.4.1 failed during the building phase

I'm trying to install a Haskell server which runs in Cabal on my server. When I configure a server normally to run this, I follow these instructions which we've refined - they work 100% every time on a blank rackspace cloud server. yum update yum…
Sam Heather
  • 1,493
  • 3
  • 19
  • 42
4
votes
1 answer

Installing the unix-2.7.0.1 package using Cabal, haskell origin

It all started with hdevtools. I installed the SublimeHaskell package for Sublime 3 on my Windows 7 machine and got an warning saying that hdevtools couldn't be found, or something along those lines. So I thought I might try to install that package…
4
votes
2 answers

What is the correct way to upgrade the versions of Haskell programs installed on /usr/bin?

I have the 3.0.1 version of Alex installed on my /usr/bin. I think the Haskell Platform originally put it there (although I'm not 100% sure...). Unfortunately, version 3.0.1 is bugged so I need to upgrade it to 3.0.5. I tried using cabal to install…
hugomg
  • 68,213
  • 24
  • 160
  • 246
4
votes
3 answers

Haskell SDL-mixer compilation error

I am trying to install the SDL-mixer haskell package by using "cabal install sdl-mixer". When I do so, it gives the error Resolving dependencies... [1 of 1] Compiling Main ( /tmp/SDL-mixer-0.6.1-10381/SDL-mixer-0.6.1/Setup.lhs,…
InFreefall
  • 518
  • 1
  • 4
  • 16
4
votes
1 answer

How to set up .cabal test-suite when test file and the file under test is in different folder

I am trying to structure my simple project in a way that it's easy for me to develop in the future. Basically I've used cabal init to get the basic stuff, then I created a src folder, inside that i created a main folder and a test folder, the main…
HHC
  • 2,513
  • 2
  • 18
  • 26
4
votes
1 answer

ghc-mod fails to install

I've just done a fresh install of Arch Linux to a virtual machine and installed GHC (7.6.1), and cabal-install is version 1.16.0-2 I'm trying to get an environment setup for haskell coding, including the ghcmod-vim plugin, which of course requires…
tredontho
  • 1,273
  • 10
  • 14
4
votes
2 answers

cabal install fails when installing pango

Cabal fails when trying to install pango, complaining that it cant find pkg-config. peauters:~ $ sudo cabal install pango -v Password: Reading available packages... Choosing modular solver. Resolving…
Peauters
  • 4,773
  • 3
  • 18
  • 11
4
votes
1 answer

What does Cabal ExitFailure 127 mean?

When I try to install the "encoding" library, I get this failure, but I can't find any documentation to tell me what it means: $ sudo cabal install encoding --global Resolving dependencies... cabal: Error: some packages failed to…
donatello
  • 5,727
  • 6
  • 32
  • 56
3
votes
1 answer

How do I get cabal to use a local version of a package as a dependency for a Hackage package?

I'm trying to install aeson on GHC 9.2.1. I first ran cabal install --allow-newer --lib aeson, which failed when it got to building attoparsec. It turns out this problem is already fixed in their Git repo, but hasn't landed in a release on Hackage…
3
votes
0 answers

In docker with buildkit and run --mount, why is cabal install Downloading cached packages?

I am in the process of creating a Dockerfile that can build a haskell program. The Dockerfile uses ubuntu focal as a base image, installs ghcup, and then builds a haskell program. There are multiple reasons why I am doing this; it can support a…
Erasmus
  • 596
  • 5
  • 8
3
votes
1 answer

Hardcode datadir path upon installing executable

Problem: I've got a command-line tool written in Haskell that reads a data file. Upon installing the program, I'd like for the program to be able to read that data file regardless of the directory I find myself in. That is, upon installing, the path…
sshine
  • 15,635
  • 1
  • 41
  • 66
3
votes
1 answer

Issue while Haskell instaling Euterpea's dependency, HCodecs did not skip version check for a later version installed

While I was installing Euterpea today, I found HCodecs-0.5.1 (a dependency for Euterpea) was tend to always to beult-fail So I go to Hackage.Haskell.org, checked that HCodecs offers a latest version: HCodecs-0.5.2, and I installed it successfully by…
KaijCH
  • 33
  • 4