<div dir="ltr"><div><div><div><div>Dear cmake users,<br><br></div>I am having trouble in installing cmake on Linux (Red Hat Enterprise Linux AS release 4, 2.6.9-42.ELsm) x86_64 machine. Till now I have installed cmake on many occasion, but never faced such trouble.<br>
</div><br></div>I donot have root access to the cluster. So, I am installing it in non-standard location.<br></div>Snippet of .bashrc is as follows:<br><br clear="all"><div><div><div><div><div><div><div><div><div><div><div>
<i>export PATH=~/bin/:~/bin/gcc/481/bin:$PATH<br>export LD_LIBRARY_PATH=/home/sudip/bin/gcc/481/lib:home/sudip/bin/gcc/481/lib64:$LD_LIBRARY_PATH<br>export LDFLAGS="-L/home/sudip/bin/gcc/481/lib -L/home/sudip/bin/gcc/481/lib64"<br>
export CPPFLAGS="-I/home/sudip/bin/gcc/481/include"</i><br><br></div><div>The gcc and g++ commands show the correct version<br><br></div><div><i>[sudip@bose build]$ cc -v<br>Using built-in specs.<br>COLLECT_GCC=cc<br>
COLLECT_LTO_WRAPPER=/home/sudip/bin/gcc/481/libexec/gcc/x86_64-unknown-linux-gnu/4.8.1/lto-wrapper<br>Target: x86_64-unknown-linux-gnu<br>Configured with: ./configure --prefix=/home/sudip/bin/gcc/481 --program-suffix=481<br>
Thread model: posix<br>gcc version 4.8.1 (GCC) </i><br><br></div><div>Now, when I execute ./bootstrap, the following error pops up:<br><br></div><div>/home/sudip/ckc/cmake-2.8.11/build/Bootstrap.cmk/cmake: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /home/sudip/ckc/cmake-2.8.11/build/Bootstrap.cmk/cmake)<br>
/home/sudip/ckc/cmake-2.8.11/build/Bootstrap.cmk/cmake: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.5' not found (required by /home/sudip/ckc/cmake-2.8.11/build/Bootstrap.cmk/cmake)<br>---------------------------------------------<br>
Error when bootstrapping CMake:<br>Problem while running initial CMake<br>---------------------------------------------<br><br></div><div>When I issue the following command:<br><br></div><div>[sudip@bose build]$ strings ~/bin/gcc/481/lib64/libstdc++.so.6 | grep GLIBC<br>
GLIBCXX_3.4<br>GLIBCXX_3.4.1<br><i>GLIBCXX_3.4.2<br>GLIBCXX_3.4.3<br>GLIBCXX_3.4.4<br>GLIBCXX_3.4.5<br>GLIBCXX_3.4.6<br>GLIBCXX_3.4.7<br>GLIBCXX_3.4.8<br>GLIBCXX_3.4.9<br>GLIBCXX_3.4.10<br>GLIBCXX_3.4.11<br>GLIBCXX_3.4.12<br>
GLIBCXX_3.4.13<br>GLIBCXX_3.4.14<br>GLIBCXX_3.4.15<br>GLIBCXX_3.4.16<br>GLIBCXX_3.4.17<br>GLIBCXX_3.4.18<br>GLIBCXX_3.4.19<br>GLIBC_2.2.5<br>GLIBC_2.3<br>GLIBC_2.3.2<br>GLIBCXX_FORCE_NEW<br>GLIBCXX_DEBUG_MESSAGE_LENGTH<br>
</i><br></div><div>I find GLIBCXX_3.4.15. But it is not located in /usr/lib64. <br><br></div><div>So, how do I pass arguments to bootstrap so that ~/bin/gcc/lib64 is recognized.<br><br></div><div>Any insight would be very helpful.<br>
</div><div><br></div><div>Chandan<br></div><div>--<br>Chandan kumar Choudhury<br>NCL, Pune<br>INDIA</div>
</div></div></div></div></div></div></div></div></div></div></div>