[Haskell-beginners] Re: question about show -- RWH chapter 5
daniel.is.fischer at web.de
Thu Mar 26 12:52:48 EDT 2009
Am Donnerstag 26 März 2009 17:20:46 schrieb 7stud:
> Daniel Fischer <daniel.is.fischer <at> web.de> writes:
> > > $ ghc -o simple Main.hs PutJSON.hs SimpleJSON.hs
> > > /usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: warning -F:
> > name
> > > (/Users/me/Library/Frameworks) does not exist
> > >
> > > $ simple
> > > hello
> > >
> > > Also can anyone tell me why I always get that warning?
> > Does the directory exist? If it exists, is in in the linker path?
> No it doesn't exist. There is a directory:
That explains the warning, though not why ld is looking for that
directory. Since I don't know Macs, I can only guess.
Maybe the fact that you untarred ghc to
/Users/me/my_tar_extractions/ghc-6.8.2 confused it as it expected to
be untarred to /usr/local/ghc-6.8.2 and find the frameworks in
You can try symlinking /Library to /Users/me and see if that gets rid of
the warning, though for a real fix, a mac-user's answer would be
> This is what I did to install ghc:
> 1) I downloaded GMP.framework and GNUreadline.framework, which
> automatically unzipped and placed on my desktop. I then dragged
> resulting two folders into /Library/Frameworks as per the instructions
> 2) I downloaded ghc-6.8.2
> 3) I unzipped an untared into /Users/me/my_tar_extractions
> 4) I cd'ed into the newly created ghc-6.8.2 folder.
> 5) I read the INSTALL document in the ghc-6.8.2 folder.
> 6) I ran the command:
> $ ./configure
> 7) Then I ran the command:
> $ sudo make install
> 8) At the end of the install output, I got a message that said:
> Installation of ghc-6.8.2 was successful.
> To use, add /usr/local/bin to your PATH.
> Warning: this binary distribution does NOT contain documentation!
> 9) I appended /usr/local/bin onto the PATH in ~/.bash_profile.
> After unzipping and untaring ghc, should I have put the
> ghc-6.8.2 folder in /Library/Frameworks like I did with
> GMP.framework and GNUreadline.framework? Can I still do that?
More information about the Beginners