[Gdal-dev] Creating gdal package problem

MZM marazm at navigator.lv
Sat Nov 27 06:37:28 EST 2004


Hi, 
 
I'm just a newbee in Linux and I wanted to install GDAL clean way. 
(Sorry for my eng.) 
 
I culdn't understand how to create gdal package for Slackware. I 
always install soft only from packages. Normal way of package 
creation: 
./configure --prefix=/usr 
make 
make install DESTDIR=/home/user/pkg/ 
or make install prefix=/home/install/pkg/usr 
Then directory content are packed into package and only then 
installed to /usr.  
Problem is - GDAL ignores DESTDIR or PREFIX.  
Same is on Gentoo - there pakage first is compiled (sugested to 
compile with --prefix=/usr --mandir=/usr/share/man and 
--infodir=/usr/share/info) and then installed to sandbox 
(/var/tmp/package_name/image) and, only if there are no errors, then 
it is moved to /usr. If during make install it tries to do something 
in /usr, then installation is terminated. 
I worked around python with --with-pymoddir, and all seemd fine, 
except: 
 
libtool: install: warning: relinking `_gdalmodule.la' 
(cd /var/tmp/portage/gdal-1.2.5/work/gdal-1.2.5/pymod; /bin/sh ../libtool  
--mode=relink g++ gdal_wrap.lo numpydataset.lo 
gdalnumeric.lo ../libgdal.la -o _gdalmodule.la 
-rpath /var/tmp/portage/gdal-1.2.5/image//usr/lib/python2.3/site-packages 
-no-undefined -avoid-version -module ) 
g++ -shared 
-nostdlib /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../crti.o /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/crtbeginS.o  .libs/gdal_wrap.o .libs/numpydataset.o .libs/gdalnumeric.o  
-L/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4 -L/usr/X11R6/lib 
-L/usr/lib/lib 
-L/usr/lib/gcc-lib/i686-pc-linux-gnu/../../../i686-pc-linux-gnu/lib-L/usr/i686-pc-linux-gnu/lib 
-L/usr/i686-pc-linux-gnu/bin -L/usr/lib -lgdal 
-L/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/lib 
-L/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../.. -lstdc++ -lm -lc 
-lgcc_s /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/crtendS.o /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../crtn.o  
-Wl,-soname -Wl,_gdalmodule.so -o .libs/_gdalmodule.so 
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.4/../../../../i686-pc-linux-gnu/bin/ld: 
cannot find -lgdal 
collect2: ld returned 1 exit status 
libtool: install: error: relink `_gdalmodule.la' with the above 
command before installing it 
make[1]: *** [install] Error 1 
make[1]: Leaving directory 
`/var/tmp/portage/gdal-1.2.5/work/gdal-1.2.5/pymod' 
make: *** [install-actions] Error 2 
 
As can see form error - it looks in /usr/lib for some stuff (I'm not 
a coder), buth that stuff isn't there - its in 
some /tempinstalldir/lib. 
 
So - where is my mistake? Is there way how to install gdal to some 
tempdir before moving to /usr? I know about 
--prefix=/tempinstalldir/usr, but it's ugly hack. 
 
Any help welcome :) 
 
TNX,  
MZM. 

-- 
Bezmaksas e-pasta adreses piedāvā http://webmail.delfi.lv/



More information about the Gdal-dev mailing list