[Haskell-beginners] Re: Problems with ghc

Daniel Fischer daniel.is.fischer at web.de
Wed Oct 15 11:04:13 EDT 2008


Am Mittwoch, 15. Oktober 2008 16:35 schrieb Paul Johnston:
> Christian Maeder wrote:
> > Paul Johnston wrote:
> >> paulj at hb-0021209.humanities.manchester:~/haskell/aht/3$ ghc
> >> -L=/usr/local/lib/ -o Haq --make Haq.hs
> >> [1 of 1] Compiling Main             ( Haq.hs, Haq.o )
> >> Linking Haq ...
> >> paulj at hb-0021209.humanities.manchester:~/haskell/aht/3$ ./Haq "Bother"
> >> "Haq! BotherOr not!"
> >> paulj at hb-0021209.humanities.manchester:~/haskell/aht/3$
> >>
> >> Tried putting /usr/local/lib in $LD_LIBRARY_PATH but that didn't seem to
> >> work, pity.
> >> Anyway many, many thanks
> >
> > I think setting LIBRARY_PATH would work.
> >
> > Cheers Christian
>
> Tried setting both LD_LIBRARY_PATH and LIBRARY_PATH
>
> paulj at hb-0021209.humanities.manchester:~/haskell/aht/3$ env | grep LIBRARY
> LIBRARY_PATH=/usr/lib:/opt/csw/lib:/opt/csw/lib/engines:/usr/local/lib
> LD_LIBRARY_PATH=/usr/lib:/opt/csw/lib:/opt/csw/lib/engines:/usr/local/lib
> paulj at hb-0021209.humanities.manchester:~/haskell/aht/3$
>
>
> Still same issue
>
> paulj at hb-0021209.humanities.manchester:~/haskell/aht/3$ touch Haq.hs
> paulj at hb-0021209.humanities.manchester:~/haskell/aht/3$ ghc -o Haq Haq.hs

What happens with --make now?
>
> Cheers Paul



More information about the Beginners mailing list