> I've been having a bit of trouble compiling ghc5.02 from source on 
> Solaris 2.6. The problem is that it can't find 
> readline/readline.h which 
> is not in a standard place since I had to compile readline 
> myself. I've 
> been messing around with various environment variables and 
> configuration 
> options, but have failed so far to communicate where this 
> file is. I'm 
> hoping someone can give me a suggestion. (I've reviewed the 
> mailing list 
> log and FAQ and have seen that readline is a problem on Solaris, but 
> haven't seen anything that obviously is what I've been missing.)
> 
> I hacked mk/config.mk to say GhcLibsWithReadline=YES, since I have 
> libreadline.a and libtermcap.a in my LD_LIBRARY_PATH.

BTW: the "right" way to modify these variables is by overriding them in
your build.mk file, since config.mk is auto-generated every time you run
configure.

> That produced the 
> aforementioned missing readline/readline.h. I tried CFLAGS=<blah> so 
> that readline/readline.h should be visible but that didn't 
> work either.

You can set ReadlineIncludePath in build.mk to the path containing
readline/readline.h.

> One more thing, is there a particular version of readline I should be 
> using? (I'm using 4.2)

4.2 should be fine.

Cheers,
        Simon

_______________________________________________
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to