#5289: Can't use ghci with a library linked against libstdc++
-------------------------+--------------------------------------------------
  Reporter:  bos         |          Owner:                  
      Type:  bug         |         Status:  new             
  Priority:  normal      |      Milestone:  7.4.1           
 Component:  GHCi        |        Version:  7.0.3           
Resolution:              |       Keywords:                  
  Testcase:              |      Blockedby:                  
Difficulty:              |             Os:  Unknown/Multiple
  Blocking:              |   Architecture:  Unknown/Multiple
   Failure:  GHCi crash  |  
-------------------------+--------------------------------------------------

Comment(by hvr):

 Replying to [comment:34 basvandijk]:
 > I hope there will be a bugfix release that fixes this because I'm
 currently unable to build some packages. Or is there a quick work-around?

 If you are on a Ubuntu-like distribution and don't mind exposing
 `libstdc++.so` you can link, you could symlink it to `/usr/local/lib`,
 e.g.

 {{{
 $ ln -vs $(gcc --print-file-name=libstdc++.so) /usr/local/lib/
 `/usr/local/lib/libstdc++.so' -> `/usr/lib/x86_64-linux-gnu/gcc/x86_64
 -linux-gnu/4.5.2/libstdc++.so'
 }}}

 This works for me currently.

 It might also work (though I haven't tried whether GHC picks up on it) to
 put the symlink in some user-owner directory, e.g. `${HOME}/lib` and point
 `LD_LIBRARY_PATH` to it.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5289#comment:35>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler

_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to