reflex-frp / reflex-platform

A curated package set and set of tools that let you build Haskell packages so they can run on a variety of platforms. reflex-platform is built on top of the nix package manager.
https://reflex-frp.org
BSD 3-Clause "New" or "Revised" License
720 stars 164 forks source link

Can't run ghc in the try-reflex sandbox #100

Closed Emiluren closed 7 years ago

Emiluren commented 7 years ago

Running try-reflex seems to work fine until the shell appears and it's time to run ghc. I get this: [nix-shell:~/Programmering/haskell/reflex-platform]$ ghc /home/emil/.stack/programs/x86_64-linux/ghc-8.0.2/lib/ghc-8.0.2/package.conf.d/package.cache: GHC.PackageDb.readPackageDb: inappropriate type (not enough bytes)

From a lot of googling I think I saw something about running the wrong version of ghc or something like that. I'm running Ubuntu 16.04 with Zsh as my default shell. I tried running it on my desktop computer which has a similar configuration and it works fine there. I have no idea why ghc is trying to access files in the stack folder since the sandbox is running its own version of ghc (right?). I wondered if it could have something to do with my PATH, since I read something about a path problem with Linux Mint, but I tried setting my path to the same as the one on my desktop but it did not change anything.

Emiluren commented 7 years ago

Ok, through this https://github.com/reflex-frp/reflex/issues/84 I got the idea to try running on the jsaddle branch instead of develop but that started compiling ghcjs from source and I ran out of disk space. I decided to just work from my desktop computer instead.