[El] pcraster support in GDAL/OGR 1.7.2 release (1.7.2-5_0.el5.elgis.i386) ?

Mauricio Zambrano mauricio.zambrano at jrc.ec.europa.eu
Mon Oct 18 11:40:35 EDT 2010


Dear Peter,

I followed your instructions:

1) I set up a build environment, with the
gdal-1.7.2-5_1.el5.elgis.src.rpm file you sent me.

2) I tried to enable PCraster in the 'gdal.spec' file, by adding the
following line in the '%configure' section (just after line 203):

        --with-pcraster           \

3) Installed some missing dependencies for building the package

$rpmbuild -bb ~/rpmbuild/SPECS/gdal.spec
sh: ruby: command not found
sh: ruby: command not found
sh: ruby: command not found
sh: ruby: command not found
sh: ruby: command not found
sh: ruby: command not found
sh: ruby: command not found
error: Failed build dependencies:
        xerces-c-devel is needed by gdal-1.7.2-5_1.i386
        libungif-devel is needed by gdal-1.7.2-5_1.i386
        ruby-devel is needed by gdal-1.7.2-5_1.i386
        jasper-devel is needed by gdal-1.7.2-5_1.i386
        cfitsio-devel is needed by gdal-1.7.2-5_1.i386
        hdf-static is needed by gdal-1.7.2-5_1.i386
        hdf-devel is needed by gdal-1.7.2-5_1.i386
        unixODBC-devel is needed by gdal-1.7.2-5_1.i386
        mysql-devel is needed by gdal-1.7.2-5_1.i386
        postgresql84-devel is needed by gdal-1.7.2-5_1.i386
        ogdi-devel is needed by gdal-1.7.2-5_1.i386
        ant is needed by gdal-1.7.2-5_1.i386
        ruby is needed by gdal-1.7.2-5_1.i386


4) I tried to build the package,with:

$ rpmbuild -bb ~/rpmbuild/SPECS/gdal.spec

after answering some latex questions with the 'q' you mentioned (thanks
a lot !), I got the bad exit status that you can read at the end of
these messages that I got at the end of the compilation process:


