Reasons for specifying the subroutine directory in both PATH and LD_LIBRARY_PATH
search cancel

Reasons for specifying the subroutine directory in both PATH and LD_LIBRARY_PATH

book

Article ID: 402103

calendar_today

Updated On:

Products

Easytrieve Report Generator

Issue/Introduction

Regarding settings when calling a subroutine created in the c language, I found the following knowledge:
It says that the subroutine directory should be specified in both PATH and LD_LIBRARY_PATH, but why is it necessary to specify it in both?

EZACT003 error occurred. (For calling a C subprogram dynamically from a Easytrieve program)

Environment

Environment : Linux

Release : R11.6

Resolution

Easytrieve Linux uses PATH and EZTPATH environment variable in the compilation and linking stage.

The  LD_LIBRARY_PATH is used by the loader to search for libraries when the program is executed.