id,summary,reporter,owner,description,type,status,priority,milestone,component,version,resolution,keywords,cc,os,architecture,failure,difficulty,testcase,blockedby,blocking,related
3794,Compiling a main program yields: /usr/bin/ld: cannot find -lHSrtsmain,guest,igloo,"I have installed the generic Linux binary package for GHC-6.12.1 from
  http://www.haskell.org/ghc/dist/6.12.1/ghc-6.12.1-i386-unknown-linux-n.tar.bz2
on Kubuntu.

When I try to compile a simple main program, like
{{{
main = putStr ""Hello world!\n""
}}}
I get
{{{
/usr/bin/ld: cannot find -lHSrtsmain
}}}

The reason is, that {{{/usr/local/lib/ghc-6.12.1/libHSrtsmain.a}}} is not readable by users.
I could fix the problem for me using
{{{
sudo chmod a+r /usr/local/lib/ghc-6.12.1/libHS*
}}}
",bug,closed,normal,6.12.2,Build System,6.12.1,fixed,,ghc@…,Linux,x86,Installing GHC failed,,,,,