/usr/bin/libtool --mode=finish --silent /usr/lib
+ make DESTDIR=/var/tmp/gdal-1.7.2-5_1-root-zambrhe
INST_MAN=/usr/share/man install-man
/home/zambrhe/rpmbuild/BUILD/gdal-1.7.2/install-sh
-d /var/tmp/gdal-1.7.2-5_1-root-zambrhe/usr/share/man/man1
for f in  ; do /home/zambrhe/rpmbuild/BUILD/gdal-1.7.2/install-sh -c -m
0644 $f /var/tmp/gdal-1.7.2-5_1-root-zambrhe/usr/share/man/man1 ; done
+ mkdir
-p /var/tmp/gdal-1.7.2-5_1-root-zambrhe/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi
+
mv /var/tmp/gdal-1.7.2-5_1-root-zambrhe/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/Geo /var/tmp/gdal-1.7.2-5_1-root-zambrhe/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto /var/tmp/gdal-1.7.2-5_1-root-zambrhe/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/
+
find /var/tmp/gdal-1.7.2-5_1-root-zambrhe/usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi -name '*.dox' -exec rm -rf '{}' ';'
+
mv /var/tmp/gdal-1.7.2-5_1-root-zambrhe/usr/lib/ruby/site_ruby/1.8/i386-linux/gdal/gdal.so /var/tmp/gdal-1.7.2-5_1-root-zambrhe/usr/lib/ruby/site_ruby/1.8/i386-linux/gdal/gdalconst.so /var/tmp/gdal-1.7.2-5_1-root-zambrhe/usr/lib/ruby/site_ruby/1.8/i386-linux/gdal/ogr.so /var/tmp/gdal-1.7.2-5_1-root-zambrhe/usr/lib/ruby/site_ruby/1.8/i386-linux/gdal/osr.so /var/tmp/gdal-1.7.2-5_1-root-zambrhe/usr/lib/ruby/site_ruby/1.8/i386-linux/
+ rm
-rf /var/tmp/gdal-1.7.2-5_1-root-zambrhe/usr/lib/ruby/site_ruby/1.8/i386-linux/gdal
+ touch -r NEWS swig/java/gdal.jar
+ mkdir -p /var/tmp/gdal-1.7.2-5_1-root-zambrhe/usr/share/java
+ cp -p
swig/java/gdal.jar /var/tmp/gdal-1.7.2-5_1-root-zambrhe/usr/share/java/gdal-1.7.2.jar
+ cp -pvl swig/java/.libs/libgdalconstjni.so
swig/java/.libs/libgdalconstjni.so.1
swig/java/.libs/libgdalconstjni.so.1.14.2 swig/java/.libs/libgdaljni.so
swig/java/.libs/libgdaljni.so.1 swig/java/.libs/libgdaljni.so.1.14.2
swig/java/.libs/libogrjni.so swig/java/.libs/libogrjni.so.1
swig/java/.libs/libogrjni.so.1.14.2 swig/java/.libs/libosrjni.so
swig/java/.libs/libosrjni.so.1
swig/java/.libs/libosrjni.so.1.14.2 /var/tmp/gdal-1.7.2-5_1-root-zambrhe/usr/lib
`swig/java/.libs/libgdalconstjni.so' ->
`/var/tmp/gdal-1.7.2-5_1-root-zambrhe/usr/lib/libgdalconstjni.so'
cp: cannot create link
`/var/tmp/gdal-1.7.2-5_1-root-zambrhe/usr/lib/libgdalconstjni.so':
Invalid cross-device link
`swig/java/.libs/libgdalconstjni.so.1' ->
`/var/tmp/gdal-1.7.2-5_1-root-zambrhe/usr/lib/libgdalconstjni.so.1'
cp: cannot create link
`/var/tmp/gdal-1.7.2-5_1-root-zambrhe/usr/lib/libgdalconstjni.so.1':
Invalid cross-device link
`swig/java/.libs/libgdalconstjni.so.1.14.2' ->
`/var/tmp/gdal-1.7.2-5_1-root-zambrhe/usr/lib/libgdalconstjni.so.1.14.2'
cp: cannot create link
`/var/tmp/gdal-1.7.2-5_1-root-zambrhe/usr/lib/libgdalconstjni.so.1.14.2': Invalid cross-device link
`swig/java/.libs/libgdaljni.so' ->
`/var/tmp/gdal-1.7.2-5_1-root-zambrhe/usr/lib/libgdaljni.so'
cp: cannot create link
`/var/tmp/gdal-1.7.2-5_1-root-zambrhe/usr/lib/libgdaljni.so': Invalid
cross-device link
`swig/java/.libs/libgdaljni.so.1' ->
`/var/tmp/gdal-1.7.2-5_1-root-zambrhe/usr/lib/libgdaljni.so.1'
cp: cannot create link
`/var/tmp/gdal-1.7.2-5_1-root-zambrhe/usr/lib/libgdaljni.so.1': Invalid
cross-device link
`swig/java/.libs/libgdaljni.so.1.14.2' ->
`/var/tmp/gdal-1.7.2-5_1-root-zambrhe/usr/lib/libgdaljni.so.1.14.2'
cp: cannot create link
`/var/tmp/gdal-1.7.2-5_1-root-zambrhe/usr/lib/libgdaljni.so.1.14.2':
Invalid cross-device link
`swig/java/.libs/libogrjni.so' ->
`/var/tmp/gdal-1.7.2-5_1-root-zambrhe/usr/lib/libogrjni.so'
cp: cannot create link
`/var/tmp/gdal-1.7.2-5_1-root-zambrhe/usr/lib/libogrjni.so': Invalid
cross-device link
`swig/java/.libs/libogrjni.so.1' ->
`/var/tmp/gdal-1.7.2-5_1-root-zambrhe/usr/lib/libogrjni.so.1'
cp: cannot create link
`/var/tmp/gdal-1.7.2-5_1-root-zambrhe/usr/lib/libogrjni.so.1': Invalid
cross-device link
`swig/java/.libs/libogrjni.so.1.14.2' ->
`/var/tmp/gdal-1.7.2-5_1-root-zambrhe/usr/lib/libogrjni.so.1.14.2'
cp: cannot create link
`/var/tmp/gdal-1.7.2-5_1-root-zambrhe/usr/lib/libogrjni.so.1.14.2':
Invalid cross-device link
`swig/java/.libs/libosrjni.so' ->
`/var/tmp/gdal-1.7.2-5_1-root-zambrhe/usr/lib/libosrjni.so'
cp: cannot create link
`/var/tmp/gdal-1.7.2-5_1-root-zambrhe/usr/lib/libosrjni.so': Invalid
cross-device link
`swig/java/.libs/libosrjni.so.1' ->
`/var/tmp/gdal-1.7.2-5_1-root-zambrhe/usr/lib/libosrjni.so.1'
cp: cannot create link
`/var/tmp/gdal-1.7.2-5_1-root-zambrhe/usr/lib/libosrjni.so.1': Invalid
cross-device link
`swig/java/.libs/libosrjni.so.1.14.2' ->
`/var/tmp/gdal-1.7.2-5_1-root-zambrhe/usr/lib/libosrjni.so.1.14.2'
cp: cannot create link
`/var/tmp/gdal-1.7.2-5_1-root-zambrhe/usr/lib/libosrjni.so.1.14.2':
Invalid cross-device link
error: Bad exit status from /var/tmp/rpm-tmp.59994 (%install)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.59994 (%install)


Any idea about how to proceed would be really appreciated.

