Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ShellCheck-0.4.3 fails to install: requires Cabal library version -any && >=1.8 but no suitable version is installed #618

Closed
moschlar opened this issue Mar 1, 2016 · 5 comments

Comments

@moschlar
Copy link

moschlar commented Mar 1, 2016

Installing with Cabal fails on a CentOS 7 system:

$ cabal install shellcheck
Resolving dependencies...
Failed to install ShellCheck-0.4.3
cabal: Error: some packages failed to install:
ShellCheck-0.4.3 failed during the configure step. The exception was:
user error (The package requires Cabal library version -any && >=1.8 but no
suitable version is installed.)

$ cabal --version
cabal-install version 1.16.1.0
using version 1.16.0 of the Cabal library 

$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.6.3
@koalaman
Copy link
Owner

I'm not sure why cabal doesn't install the new version of cabal, but updating it pulls in a new version of process that breaks this three years out of date GHC release. The 0.4.3 was specifically supposed to fix this, but I guess the ecosystem moved on.

I tried it on a fresh install and got it working with

cabal update
cabal install process-1.1.0.2 cabal
cabal install shellcheck

@michaelmhoffman
Copy link

I got an error with cabal install process-1.1.0.2 cabal. The package name seems to require an uppercase Cabal.

Deleting my ~/.cabal and ~/.ghc and then

cabal update
cabal install process-1.1.0.2 Cabal
cabal install shellcheck

seems to work.

@willemdh
Copy link

willemdh commented Jan 9, 2017

Tried all of the above but wasn't able to install on CentOS 7.
~/.cabal/bin/shellcheck doesn't exist.

cabal --version
cabal-install version 1.16.1.0
using version 1.16.0 of the Cabal library

@koalaman
Copy link
Owner

Please reopen (with an error message) if this is still a problem.

@kmatt
Copy link

kmatt commented Jun 18, 2018

yum install ghc-shellcheck-devel got me past the filepath <-> Cabal dependency

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants