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

ghc: readCreateProcessWithExitCode: runInteractiveProcess: exec: does not exist (No such file or directory) #161

Open
sboosali opened this issue Jul 15, 2016 · 2 comments

Comments

@sboosali
Copy link

sboosali commented Jul 15, 2016

steps:

$ stack install haskell-awk
Copied executables to /Users/michaelboosalis/.local/bin:
- hawk

$ hawk
Usage ...

$ seq 0 3 | hawk -a 'L.reverse'
hawk: ghc: readCreateProcessWithExitCode: runInteractiveProcess: exec: does not exist (No such file or directory)

with:

OSX 10.11.5


$ cat stack.yaml
resolver: lts-6.1

$ stack exec -- ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.10.3

@gelisam
Copy link
Owner

gelisam commented Jul 15, 2016

Probably a duplicate of #155, which adds support for stack. Except it seems your symptoms are different?

@shirouto
Copy link

If I understand this correctly, every time the user modifies ~/.hawk/prelude.hs hawk will invoke ghc via System.Process.readProcessWithExitCode "ghc" to (re-)compile the user prelude. However, stack does not install a particular ghc in the $PATH. Of course, running stack exec hawk in the source base will compile successfully the prelude and one can use hawk thereafter. This or simply adding the stack installed ghc path to $PATH would be temporary ways around this issue, albeit a tad cumbersome.

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

3 participants