IBM Support

STARTAPACHE GIVES ERROR: LIBPCRE.SO.0: CANNOT OPEN

Troubleshooting


Problem

When attempting to start the Apache server on Linux that is bundled with the Open Admin Tool (OAT) and is part of IBM Informix Client SDK, one may encounter the following error: $ ./StartApache /opt/informix/OAT/Apache_2.4.2/bin/httpd: error while loading shared libraries: libpcre.so.0: cannot open shared object file: No such file or directory

Symptom

The Apache webserver will not start.

Cause

This has been identified as a product defect under APAR IT13310.

Environment

Linux

Diagnosing The Problem

See abstract above.

Resolving The Problem

There are certain pre-requisite libraries in order to run OAT on Linux. Here is a list of those pre-requisites:

http://www-01.ibm.com/support/knowledgecenter/SSGU8G_12.1.0/com.ibm.cpi.doc/ids_cpi_028.htm?lang=en

================================================================
Upon installation of OAT with CSDK on Linux, certain pre-requisite library
links (and installation) may be necessary. Here are some tips on
certain flavors of Linux:

Red Hat Enterprise Linux Server release 7.0 (Maipo)
userid root ln -s /usr/lib64/libpcre.so.1 /usr/lib64/libpcre.so.0
userid root ln -s /usr/lib64/libexpat.so.1 /usr/lib64/libexpat.so.0

CentOS version 7
userid root ln -s /usr/lib64/libpcre.so.1 /usr/lib64/libpcre.so.0
userid root ln -s /usr/lib64/libexpat.so.1 /usr/lib64/libexpat.so.0
userid root ln -s /lib64/libssl.so.10 /lib64/libssl.so.6
userid root ln -s /lib64/libcrypto.so.10 /lib64/libcrypto.so.6
sudo yum install libpng12

Ubuntu 12.04.5 LTS (precise)
userid root ln -s /lib/x86_64-linux-gnu/libpcre.so.3
/lib/x86_64-linux-gnu/libpcre.so.0
userid root ln -s /lib/x86_64-linux-gnu/libexpat.so.1.6.0
/lib/x86_64-linux-gnu/libexpat.so.0
userid root ln -s /lib/x86_64-linux-gnu/libssl.so.1.0.0
/lib/x86_64-linux-gnu/libssl.so.6
userid root ln -s /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
/lib/x86_64-linux-gnu/libcrypto.so.6
userid root apt-get -y install libxml2
================================================================

[{"Product":{"code":"SSVT2J","label":"Informix Tools"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Informix Client Software Development Kit (CSDK)","Platform":[{"code":"PF016","label":"Linux"}],"Version":"4.1","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
23 July 2019

UID

swg21975941