0

I was migrating Gdal OpenSuse to Red Hat 7.4 64bit. I did a procedure for installing the packages and compiling, below are the steps:

yum groupinstall "Development Tools"
yum install fontconfig.x86_64 
yum install fontconfig-devel.x86_64
yum install openssl-devel
yum install -y libjpeg libjpeg-devel
yum install wget
wget ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/home:/matthewdva:/epel:/el7/CentOS_7/x86_64/proj-4.8.0-4.7.x86_64.rpm
rpm -Ivh proj-4.8.0-4.7.x86_64.rpm 
ln -s /usr/lib64/libproj.so.0 /usr/lib/libproj.so
vi /etc/profile
PKG_CONFIG_PATH="/usr/lib64/pkgconfig:/usr/lib/pkgconfig:/usr/opt/lib64/pkgconfig:/usr/opt/lib/pkgconfig"
export PKG_CONFIG_PATH
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib:/usr/local/lib64
source /etc/profile
ldconfig
cd /tmp
wget http://poppler.freedesktop.org/poppler-0.51.0.tar.xz
tar –xf poppler-0.51.0.tar.xz
cd /tmp/poppler-0.51.0
./configure --prefix=/usr --sysconfdir=/etc --disable-static --enable-build-type=release --enable-cmyk --enable-xpdf-headers  --with-testdatadir=$PWD/testfiles
make 
make install
ldconfig
cd /tmp
wget http://poppler.freedesktop.org/poppler-data-0.4.7.tar.gz
tar -xzf poppler-data-0.4.7.tar.gz
cd poppler-data-0.4.7
make prefix=/usr install
cd /tmp
wget https://download.osgeo.org/gdal/2.4.3/gdal-2.4.3.tar.gz
tar –xzf gdal-2.4.3.tar.gz
cd  /tmp/gdal-2.4.3
./configure --prefix=/usr/  --with-poppler=yes  --with-libtiff --with-geotiff --with-gif
make -j4
make install
ldconfig
reboot

But after running the command gdal_translate /tmp/in.pdf out.tif -of GTiff

Error is displayed "0ERROR 1: Bitmap decoded size (16200272x0) doesn't match raster size (2405x1386)" "

Any idea?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.