question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CentOS Specific Install Instructions

See original GitHub issue

To install on CentOS:

Following the instructions from this link

On CentOS

On CentOS the libpoppler-cpp library is not included with the system so we need to build from source. Note that recent versions of poppler require C++11 which is not available on CentOS, so we build a slightly older version of libpoppler.

# Build dependencies
yum install wget xz libjpeg-devel openjpeg2-devel

# Download and extract
wget https://poppler.freedesktop.org/poppler-0.47.0.tar.xz
tar -Jxvf poppler-0.47.0.tar.xz
cd poppler-0.47.0

# Build and install
./configure
make
sudo make install

By default libraries get installed in /usr/local/lib and /usr/local/include. On CentOS this is not a default search path so we need to set PKG_CONFIG_PATH and LD_LIBRARY_PATH to point R to the right directory:

export LD_LIBRARY_PATH="/usr/local/lib"
export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig"

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
jalancommented, Apr 21, 2020

CentOS moved some devel packages into the PowerTools repo, looks like. Just spun up CentOS 8 and this seems to work:

yum install dnf-plugins-core
yum config-manager --set-enabled PowerTools
yum install gcc-c++ pkgconfig poppler-cpp-devel python3-devel
pip3 install pdftotext

You can use the latest version of poppler if you want, but you won’t find the latest version of just about anything in normal CentOS packages 🤷‍♂️

1reaction
dynamiccontentcommented, Apr 21, 2020

@jalan Thank you very much for quick answer! I am up and running thanks to you. Would probably wasted many hours and still not arrive to the same result as you provided. You have been helpful! I am using your project with another project (SeedDMS).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Installation Guide :: CentOS Docs Site
This manual explains how to boot the CentOS 7 installation program (Anaconda) and how to install CentOS 7 on AMD64 and Intel 64...
Read more >
Performing manual installation | CentOS Quick Start Guide
First, we need to boot the computer system/virtual machine using the DVD. On booting from the DVD, you will get a cool CentOS...
Read more >
CentOS Installation Instructions - HCL Product Documentation
To install the client perform the following steps. Download the corresponding BigFix client RPM file to the CentOS computer. Install the RPM by...
Read more >
Installation of CentOS 7 for a server - WebMO
Boot the computer from the DVD. · At the welcome screen, choose Install CentOS 7. · Choose the appropriate language and keyboard layout....
Read more >
How to install man pages on CentOS Linux 6/7/8/9 - nixCraft
How to install man pages on my CentOS 6/7/8/9 (CentOS Stream) VM or LXD? After an install of CentOS 7 or 8/9 LXD...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found