<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>Hi Adrian,<br> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I have encountered problems installing cmake 3.3.1 on our CentOS release<br>
6.6 cluster.  It builds fine but when I come to install I get this error:<br>
<br>
file INSTALL cannot copy file ... (this is for the copyright file).<br></blockquote><div><br></div><div>I wasn't able to reproduce this error.  Using CentOS 6.6:<br><br><span style="font-family:monospace,monospace">[chuck.atkins@urras v3.3.1]$ cat /etc/redhat-release <br>CentOS release 6.6 (Final)<br>[chuck.atkins@urras v3.3.1]$ CC=/usr/bin/gcc CXX=/usr/bin/g++ FC=/usr/bin/gfortran ../../source/v3.3.1/bootstrap --parallel=16 --prefix=${HOME}/Code/CMake/install/v3.3.1<br>[chuck.atkins@urras v3.3.1]$ make -j16<br>...<br>[100%] Built target ctest<br>[chuck.atkins@urras v3.3.1]$ make install<br>...<br>-- Installing: /home/local/KHQ/chuck.atkins/Code/CMake/install/v3.3.1/share/cmake-3.3/completions/ctest<br>[chuck.atkins@urras v3.3.1]$<br><br></span></div> <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Note, I'm using gcc 4.8.0</blockquote><div><br>While not really part of your question it is worth noting, when building in multi-compiler environments, you usually want to build CMake with the system compiler, i.e., /usr/bin/gcc and /usr/bin/g++, since that will determine the runtime dependencies of CMake, which in this case is gcc/g++ 4.4.  Regardless of what you build CMake with, it can use and generate build files for any supported compiler of you choosing.  So, in other words, if you build it with the system GCC, you can then load the gcc/4.8.0 module (or however you choose it in your cluster's environment), and run the built-with-system-compiler cmake to configure and generate projects for your currently loaded environment.<br><br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> but some of the system tools and libraries are quite old.<br></blockquote><div> </div><div>If you don't specify explicitly, then CMake will use it's own versions of dependencies and statically link them into bin/cmake so that shouldn't be a problem.<br><br></div></div><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I am install into a user directory that I have the correct permissions<br>
to install in.  It does create the file but the file is empty and the<br>
install terminates.<br>
...<br>
Any idea what's going wrong with the build/install?</blockquote><br></div><div class="gmail_extra">Is the location you are trying to install it to on a network file system (i.e. NFS, Lustre, GPFS, PANFS, etc.)?  If so, network file systems are often obtusely problematic for builds and installs due to the various low level timing and synchronization problems associated with them.  If you have access to a local file system on the node you are compiling and installing on (maybe some place in /tmp, or /dev/shm), try to use that for the build and install, then just copy the resulting installation folder to the final destination on the network file system.<br><br></div><div class="gmail_extra">- Chuck<br></div></div>