Haskell-Things / ImplicitCAD

A math-inspired CAD program in haskell. CSG, bevels, and shells; 2D & 3D geometry; 2D gcode generation...
https://implicitcad.org/
GNU Affero General Public License v3.0
1.32k stars 140 forks source link

cabal install error #442

Closed oldbrad closed 7 months ago

oldbrad commented 1 year ago

$ cd ~/git/ImplicitCAD $ $ cabal install implicit Resolving dependencies... cabal: internal error when reading package index: failed to parse .cabal fileThe package index or index cache is probably corrupt. Running cabal update might fix it. ~ 0 ~ I have installed cabal-install from scratch and run cabal update successfully. I have tried: $ rm -fr ~/.cabal/packages/hackage.haskell.org $ cabal update; cabal install implicit Downloading the latest package list from hackage.haskell.org Resolving dependencies... cabal: internal error when reading package index: failed to parse .cabal fileThe package index or index cache is probably corrupt. Running cabal update might fix it.

I get no response from hackage-admin@haskell.org I think I have a cabal version problem? cabal --version says: cabal-install version 1.22.6.0 using version 1.22.5.0 of the Cabal library Can anyone here help me fix the problem? How do I install latest cabal without a working cabal??

oldbrad commented 1 year ago

OK Solved this myself . Classically the error message is erroneous! The problem is best described as 'cabal HELL' .. ha ha Solution: Must have latest versions. The best way is to use ghcup - here: https://www.haskell.org/ghcup/install/ Delete your package manager versions of ghc and cabal-install and delete ~/.cabal first.

julialongtin commented 1 year ago

Haskell for the win? :)