<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">Hey Daniel, <br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">Much appreciated! I think building my own on a VM might be the next thing I try. <br>
</div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">I attempted to use jevans version, with a fresh install of Anaconda, but to no avail. <br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">
The code here: <a href="https://gist.github.com/jake-brinkmann/fb4bd3f4625b209978d0">https://gist.github.com/jake-brinkmann/fb4bd3f4625b209978d0</a> still didn't work. <br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">
I'll look through the examples to attempt again after building my own package.<br><br>Thank you!<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;font-size:small">Jake<br></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Sat, Aug 16, 2014 at 4:34 AM, Daniel Clewley <span dir="ltr"><<a href="mailto:daniel.clewley@gmail.com" target="_blank">daniel.clewley@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Jake,<br>
<br>
As you mentioned Anaconda Python, one options is to install a different GDAL build from binstar someone has built with HDF4 support or build yourself using the conda build system on a virtual machine you have root access to and then install these binaries through conda.<br>

<br>
A quick search of <a href="http://binstar.org" target="_blank">binstar.org</a> showed the following user with GDAL built against HDF4:<br>
<br>
<a href="https://binstar.org/jevans" target="_blank">https://binstar.org/jevans</a><br>
<br>
You should be able to install this version of GDAL through conda using:<br>
<br>
conda install -c <a href="https://conda.binstar.org/jevans" target="_blank">https://conda.binstar.org/jevans</a> gdal<br>
<br>
Note: I haven't tested this.<br>
<br>
Building your own packages is a bit more involved - basically you create a recipe and then build it using:<br>
<br>
conda build recipe-folder<br>
<br>
There is a github repository with lots of examples here:<br>
<br>
<a href="https://github.com/conda/conda-recipes/" target="_blank">https://github.com/conda/conda-recipes/</a><br>
<br>
We've built GDAL and other software through conda for Linux and OS X under virtual machines and installed on different machines (without root access) and it's worked pretty well.<br>
<br>
Hope this helps and the discussion of conda isn't too off topic.<br>
<br>
Thanks,<br>
<br>
Dan<br>
<br>
On 15 Aug 2014 23:11, Even Rouault <<a href="mailto:even.rouault@spatialys.com">even.rouault@spatialys.com</a>> wrote:<br>
><br>
> Jake,<br>
><br>
> well if you don't have the basic build dependencies, this might get<br>
> complicated... Nothing impossible, but might take time indeed.<br>
> Well one possibility is to access a CentOS where you have a root access (e.g. a<br>
> VM that you install), build on it, and then copy the resulting binaries.<br>
><br>
> Even<br>
><br>
>> Hey Even,<br>
>><br>
>> Thank you for outlining this. The trouble I have is that, without root<br>
>> access, `make install` is a never-ending list of missing libraries, or<br>
>> compilation errors...<br>
>> Do you know of a way to resolve the missing libraries without root access<br>
>> (and without wasting the next 48hours untaring, compiling, and installing)?<br>
>><br>
>> Just as an example, I cant even compile the HDF4 source with `./configure<br>
>> --prefix=/have/write/access` because of something with Fortran and g77... I<br>
>> disable fortran as `./configure --prefix=/have/write/access<br>
>> --enable-fortran=NO` but then it fails due to missing yacc utility.... This<br>
>> continues until I get so lost as to what library I'm installing for what<br>
>> package, that it just seems there must be an easier way...<br>
>><br>
>> If you have any thoughts, please, let me know.<br>
>><br>
>> Thank you for reaching out.<br>
>> Jake<br>
>><br>
>><br>
>> On Fri, Aug 15, 2014 at 4:45 PM, Even Rouault <<a href="mailto:even.rouault@spatialys.com">even.rouault@spatialys.com</a>><br>
>> wrote:<br>
>><br>
>>> Selon Jake Brinkmann <<a href="mailto:jakebrinkmann@gmail.com">jakebrinkmann@gmail.com</a>>:<br>
>>><br>
>>>> Hello all geospatial-web-wizards,<br>
>>>><br>
>>>> I am struggling pretty hard building the GDAL libraries and all the<br>
>>>> countless dependencies from source in CentOS6.5. I do not have root<br>
>>> access<br>
>>>> on my machine, but I need the GDAL (as well as HDF, GeoTiff, GEOS, etc.)<br>
>>>> libraries for performing image processing using the Terra/Aqua MODIS<br>
>>>> satellite remote sensing data.<br>
>>>> Does anyone out there have experience building GDAL along with HDF and<br>
>>>> Python bindings, but without, and I emphasize here: *without* root<br>
>>> access?<br>
>>>> Alternatively, if possible, I would be willing to install a binary, but<br>
>>>> remember: I do not have root access (so I'm not sure this would work...)<br>
>>>> and lack experience with *.rpm files<br>
>>>><br>
>>>> Let me know, please, if anyone has any ideas at all.<br>
>>>> I am really wishing the Anaconda Python distribution would come with GDAL<br>
>>>> supporting HDF4, but it currently does not...<br>
>>>><br>
>>>> Thanks for reading, and any help you can provide,<br>
>>><br>
>>> Jake,<br>
>>><br>
>>> It is always possible to build without root access.<br>
>>> The scheme is :<br>
>>> 1) Download HDF4 sources, untar, cd to the source directory<br>
>>> 2) ./configure --prefix=/somewhere/where/you/have/write/access<br>
>>> 3) make install<br>
>>> 4) Download GDAL sources, untar, cd to the source directory<br>
>>> 5) ./configure --prefix=/somewhere/where/you/have/write/access<br>
>>> --with-hdf4=/somewhere/where/you/have/write/access<br>
>>> 6) make install<br>
>>> 7) cd swig/python<br>
>>> 8) python setup.py build<br>
>>> 9) export PYTHONPATH=$PWD/build/lib.linuxXXXXXXXX (to be adapted depending<br>
>>> on<br>
>>> your architecture and Python version)<br>
>>> 10) export PATH=/somewhere/where/you/have/write/access/bin:$PATH<br>
>>> 11) export LD_LIBRARY_PATH=/somewhere/where/you/have/write/access/lib<br>
>>><br>
>>> You should be done.<br>
>>><br>
>>> Even<br>
<span class="HOEnZb"><font color="#888888">>>><br>
>>> --<br>
>>> Spatialys - Geospatial professional services<br>
>>> <a href="http://www.spatialys.com" target="_blank">http://www.spatialys.com</a><br>
<br>
</font></span></blockquote></div><br></div>