RichardEvans / apperception

70 stars 13 forks source link

"cabal configure" failure #1

Closed jrb314 closed 3 years ago

jrb314 commented 3 years ago

Installed Haskell, Clingo but "cabal configure" gives this:

# cabal configure
Warning: The configure command is a part of the legacy v1 style of cabal
usage.

Please switch to using either the new project style and the new-configure
command or the legacy v1-configure alias as new-style projects will become the
default in the next version of cabal-install. Please file a bug if you cannot
replicate a working v1- use case with the new-style commands.

For more information, see: https://wiki.haskell.org/Cabal/NewBuild

Resolving dependencies...
Warning: solver failed to find a solution:
Could not resolve dependencies:
[__0] trying: solve-0.2.0.0 (user goal)
[__1] next goal: base (dependency of solve)
[__1] rejecting: base-4.12.0.0/installed-4.1... (conflict: solve => base>=4.8
&& <4.9)
[__1] fail (backjumping, conflict set: base, solve)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: solve, base
Trying configure anyway.
Configuring solve-0.2.0.0...
cabal: Encountered missing dependencies:
base ==4.8.*,
containers ==0.5.*,
csound-catalog ==0.7.*,
csound-expression ==5.3.*,
csound-sampler ==0.0.*,
directory ==1.2.*,
random ==1.1.*,
split ==0.2.*,
universe-base ==1.0.*
northeastsquare commented 3 years ago

I also met this

""" Resolving dependencies... Warning: solver failed to find a solution: Could not resolve dependencies: [0] trying: solve-0.2.0.0 (user goal) [1] next goal: base (dependency of solve) [1] rejecting: base-4.11.1.0/installed-4.1... (conflict: solve => base>=4.8 && <4.9) [1] fail (backjumping, conflict set: base, solve) After searching the rest of the dependency tree exhaustively, these were the goals I've had most trouble fulfilling: solve, base Trying configure anyway. Configuring solve-0.2.0.0... cabal: Encountered missing dependencies: base ==4.8., csound-catalog ==0.7., csound-expression ==5.3., csound-sampler ==0.0., directory ==1.2., universe-base ==1.0. """

RichardEvans commented 3 years ago

I have submitted a fix for this.

chesnov commented 3 years ago

The fix still didn't work for me, but using cabal new-build and then cabal install helped.

jrb314 commented 3 years ago

Still having issues -- here's what I get back now:

Resolving dependencies...
Warning: solver failed to find a solution:
Could not resolve dependencies:
[__0] trying: solve-0.2.0.0 (user goal)
[__1] unknown package: universe-base (dependency of solve)
[__1] fail (backjumping, conflict set: solve, universe-base)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: solve, universe-base
Trying configure anyway.
Configuring solve-0.2.0.0...
cabal: Encountered missing dependencies:
csound-catalog >=0.0,
csound-expression >=0.0,
csound-sampler >=0.0,
random >=1.1,
split >=0.0,
universe-base >=0.0
chesnov commented 3 years ago

Try doing cabal update followed by cabal new-build and then cabal install

jrb314 commented 3 years ago

chesnov, thanks -- that worked!

RichardEvans commented 3 years ago

Try doing cabal update followed by cabal new-build and then cabal install

Thanks chesnov.