Hi, I'm trying to compile the latest version of poppler (0.20.4) on RH Enterprise 5.6 and cant get it to compile at all. I've tried all teh versions back until 10.7 which is the first one i got to build and install. Can anything be done to get teh latest version working on RHE5? Thanks, Pat
For starters you can paste the error you are getting.
my bad: [root@www poppler-0.20.4]# ./configure -bash: ./configure: /bin/sh: bad interpreter: Permission denied [root@www poppler-0.20.4]# sh ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... //bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking for style of include used by make... GNU checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... configure: error: in `/tmp/poppler-0.20.4': configure: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. See `config.log' for more details
Try with bash instead of sh? Or try to compile with cmake instead of autotools?
bash gives this (if i've done it right): [root@www poppler-0.20.4]# bash ./configure checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... //bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking for style of include used by make... GNU checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... configure: error: in `/tmp/poppler-0.20.4': configure: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. See `config.log' for more details what command am i using for cmake? (fontend dev, not linux, apologies)
For cmake usage cd poppler_folder mkdir build cd build cmake .. make Also which gcc version do you have?
no joy: [root@www lib]# cd /tmp/poppler-0.20.4 [root@www poppler-0.20.4]# mkdir build [root@www poppler-0.20.4]# cd build [root@www build]# cmake .. -bash: cmake: command not found [root@www build]# cmake -bash: cmake: command not found [root@www build]# cmake .. -bash: cmake: command not found [root@www build]# make make: *** No targets specified and no makefile found. Stop. [root@www build]# cd ../ [root@www poppler-0.20.4]# make make: *** No targets specified and no makefile found. Stop. [root@www poppler-0.20.4]# gcc [root@www poppler-0.20.4]# gcc -v Using built-in specs. Target: x86_64-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --disable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic --host=x86_64-redhat-linux Thread model: posix gcc version 4.1.2 20080704 (Red Hat 4.1.2-50)
gcc 4.1 is ancient i'm not sure we want to support that For cmake you might want to install cmake before using it. Anyway this is not a bug per se, you're just using old versions of everything thus the last version of poppler that compiles is an old one. I am sure you could somehow convince newer versions of poppler to compile on older versions of stuff like RedHat carries, but as said this is not a bug. You might want to post to the mailing list in case someone has been in the same situation than you.
that all makes sense. thanks for the help :)
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.