2012/3/26 Mirko Vukovic <mirko.vuko...@gmail.com>: > On Mon, Mar 26, 2012 at 2:30 PM, Eric Noulard <eric.noul...@gmail.com> wrote: >> 2012/3/26 Mirko Vukovic <mirko.vuko...@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 > > When I use the system gcc, I get the GLIBCXX_3.4.15' not found error. > Same if I use cmake
You mean the system-installed CMake? If this is the case the system installation is broken. CMake shouldn't have been installed without its dependencies. Did you try without modifying LD_LIBRARY_PATH ? That is when you use the system installed cmake to build newer CMake on a pristine user account you ge the GLIBCXX_3.4.15' not found error ? -- Erk Le gouvernement représentatif n'est pas la démocratie -- http://www.le-message.org -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake