<div dir="ltr">If I leave off the --prefix for configure, I get the /usr/local/include permission error again. <div><br></div><div><div>Making install in api</div><div> /bin/mkdir -p '/usr/local/include'</div><div>
/usr/bin/install -c -m 644 /home/stratton/Public/ppml/external/fftw-3.3.3/api/fftw3.h /home/stratton/Public/ppml/external/fftw-3.3.3/api/fftw3.f /home/stratton/Public/ppml/external/fftw-3.3.3/api/fftw3l.f03 /home/stratton/Public/ppml/external/fftw-3.3.3/api/fftw3q.f03 '/usr/local/include'</div>
<div>/usr/bin/install: cannot create regular file ‘/usr/local/include/fftw3.h’: Permission denied</div><div>/usr/bin/install: cannot create regular file ‘/usr/local/include/fftw3.f’: Permission denied</div><div>/usr/bin/install: cannot create regular file ‘/usr/local/include/fftw3l.f03’: Permission denied</div>
<div>/usr/bin/install: cannot create regular file ‘/usr/local/include/fftw3q.f03’: Permission denied</div><div>make[6]: *** [install-includeHEADERS] Error 1</div><div>make[5]: *** [install-am] Error 2</div><div>make[4]: *** [install] Error 2</div>
<div>make[3]: *** [install-recursive] Error 1</div><div>make[2]: *** [fftw-prefix/src/fftw-stamp/fftw-install] Error 2</div><div>make[1]: *** [CMakeFiles/fftw.dir/all] Error 2</div><div>make: *** [all] Error 2</div></div>
<div><br></div><div><br></div><div><div>ExternalProject_Add(</div><div> fftw</div><div> SOURCE_DIR /home/stratton/Public/ppml/external/fftw-3.3.3</div><div> CONFIGURE_COMMAND <SOURCE_DIR>/configure ${CONFIGURE_PARALLEL_FLAG}</div>
<div> CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=/tmp/ack</div><div> PATH=$DEPLOY_DIR/FFTW</div><div> BUILD_COMMAND make</div><div>)</div></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Sun, Mar 23, 2014 at 10:06 PM, Josh Stratton <span dir="ltr"><<a href="mailto:strattonbrazil@gmail.com" target="_blank">strattonbrazil@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">When I try specifying the MAKE_INSTALL_PREFIX that way, I get the libtool error again. <div><br></div><div>...</div><div><div>Making all in libbench2</div><div>Making all in .</div><div>libtool: link: only absolute run-paths are allowed</div>
<div>make[5]: *** [<a href="http://libfftw3.la" target="_blank">libfftw3.la</a>] Error 1</div><div>make[4]: *** [all-recursive] Error 1</div><div>make[3]: *** [all] Error 2</div><div>make[2]: *** [fftw-prefix/src/fftw-stamp/fftw-build] Error 2</div>
<div class="">
<div>make[1]: *** [CMakeFiles/fftw.dir/all] Error 2</div><div>make: *** [all] Error 2</div></div></div><div><br></div><div><br></div><div><div>ExternalProject_Add(</div><div> fftw</div><div> SOURCE_DIR /home/stratton/Public/ppml/external/fftw-3.3.3</div>
<div> CONFIGURE_COMMAND <SOURCE_DIR>/configure --prefix=$DEPLOY_DIR/FFTW ${CONFIGURE_PARALLEL_FLAG}</div><div> CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=/tmp/ack</div><div> PATH=$DEPLOY_DIR/FFTW</div><div> BUILD_COMMAND make</div>
<div>)</div></div><div><br></div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Mar 23, 2014 at 5:34 PM, Josh Stratton <span dir="ltr"><<a href="mailto:strattonbrazil@gmail.com" target="_blank">strattonbrazil@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Looking at the docs it used a colon with the path afterward. What's<br>
the PATH variable for then?<br>
<div><div><br>
On 3/23/14, Michael Jackson <<a href="mailto:mike.jackson@bluequartz.net" target="_blank">mike.jackson@bluequartz.net</a>> wrote:<br>
> CMAKE_INSTALL_PREFIX needs an argument which is where you want FFTW<br>
> installed. The Default value for CMAKE_INSTALL_PREFIX on Unix type machines<br>
> is /usr/local. So your CMake code needs to have something like<br>
> ExternalProject_Add(<br>
> fftw<br>
> SOURCE_DIR /home/stratton/Public/ppml/external/fftw-3.3.3<br>
> CONFIGURE_COMMAND <SOURCE_DIR>/configure ${CONFIGURE_PARALLEL_FLAG}<br>
> CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=/home/stratton/Public/ppml/FFTW<br>
> PATH=$DEPLOY_DIR/FFTW<br>
> BUILD_COMMAND make<br>
> )<br>
><br>
><br>
> Mike Jackson<br>
><br>
> On Mar 23, 2014, at 7:33 PM, Josh Stratton <<a href="mailto:strattonbrazil@gmail.com" target="_blank">strattonbrazil@gmail.com</a>><br>
> wrote:<br>
><br>
>> I've using cmake to build an autoconf portion of the project using<br>
>> ExternalProject_Add. I tried using the autoconf prefix, but was having<br>
>> issues with the libtool and absolute paths. I found DCMAKE_INSTALL_PREFIX<br>
>> in the docs, which seems to avoid the libtool problem, but I'm getting<br>
>> errors saying I don't have permissions writing files to<br>
>> /usr/local/include. Why would it be trying to write files there?<br>
>><br>
>> Making install in api<br>
>> /bin/mkdir -p '/usr/local/include'<br>
>> /usr/bin/install -c -m 644<br>
>> /home/stratton/Public/ppml/external/fftw-3.3.3/api/fftw3.h<br>
>> /home/stratton/Public/ppml/external/fftw-3.3.3/api/fftw3.f<br>
>> /home/stratton/Public/ppml/external/fftw-3.3.3/api/fftw3l.f03<br>
>> /home/stratton/Public/ppml/external/fftw-3.3.3/api/fftw3q.f03<br>
>> '/usr/local/include'<br>
>> /usr/bin/install: cannot create regular file '/usr/local/include/fftw3.h':<br>
>> Permission denied<br>
>> /usr/bin/install: cannot create regular file '/usr/local/include/fftw3.f':<br>
>> Permission denied<br>
>> /usr/bin/install: cannot create regular file<br>
>> '/usr/local/include/fftw3l.f03': Permission denied<br>
>> /usr/bin/install: cannot create regular file<br>
>> '/usr/local/include/fftw3q.f03': Permission denied<br>
>> make[6]: *** [install-includeHEADERS] Error 1<br>
>> make[5]: *** [install-am] Error 2<br>
>> make[4]: *** [install] Error 2<br>
>> make[3]: *** [install-recursive] Error 1<br>
>> make[2]: *** [fftw-prefix/src/fftw-stamp/fftw-install] Error 2<br>
>> make[1]: *** [CMakeFiles/fftw.dir/all] Error 2<br>
>> make: *** [all] Error 2<br>
>><br>
>> *** And part of my cmake file...<br>
>><br>
>> SET(DEPLOY_DIR /tmp/foo)<br>
>><br>
>> ExternalProject_Add(<br>
>> fftw<br>
>> SOURCE_DIR /home/stratton/Public/ppml/external/fftw-3.3.3<br>
>> CONFIGURE_COMMAND <SOURCE_DIR>/configure ${CONFIGURE_PARALLEL_FLAG}<br>
>> CMAKE_ARGS -DCMAKE_INSTALL_PREFIX:<br>
>> PATH=$DEPLOY_DIR/FFTW<br>
>> BUILD_COMMAND make<br>
>> )<br>
>><br>
>> --<br>
>><br>
>> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
>><br>
>> Please keep messages on-topic and check the CMake FAQ at:<br>
>> <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
>><br>
>> Kitware offers various services to support the CMake community. For more<br>
>> information on each offering, please visit:<br>
>><br>
>> CMake Support: <a href="http://cmake.org/cmake/help/support.html" target="_blank">http://cmake.org/cmake/help/support.html</a><br>
>> CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
>> CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" target="_blank">http://cmake.org/cmake/help/training.html</a><br>
>><br>
>> Visit other Kitware open-source projects at<br>
>> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
>><br>
>> Follow this link to subscribe/unsubscribe:<br>
>> <a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
><br>
><br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>