Ad Widget

Collapse

Compiling Agent for 4.2.1 on i686 CentOS 7.6 Fails With libpcre Support

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mbelanger
    Junior Member
    • Jun 2019
    • 5

    #1

    Compiling Agent for 4.2.1 on i686 CentOS 7.6 Fails With libpcre Support

    Greetings,

    Desperately trying to add a couple of legacy i686 boxes to monitoring and unable to find a pre-compiled solution, I tried to build my own. Unfortunately, the process is failing during configure.
    Code:
    root@cense:/usr/local/src/zabbix-4.2.1 # ./configure --enable-agent --with-libpcre-lib=/usr/lib
    checking...
    <truncated for brevity>
    checking for libpcre support... configure: error: Unable to use libpcre (libpcre check failed)
    root@cense:/usr/local/src/zabbix-4.2.1 #
    I have the libs installed:
    Code:
    root@cense:/usr/local/src/zabbix-4.2.1 # rpm -ql pcre
    /usr/lib/libpcre.so.1
    /usr/lib/libpcre.so.1.2.0
    /usr/lib/libpcre16.so.0
    /usr/lib/libpcre16.so.0.2.0
    /usr/lib/libpcre32.so.0
    /usr/lib/libpcre32.so.0.0.0
    /usr/lib/libpcrecpp.so.0
    /usr/lib/libpcrecpp.so.0.0.0
    /usr/lib/libpcreposix.so.0
    /usr/lib/libpcreposix.so.0.0.1
    /usr/share/doc/pcre-8.32
    /usr/share/doc/pcre-8.32/AUTHORS
    /usr/share/doc/pcre-8.32/COPYING
    /usr/share/doc/pcre-8.32/ChangeLog
    /usr/share/doc/pcre-8.32/LICENCE
    /usr/share/doc/pcre-8.32/NEWS
    /usr/share/doc/pcre-8.32/README
    Do I have the wrong version of libpcre?

    Here's the CentOS version I'm trying to build on:
    Code:
    root@cense:/usr/local/src/zabbix-4.2.1 # cat /etc/redhat-release
    CentOS Linux release 7.6.1810 (AltArch)

    Any suggestions appreciated,
    MB
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    Configure and make succeeded only with the following procedure.

    by root:
    Code:
    # yum groupinstall 'Development tools'
    # yum install pcre-devel
    by user:
    Code:
    $ tar zxvf zabbix-4.2.1.tar.gz
    $ cd zabbix-4.2.1/
    $ ./configure --enable-agent
    $ make
    env.:
    Code:
    # cat /etc/redhat-release
    CentOS Linux release 7.6.1810 (AltArch)
    # uname -a
    Linux zi686.localdomain 3.10.0-957.12.2.el7.centos.plus.i686 #1 SMP Thu May 16 01:30:56 UTC 2019 i686 i686 i386 GNU/Linux
    #
    Last edited by Atsushi; 08-06-2019, 03:20.

    Comment

    • mbelanger
      Junior Member
      • Jun 2019
      • 5

      #3
      Thank you, Atsushi, that did the trick!


      -MB

      Comment

      Working...