LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-21-2017, 06:08 PM   #1
Southern Gorilla
Member
 
Registered: Dec 2016
Location: Arlington, TX
Distribution: Slackware 14.1
Posts: 66

Rep: Reputation: Disabled
Haskell cabal dependency resolution issues


I'm trying to install xmonad on a fresh Slackware 14.1 install. I have the full Haskell Platform installed via the install script from the Haskell site.

There are multiple unresolved dependencies that I can't figure out how to fix. I'm actually not sure if they are fixable since it appears most of them are due to version constraints. Or is this error something different?
Code:
bash-4.2$ cabal install MonadCatchIO-transformers
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: MonadCatchIO-transformers-0.3.1.3 (user goal)
next goal: base (dependency of MonadCatchIO-transformers-0.3.1.3)
rejecting: base-4.9.1.0/installed-4.9... (conflict: MonadCatchIO-transformers
=> base<4.9)
rejecting: base-4.9.1.0, base-4.9.0.0, base-4.8.2.0, base-4.8.1.0,
base-4.8.0.0, base-4.7.0.2, base-4.7.0.1, base-4.7.0.0, base-4.6.0.1,
base-4.6.0.0, base-4.5.1.0, base-4.5.0.0, base-4.4.1.0, base-4.4.0.0,
base-4.3.1.0, base-4.3.0.0, base-4.2.0.2, base-4.2.0.1, base-4.2.0.0,
base-4.1.0.0, base-4.0.0.0, base-3.0.3.2, base-3.0.3.1 (constraint from
non-upgradeable package requires installed instance)
Dependency tree exhaustively searched.
I get similar errors for multiple packages. I don't know how cabal works. Can I install multiple versions of packages in parallel so I can point programs to their preferred target? Or do I have to install the "lowest common denominator" to get everything to play nicely together? Or am I misinterpreting that and there's a completely different solution? I don't understand why it rejects everything when there are clearly plenty of options that meet the given version requirement.
 
Old 01-21-2017, 10:58 PM   #2
Southern Gorilla
Member
 
Registered: Dec 2016
Location: Arlington, TX
Distribution: Slackware 14.1
Posts: 66

Original Poster
Rep: Reputation: Disabled
After doing more research it seems unlikely I'll be able to resolve the issue. Even if I install multiple dependencies in parallel that's no guarantee the final program will work. The best answer here explains why. There's a bit of irony in the fact that the most functional of functional languages can't come up with a functional package manager. I'll give the SlackBuilds a try.
 
Old 01-26-2017, 04:49 AM   #3
Southern Gorilla
Member
 
Registered: Dec 2016
Location: Arlington, TX
Distribution: Slackware 14.1
Posts: 66

Original Poster
Rep: Reputation: Disabled
Well it turns out the fix is relatively simple. The system is set up for a multi-user environment. So they segregate local and global programs completely. "Cabal install" installs everything locally by default while "sudo runhaskell Setup install" installs things globally. And global programs ignore local dependencies. Being on a single-user machine it makes sense for me to install everything globally. After chasing my tail around the internet looking for the answer I finally found it;
Code:
* Change this line in the ~/.cabal/config
--user-install: True
* to this;
user-install: False
And just like that everything gets installed and registered globally. It even politely asks for your password when it's ready to install.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cabal cannot find DeepSeq when updating hda7 Gentoo 1 04-07-2016 09:28 AM
LXer: The Longterm Linux Kernel Cabal LXer Syndicated Linux News 0 03-09-2012 11:20 PM
dependency resolution Unregistered Slackware 7 11-08-2008 08:49 PM
-=- Issues With Updates Dependency Resolution Failed etc -=- Slashdot87 SUSE / openSUSE 3 06-07-2007 03:55 PM
dependency resolution roh166 Linux - Software 2 02-20-2007 03:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:22 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration