Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to build? #3

Open
gregwebs opened this issue Apr 16, 2015 · 9 comments
Open

how to build? #3

gregwebs opened this issue Apr 16, 2015 · 9 comments

Comments

@gregwebs
Copy link

the README assumes the exe is already built. When I git clone and cabal install i see this:

cabal install
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: stackage-view-0.0.1 (user goal)
next goal: fpview (dependency of stackage-view-0.0.1)
Dependency tree exhaustively searched.
@mgsloan
Copy link
Contributor

mgsloan commented Apr 16, 2015

Coincidentally, I'm installing a newer version of stackage-view right now as well, and also ran into this. It looks like the renaming was partial, fixed by merging this PR: #2

@mgsloan mgsloan closed this as completed Apr 16, 2015
@gregwebs
Copy link
Author

language-javascript requires alex at install time, which I am quite used to. However, there seems to be a runtime dependency on GHCJS. I can't say that I have every actually installed ghcjs. Should there be a link to here?

https://github.com/ghcjs/ghcjs#install-ghcjs

@gregwebs
Copy link
Author

hmm, ghcjs want 7.10. I am starting to think a docker image would be the best for this project

@mgsloan
Copy link
Contributor

mgsloan commented Apr 17, 2015

Hmm, it's surprising that GHCJS wants 7.10, I thought it also supports 7.8. Since you're still encountering build difficulties, I'll reopen this issue.

@mgsloan mgsloan reopened this Apr 17, 2015
@gregwebs
Copy link
Author

looks like I just needed the --max-backjumps flag mentioned in the ghcjs install documentation and things are installing with 7.8

@varosi
Copy link

varosi commented May 5, 2015

Will that compile on Windows? I see that there is "unix" dependency.

@gregwebs
Copy link
Author

gregwebs commented May 5, 2015

ghcjs was working for me, but I ended up using the Dockerfile for it anyways. I have not got back to trying stackage-view yet. I am using Linux.

@gregwebs
Copy link
Author

How does one run stackage-view after building with stack?

stack exec stackage-view
Point your browser to http://localhost:3000/
stackage-view: user error (Use of GHC's environment variable GHC_PACKAGE_PATH is incompatible with Cabal. Use the flag --package-db to specify a package database (it can be used multiple times).)

@DanBurton
Copy link

Stack exec sets that env variable, which cabal doesn't like. You'd notice the same if you tried to stack exec yesod devel, for example. Can the executable be run outside of the container?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants