Can't compile hmake
Tue, 29 Jul 2003 10:55:23 +0100
On Tuesday, Jul 29, 2003, at 10:19 Europe/London, Malcolm Wallace wrote:
> Thomas Davie <firstname.lastname@example.org> writes:
>> I'm just trying to get started with haskell and have been having
>> problems getting hmake to compile. For some reason it doesn't detect
>> libreadline. FYI, I'm running Mac OS X.2.6
>> Has anyone got any ideas for where I could go from here?
> Yes, after configuring, try editing the generated config file as
> In targets/`harch`/config, change the line
> READLINE="-DUSE_READLINE=1 -L/sw/lib/ -lreadline"
> then proceed to 'make' as usual.
> I'll try to put some better detection code into the configure script
> for the next release of hmake.
Unfortunately I'm still having trouble, it seems to be picking up the
library fine now, but missing the header:
I am currently using the command
./configure --buildopts="-L/sw/lib/ -lreadline -I/sw/include/ -include
to configure, then editing the config.cache file - I have tried the
exact text you specified and also this:
READLINE="-DUSE_READLINE=1 -L/sw/lib/ -lreadline -I/sw/include/
But still with no joy. I'm currently getting this error:
gcc: readline/readline.h: No such file or directory
make: *** [targets/powerpc-Darwin6/hmake-ghc] Error 2
The header file is in the directory
Any further ideas would be appreciated.