<div dir="ltr">A related problem, which I've never found a solution for, is that some cluster software (probably the curl library) is built without ssl support at a critical point. You may have the same issue. Maybe the configuration info for curl will tell you one way or another whether this is the case and you can request a reinstall.</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Aug 18, 2016 at 7:37 PM, marco giordano <span dir="ltr"><<a href="mailto:marco.giord@gmail.com" target="_blank">marco.giord@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"><div><div><div><div><div><div>Hi there, <br></div>I checked the internet connection on the node and seems fine (I can download with wget the <a href="https://midas3.kitware.com/midas/api/rest?method=midas.bitstream.download&checksum=2e115fe26e435e33b0d5c022e4490567&algorithm=MD5" rel="noreferrer" target="_blank">https://midas3.kitware.com/mid<wbr>as/api/rest?method=midas.bitst<wbr>ream.download&checksum=2e115fe<wbr>26e435e33b0d5c022e4490567&<wbr>algorithm=MD5</a>”).<br><br></div>I run the script <a href="https://github.com/conda-forge/cmake-feedstock/blob/master/recipe/SSLTest.cmake" rel="noreferrer" target="_blank">SSLTest.cmake</a> but it fails (it downloads a LICENSE file but it is empty):<br>CMake Error at SSLTest.cmake:5 (file):<br> file DOWNLOAD HASH mismatch<br><br> for file: [/home/mgiordano/code/<wbr>SimpleITK/LICENSE]<br> expected hash: [<wbr>f8c925402b90f74566f71e64eea7bb<wbr>9d83daac69cde71408ffd6c043be6a<wbr>4991]<br> actual hash: [<wbr>e3b0c44298fc1c149afbf4c8996fb9<wbr>2427ae41e4649b934ca495991b7852<wbr>b855]<br> status: [1;"Unsupported protocol"]<br><br></div>So I assume the HTTPS is not supported. Now if I understand correctly the alternative is to download the modules manually in $HOME/ExternalData and point to that folder through the variable ExternalData_OBJECT_STORES. The question is what do I need to download, is that the only the two links above or there is more ? Is it maybe an option to change version of Cmake that can support that or/and how do I enable the support ?<br><br></div>Any help is appreciated.<br></div>Regards,<br></div>Marco <br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-08-17 16:51 GMT+02:00 Lowekamp, Bradley (NIH/NLM/LHC) [C] <span dir="ltr"><<a href="mailto:blowekamp@mail.nih.gov" target="_blank">blowekamp@mail.nih.gov</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello!<br>
<br>
OK, so it looks like you are using the current master branch of SimpleITK. I know this because you have the latest SimpleITK feature where CMake downloads the Superbuild dependencies with the CMake “ExternalData” module. This enables some interesting options for your situation.<br>
<br>
You are on a cluster. On compute clusters, frequently the nodes don’t have access to the internet. So when cmake tries to download the URLS below it times out or errors. You can verify this with some command like “wget <a href="https://midas3.kitware.com/midas/api/rest?method=midas.bitstream.download&checksum=2e115fe26e435e33b0d5c022e4490567&algorithm=MD5" rel="noreferrer" target="_blank">https://midas3.kitware.com/mid<wbr>as/api/rest?method=midas.bitst<wbr>ream.download&checksum=2e115fe<wbr>26e435e33b0d5c022e4490567&<wbr>algorithm=MD5</a>”. The alternative is that your version of CMake doesn’t support HTTPS. Yo can test this with the following script: <a href="https://github.com/conda-forge/cmake-feedstock/blob/master/recipe/SSLTest.cmake" rel="noreferrer" target="_blank">https://github.com/conda-forge<wbr>/cmake-feedstock/blob/master/<wbr>recipe/SSLTest.cmake</a><br>
<br>
Frequently, there are nodes on a cluster which have access to the internet for situations like this. You may be able to just use one of them.<br>
<br>
With the new ExternalData download module you may be able to pre-download these dependencies on the log in node. If you set the environment variable ExternalData_OBJECT_STORES to say “${HOME}/.ExternalData”, it will cache downloads to this directory. I assume your home directory is available on the log in nodes. You can configure the SuperBuild there and build just the “SuperBuildSimpleITKSource” target. This will download the dependencies to the ExternaData directory. Then you can build in a cluster node, which should use this cache.<br>
<br>
Also note when testing is enabled for the actual SimpleITK sub-project, a bunch of testing data is downloaded too. You can disable testing to avoid this, download and un-tar a Data archive [1], or replace the above procedure for this subproject.<br>
<br>
HTH,<br>
Brad<br>
<br>
[1] <a href="https://sourceforge.net/projects/simpleitk/files/SimpleITK/0.10.0/Source/" rel="noreferrer" target="_blank">https://sourceforge.net/projec<wbr>ts/simpleitk/files/SimpleITK/<wbr>0.10.0/Source/</a><br>
<div><div><br>
<br>
> On Aug 17, 2016, at 10:26 AM, marco giordano <<a href="mailto:marco.giord@gmail.com" target="_blank">marco.giord@gmail.com</a>> wrote:<br>
><br>
> Hi there,<br>
><br>
> I just downloaded SimpleTK and I tried to build it on a linux cluster (running Scientific Linux release 6.5- Carbon) using the superbuild.<br>
><br>
> I use cmake 3.3.1. The Generation of build files is fine, then when I try to build i get this:<br>
><br>
> -- Fetching "<a href="http://midas3.kitware.com/midas/api/rest?method=midas.bitstream.download&checksum=2e115fe26e435e33b0d5c022e4490567&algorithm=MD5" rel="noreferrer" target="_blank">http://midas3.kitware.com/mid<wbr>as/api/rest?method=midas.bitst<wbr>ream.download&checksum=2e115fe<wbr>26e435e33b0d5c022e4490567&<wbr>algorithm=MD5</a>"<br>
> -- [download 100% complete]<br>
> -- Fetching "<a href="https://midas3.kitware.com/midas/api/rest?method=midas.bitstream.download&checksum=2e115fe26e435e33b0d5c022e4490567&algorithm=MD5" rel="noreferrer" target="_blank">https://midas3.kitware.com/mi<wbr>das/api/rest?method=midas.bits<wbr>tream.download&checksum=2e115f<wbr>e26e435e33b0d5c022e4490567&<wbr>algorithm=MD5</a>"<br>
> -- Fetching "<a href="https://itk.org/files/ExternalData/MD5/2e115fe26e435e33b0d5c022e4490567" rel="noreferrer" target="_blank">https://itk.org/files/Externa<wbr>lData/MD5/2e115fe26e435e33b0d5<wbr>c022e4490567</a>"<br>
> CMake Error at /cm/shared/apps/cmake/3.3.1/in<wbr>stall/share/cmake-3.3/Modules/<wbr>ExternalData.cmake:1012 (message):<br>
> Object MD5=2e115fe26e435e33b0d5c022e4<wbr>490567 not found at:<br>
><br>
> <a href="http://midas3.kitware.com/midas/api/rest?method=midas.bitstream.download&checksum=2e115fe26e435e33b0d5c022e4490567&algorithm=MD5" rel="noreferrer" target="_blank">http://midas3.kitware.com/mid<wbr>as/api/rest?method=midas.bitst<wbr>ream.download&checksum=2e115fe<wbr>26e435e33b0d5c022e4490567&<wbr>algorithm=MD5</a> ("Unsupported protocol")<br>
> <a href="https://midas3.kitware.com/midas/api/rest?method=midas.bitstream.download&checksum=2e115fe26e435e33b0d5c022e4490567&algorithm=MD5" rel="noreferrer" target="_blank">https://midas3.kitware.com/mi<wbr>das/api/rest?method=midas.bits<wbr>tream.download&checksum=2e115f<wbr>e26e435e33b0d5c022e4490567&<wbr>algorithm=MD5</a> ("Unsupported protocol")<br>
> <a href="https://itk.org/files/ExternalData/MD5/2e115fe26e435e33b0d5c022e4490567" rel="noreferrer" target="_blank">https://itk.org/files/Externa<wbr>lData/MD5/2e115fe26e435e33b0d5<wbr>c022e4490567</a> ("Unsupported protocol")<br>
> Call Stack (most recent call first):<br>
> /cm/shared/apps/cmake/3.3.1/i<wbr>nstall/share/cmake-3.3/Modules<wbr>/ExternalData.cmake:1034 (_ExternalData_download_object<wbr>)<br>
><br>
><br>
> make[2]: *** [ExternalData/.ExternalSource/<wbr>lua-5.1.5.tar.gz.md5-stamp] Error 1<br>
> make[1]: *** [CMakeFiles/SuperBuildSimpleIT<wbr>KSourceReal.dir/all] Error 2<br>
><br>
> Any help is welcome.<br>
> Regards<br>
> --<br>
> Marco<br>
</div></div><div><div>> ______________________________<wbr>_______<br>
> Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensou<wbr>rce/opensource.html</a><br>
><br>
> Kitware offers ITK Training Courses, for more information visit:<br>
> <a href="http://www.kitware.com/products/protraining.php" rel="noreferrer" target="_blank">http://www.kitware.com/product<wbr>s/protraining.php</a><br>
><br>
> Please keep messages on-topic and check the ITK FAQ at:<br>
> <a href="http://www.itk.org/Wiki/ITK_FAQ" rel="noreferrer" target="_blank">http://www.itk.org/Wiki/ITK_FA<wbr>Q</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://public.kitware.com/mailman/listinfo/insight-users" rel="noreferrer" target="_blank">http://public.kitware.com/mail<wbr>man/listinfo/insight-users</a><br>
<br><span class="HOEnZb"><font color="#888888">
</font></span></div></div></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><br>-- <br><div data-smartmail="gmail_signature">Marco Giordano<br>SKYPE:marcogiord81</div>
</font></span></div>
<br>______________________________<wbr>_______<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" rel="noreferrer" target="_blank">http://www.itk.org/Wiki/ITK_<wbr>FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/insight-users" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br></div>