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

Eric Noulard eric.noulard at gmail.com
Mon Mar 26 14:30:01 EDT 2012


2012/3/26 Mirko Vukovic <mirko.vukovic at gmail.com>:
> Hello,
>
> I am building cmake on RHEL6.  I need a version higher than the one
> that comes with RHEL6.
>
> After doing bootstrap and make,

Did you try to build cmake with cmake instead?

>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.

Why didn't you build CMake with system gcc then?

-- 
Erk
Le gouvernement représentatif n'est pas la démocratie --
http://www.le-message.org


More information about the CMake mailing list