<?xml version="1.0" encoding="windows-1252"?>
<node id="966117" title="possible to bake LD_LIBRARY_PATH in perl(1)?" created="2012-04-20 03:23:29" updated="2012-04-20 03:23:29">
<type id="115">
perlquestion</type>
<author id="961">
Anonymous Monk</author>
<data>
<field name="doctext">
&lt;p&gt;Problem is that sometimes modules do not find a required library unless $LD_LIBRARY_PATH is set before run of perl(1). I could pollute environment, use a warpper shell script to get around it, or properly use ldconfig to cache the paths.

&lt;p&gt;Instead of and/or in addition to all of those things, is it not possible to set the value of LD_LIBRARY_PATH in perl while compiling it? I will accept that addition of libraries in some other path may require a recompilation.

&lt;p&gt;Usage would be on FreeBSD, and possibly on GNU/Linux (CentOS 6).</field>
<field name="reputation">
7</field>
</data>
</node>
