[Gdal-dev] issues merging 7 bands of Landsat scene into 1 image
Mateusz Loskot
mateusz at loskot.net
Mon Mar 19 16:37:59 EDT 2007
Maciej Sieczka wrote:
> Mateusz Loskot wrote:
>> Maciej Sieczka wrote:
>>> GDAL --without-python --with-ngpython (full config syntax and other
>>> details below) configures and builds without errors, but after the make
>>> install, no python scripts get installed, including gdal_merge.py. How
>>> do I build GDAL --with-ngpython and install it properly?
>>>
>>> I have python2.4-numeric 24.2 and python2.4-numarray 1.5.1 installed
>>> into /usr. site-packages dir is /usr/lib/python2.4/site-packages/
>>>
>>> Note: there is a warning in config.log: "checking for NumPy include
>>> files... missing"; does that matter?
>> Maciej,
>>
>> Yes, it does.
>> You need to install dev package for NumPy package.
>
> I don't have such available. Never heard of...
I have installed python-numpy-dev
>> Try to install the NumPy dev package and it should help.
>
> What is that missing include file exactly? Maybe some other package
> provides it? I inspected config.log and found no hints.
Just try to install python-numpy-dev.
> Is there anybody on the list who knows how to build --without-python
> --with-ngpython on Ubuntu Dapper? I will be grateful for your hints.
I just tested and it works for me.
./configure --prefix=$HOME/usr --without-python --with-ngpython
make
make install
Here is listing of installed modules:
//////////////////////////////////////////////////////////////////
mloskot:~/dev/gdal/_svn/trunk/gdal/pymod$ ls -l
~/usr/lib/python2.4/site-packages/
total 1352
-rw-r--r-- 1 mloskot mloskot 4276 2007-03-05 05:00 gdalconst.py
-rw-r--r-- 1 mloskot mloskot 4290 2007-03-19 21:23 gdalconst.pyc
-rwxr-xr-x 1 mloskot mloskot 57079 2007-03-19 21:22 _gdalconst.so
-rw-r--r-- 1 mloskot mloskot 28381 2007-03-05 05:00 gdal.py
-rw-r--r-- 1 mloskot mloskot 36881 2007-03-19 21:23 gdal.pyc
-rwxr-xr-x 1 mloskot mloskot 383528 2007-03-19 21:22 _gdal.so
-rw-r--r-- 1 mloskot mloskot 32974 2007-03-05 05:00 ogr.py
-rw-r--r-- 1 mloskot mloskot 44717 2007-03-19 21:23 ogr.pyc
-rwxr-xr-x 1 mloskot mloskot 361476 2007-03-19 21:22 _ogr.so
-rw-r--r-- 1 mloskot mloskot 25161 2007-03-11 10:32 osr.py
-rw-r--r-- 1 mloskot mloskot 31040 2007-03-19 21:23 osr.pyc
-rwxr-xr-x 1 mloskot mloskot 329742 2007-03-19 21:22 _osr.so
mloskot:~/dev/gdal/_svn/trunk/gdal/pymod$
//////////////////////////////////////////////////////////////////
Note, that currently none of python utils from gdal/pymod are installed,
so you won't see gdal_merge.py in the $PREFIX/bin directory.
You need to manually copy all tools you need, from gdal/pymod
to $PREFIX/bin.
Cheers
--
Mateusz Loskot
http://mateusz.loskot.net
More information about the Gdal-dev
mailing list