[csw-users] gcc-4.3.3, post-install trouble: ld.so.1: a.out: fatal: libstdc++.so.6: open failed...
James Lee
james at opencsw.org
Wed Nov 17 18:44:42 CET 2010
On 17/11/10, 17:23:11, Silviu Podariu <vuvulescu at gmail.com> wrote regarding
[csw-users] gcc-4.3.3, post-install trouble: ld.so.1: a.out: fatal:
libstdc++.so.6: open failed...:
> ~/cs/cpp/test: /opt/csw/gcc4/bin/g++ reFormat.cc
> ~/cs/cpp/test: ./a.out
> ld.so.1: a.out: fatal: libstdc++.so.6: open failed: No such file or
> directory
> Killed
It's essentially the same as this:
https://www.opencsw.org/mantis/view.php?id=3846
(I thought there was one for g++ but I can't see it.)
Do:
$ g++ -R/opt/csw/gcc4/lib reFormat.cc
and look for the RPATH:
$ dump -Lv ./a.out | grep RPATH
[8] RPATH /opt/csw/gcc4/lib
> Apparently there is something else i need to do, besides installing
> the gcc package
Install Sun Studio 12.2:
http://www.oracle.com/technetwork/server-storage/solarisstudio/overview/
index.html
James.
More information about the users
mailing list