[Haskell-beginners] Problem installing lhs2tex

Brent Yorgey byorgey at seas.upenn.edu
Thu Dec 30 22:03:12 CET 2010


On Thu, Dec 30, 2010 at 07:29:38PM +0000, Miguel Dias wrote:
> Hi, im trying to install lhs2TeX in Mac OS.
> But i got an error, that i dont know how to fix.
> 
> Someone can explain me what i need to do to fix that.
> 
> Is this error:
> 
> "
> MacBook:lhs2tex-1.16 mgd$ make
> /opt/local/bin/ghc -O --make -o lhs2TeX Main.lhs
> [17 of 19] Compiling FileNameUtils    ( FileNameUtils.lhs, FileNameUtils.o )
> 
> FileNameUtils.lhs:15:57:
>     Module `System.IO' does not export `hSetEncoding'
> 
> FileNameUtils.lhs:15:85: Module `System.IO' does not export `utf8'
> make: *** [lhs2TeX] Error 1
> 
> "

It looks like perhaps lhs2TeX requires a more recent version of the
base package than what you have.  What version of ghc do you have, and
how did you install it?

-Brent



More information about the Beginners mailing list