Proper library version is not found when using PGP Command Line
search cancel

Proper library version is not found when using PGP Command Line

book

Article ID: 156185

calendar_today

Updated On:

Products

PGP Command Line

Issue/Introduction

When attempting to execute a PGP command on certain platforms, you may receive an error concerning the libgcc, libxml or some other library.

ld.so.1: pgp: fatal: libgcc_s.so.1: version `GCC_4.2.0' not found (required by file /opt/pgp/lib/libstdc++.so.6)

or

ld.so.1: pgp: fatal: libxml2.so.2: version 'LIBXML2_2.6.0' not found (required by file /opt/pgp/bin/pgp)
ld.so.1: pgp: fatal: libxml2.so.2: open failed: No such file or directory

Environment

Oracle Solaris 10, Oracle Solaris 11

Possibly other *nux platforms

Cause

This error appears because the system by default using different version of the library rather than the version shipped with PGP Command Line. 

Resolution

Ensure that respective library shipped with PGP is used by default when running pgp. For this alter the LD_LIBRARY_PATH variable for the user that will be executing PGP commands.  You can alter the path in the user's environment by adding the following to the shell login scripts:

export LD_LIBRARY_PATH=/opt/pgp/lib:$LD_LIBRARY_PATH

 

 

Alternately, you can create a wrapper script that sets the path when you run PGP as described in the following article:

154227 - Wrapper script for PGP Command Line on Unix and Linux systems

 

 

Additional Information

180189 - HOW TO: Install PGP Command Line on Red Hat Enterprise or Fedora Core