snapframework / snap

Top-level package for the official Snap Framework libraries, includes the snaplets API as well as infrastructure for sessions, auth, and templates.
http://snapframework.com/
BSD 3-Clause "New" or "Revised" License
455 stars 68 forks source link

Fails to install on Mac Haskell Platform, even with reinstall. #106

Closed Folcon closed 10 years ago

Folcon commented 10 years ago
Loading package comonad-4.0 ... linking ... ghc: 
lookupSymbol failed in relocateSection (relocate external)
/Users/user/Library/Haskell/ghc-7.6.3/lib/comonad-4.0/lib/HScomonad-4.0.o: unknown symbol `_semigroupszm0zi12zi1_DataziSemigroup_zlzg_info'
ghc: unable to load package `comonad-4.0'
Failed to install profunctors-4.0.2
World file is already up to date.
cabal: Error: some packages failed to install:
lens-4.0.4 depends on profunctors-4.0.2 which failed to install.
profunctors-4.0.2 failed during the building phase. The exception was:
ExitFailure 1
snap-0.13.2.2 depends on profunctors-4.0.2 which failed to install.

Reinstalled Haskell Platform from scratch, didn't help, not sure where to proceed from here, would love to try this out.

mightybyte commented 10 years ago

We're going to need a bit more information from you. Things like OS version, GHC version, cabal version, etc.

Folcon commented 10 years ago

That's fine, OS 10.9.1, The Glorious Glasgow Haskell Compilation System, version 7.6.3 and:

cabal-install version 1.18.0.3
using version 1.18.1.2 of the Cabal library
gregorycollins commented 10 years ago

See the instructions here: http://www.haskell.org/haskellwiki/Mac_OS_X#Mac_OS_X_10.9_.28Mavericks.29.2C_Mac_OS_X_10.8_.28Mountain_Lion.29_and_Xcode_5

Folcon commented 10 years ago

Ah, I've made all those changes, multiple times, my haskell appears to run fine, it's just I can't seem to install snap, if it's due to the compiler change over (I'm currently using gcc-4.8), I'm presently trying to see if I can keep installing older versions and upgrade.

Folcon commented 10 years ago

ok, that worked, once I ran cabal install snap-0.13.0 then cabal install snap succeeded. I did however have to first rm -fr ~/.ghc as mentioned in the docs, but even after doing that I couldn't install snap straight, only 0.13.0