Thoughts Heap

A Blog by Roman Gonzalez.-

RSS
Sep
20th
Tue
permalink

Loading package double-conversion- … <command line>: can’t load .so/.DLL for: stdc++ (libstdc++.so: cannot open shared object file: No such file or directory)

Recently I’ve been playing with the aeson library in Ubuntu oneiric, unfortunately I ran across this compilation error:


Loading package double-conversion-0.2.0.1 ... : can't load .so/.DLL for: stdc++ (libstdc++.so: cannot open shared object file: No such file or directory)

After a lot of investigation, I found a ticket on the Ttrac site of GHC that came up with a solution, I will summarize here so you don’t have to read the ticket yourself:

hvr:

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'

basvandijk:

Note to others: I needed to do a

sudo ldconfig

after this to update my cache

Hope this helps.

  1. romanandreg posted this
blog comments powered by Disqus