[CMake] make install uses outdated libstdc++.so.6

Mirko Vukovic mirko.vukovic at gmail.com
Mon Mar 26 13:07:56 EDT 2012


Hello,

I am building cmake on RHEL6.  I need a version higher than the one
that comes with RHEL6.

After doing bootstrap and make, I get an error with make install:
> /home/sm/software/cmake/cmake-2.8.7/Bootstrap.cmk/cmake: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /home/sm/software/cmake/cmake-2.8.7/Bootstrap.cmk/cmake)
make: *** [cmake_check_build_system] Error 1


Now, RHEL6 comes with gcc 4.4.6.  I have installed 4.6.3, and if I do
> strings /usr/local/lib64/libstdc++.so.6 | grep GLIBC
I do see GLIBCXX_3.4.15.

I have set my LD_LIBRARY_PATH to the local lib:
> echo $LD_LIBRARY_PATH
/usr/local/lib64

(prior to starting the build, I set PATH, LIBRARY_PATH,
LD_LIBRARY_PATH to the new gcc and its libraries, all in /usr/local.

So, what else can I do so that cmake uses that library instead of the
one in /usr/lib64?

I prefer not to uninstall the system gcc.

Thank you,

Mirko


More information about the CMake mailing list