Thanks in advance,

Mauricio

-- 
=======================================================
Linux user #454569 -- Ubuntu user #17469
=======================================================
DISCLAIMER:
"The views expressed are purely those of the writer 
and may not in any circumstances be regarded as stating 
an official position of the European Commission."
=======================================================
"Learning is not attained by chance, 
it must be sought for with ardor and 
attended to with diligence."
(Abigail Adams, 1744 - 1818)


On Mon, 2010-10-18 at 13:06 +0200, Peter Hopfgartner wrote:
> --------Mauricio Zambrano <mauricio.zambrano at jrc.ec.europa.eu> wrote--------
> Subject: RE: RE: [El] pcraster support in GDAL/OGR 1.7.2 release	(1.7.2-5_0.el5.elgis.i386) ?
> Date: 18.10.2010 12:42
> 
> >Dear Peter,
> >
> >Thanks for your fast reply.
> >
> >
> >> 
> >> Anyway, you can get rebuild your own version easily.
> >> 
> >> 1. Set up a build environment, (http://fedoranews.org/hoyt/rpm/)
> >> 2. Download
> >http://elgis.argeo.org/repos/testing/5/elgis/SRPMS/gdal-1.7.2-5_1.el5.elgis.src.rpm,
> >> 3. Enable PCraster in gdal.spec
> >> 4. build the package. In case you are prompted by TeX/LaTeXm give type
> >"q" followed by enter 
> >
> >Following the instructions, I got a problem.
> >
> >When I tried to install the .src.rpm file, I got the following warnings:
> >
> >sudo rpm -i gdal-1.7.2-5_1.el5.elgis.src.rpm
> >warning: user mockbuild does not exist - using root
> >warning: group mockbuild does not exist - using root
> >warning: user mockbuild does not exist - using root
> >warning: group mockbuild does not exist - using root
> >warning: user mockbuild does not exist - using root
> >warning: group mockbuild does not exist - using root
> >warning: user mockbuild does not exist - using root
> >warning: group mockbuild does not exist - using root
> >warning: user mockbuild does not exist - using root
> >warning: group mockbuild does not exist - using root
> 
> 
> These are not important
> >
> >and then, I couldn't find the 
> >
> >~/rpmbuild/SOURCES and ~/rpmbuild/SPECS 
> >
> 
> you have to create them by hand: My rpmbuild/ looks like this:
> 
> [rpmbuild at rpm-devel ~]$ ls -l rpmbuild/
> total 504
> drwxrwxr-x 15 rpmbuild rpmbuild   4096 Oct 18 11:03 BUILD
> drwxrwxr-x  4 rpmbuild rpmbuild   4096 May 31 16:55 RPMS
> drwxrwxr-x  2 rpmbuild rpmbuild 466944 Oct 18 10:05 SOURCES
> drwxrwxr-x  2 rpmbuild rpmbuild   4096 Oct 18 10:25 SPECS
> drwxrwxr-x  2 rpmbuild rpmbuild   4096 Oct 18 11:27 SRPMS
> drwxrwxr-x  2 rpmbuild rpmbuild   4096 Oct 18 11:27 tmp
> 
> 
> >directories (probably because I do not have root privilegies for the
> >computer I'm using at work).
> >
> You do not need root privileges for building. You'll need them to install the packages.
> 
> Try the instructions from http://wiki.centos.org/HowTos/SetupRpmBuildEnvironment .
> 
> >What should I do to to set up my build environment ?
> >
> >Thanks in advance,
> >
> >Mauricio
> >
> 
> Have fun & good luck,
> 
> Peter
> 
> >-- 
> >=======================================================
> >Linux user #454569 -- Ubuntu user #17469
> >=======================================================
> >"Learning is not attained by chance, 
> >it must be sought for with ardor and 
> >attended to with diligence."
> >(Abigail Adams, 1744 - 1818)
> >=======================================================
> >DISCLAIMER:
> >"The views expressed are purely those of the writer 
> >and may not in any circumstances be regarded as stating 
> >an official position of the European Commission."
> >
> >> 
> >> Peter 
> >> 
> >> R3 GIS Srl - GmbH
> >> http://www.r3-gis.com
> >> 
> >> 
> >> 
> >> _______________________________________________
> >> el mailing list
> >> el at lists.osgeo.org
> >> http://lists.osgeo.org/mailman/listinfo/el
> >
> >
> >
> 
> _______________________________________________
> el mailing list
> el at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/el
-- 
=======================================================
Linux user #454569 -- Ubuntu user #17469
=======================================================
"Learning is not attained by chance, 
it must be sought for with ardor and 
attended to with diligence."
(Abigail Adams, 1744 - 1818)
=======================================================
DISCLAIMER:
"The views expressed are purely those of the writer 
and may not in any circumstances be regarded as stating 
an official position of the European Commission."



More information about the el mailing list