Menu

#1 make doesn't work if . isn't in PATH

open
nobody
None
5
2007-09-05
2007-09-05
No

I downloaded hsffig and ran "make", but got:

ghc --make mkhstmpl.hs -o mkhstmpl
[1 of 1] Compiling Main ( mkhstmpl.hs, mkhstmpl.o )
Linking mkhstmpl ...
mkhstmpl <include/template-hsffig.h >programs/Template.hs
/bin/sh: mkhstmpl: not found
make: *** [programs/Template.hs] Error 127

This is because I don't have . in my PATH. I changed "mkhstmpl" to "./mkhstmpl" in the Makefile and it worked.

Discussion


Log in to post a comment.