<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">Hi all. &nbsp;</div><div class="">I’m trying to get online recovery to work properly and running into issues when installing online_recovery feature for postgres database.</div><div class=""><br class=""></div><div class="">I’m following this&nbsp;<a href="http://www.pgpool.net/docs/latest/pgpool-en.html" class="">http://www.pgpool.net/docs/latest/pgpool-en.html</a>.</div><div class=""><br class=""></div><div class="">The installation went fin with Make and Make install.</div><div class=""><br class=""></div><div class="">But I get the following errors when trying to create the function on one of the postgres servers.</div><div class=""><br class=""></div><div class="">--------------------</div><div class=""><div class="">psql -f pgpool-recovery.sql -U postgres template1</div><div class="">psql:pgpool-recovery.sql:4: ERROR: &nbsp;could not access file "$libdir/pgpool-recovery": No such file or directory</div><div class="">psql:pgpool-recovery.sql:9: ERROR: &nbsp;could not access file "$libdir/pgpool-recovery": No such file or directory</div><div class="">psql:pgpool-recovery.sql:14: ERROR: &nbsp;could not access file "$libdir/pgpool-recovery": No such file or directory</div><div class="">psql:pgpool-recovery.sql:19: ERROR: &nbsp;could not access file "$libdir/pgpool-recovery": No such file or directory</div></div><div class="">-------------------</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">My question is:&nbsp;</div><div class=""><br class=""></div><div class="">How do I solve the issue above? &nbsp;How exactly do you set the $libdir variable? &nbsp;I’m fairly new to postgres but it seems like $libdir is not a proper variable? &nbsp;</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">There were 2 particular instances on the mailing list that somewhat mentions how they solved this:</div><div class=""><br class=""></div><div class="">&gt;1.&nbsp;<a href="http://www.sraoss.jp/pipermail/pgpool-general/2012-June/000631.html" class="">http://www.sraoss.jp/pipermail/pgpool-general/2012-June/000631.html</a>&nbsp;-&nbsp;<span style="widows: 1;" class="">&nbsp; &nbsp; "</span><span style="widows: 1;" class="">We were able to solve our problem by placing the pgpool-regclass.so where </span><span style="widows: 1;" class="">the postgresql backend was expecting it.</span><span style="widows: 1;" class="">”</span></div><div class=""><span style="widows: 1;" class=""><br class=""></span></div><div class=""><span style="widows: 1;" class="">I have no idea where posthgres is expecting it to be. &nbsp;I copied the .so files to the postgres directories, restarted. &nbsp;It&nbsp;didn’t seem to work.</span></div><div class=""><span style="widows: 1;" class=""><br class=""></span>&gt; 2.&nbsp;<a href="http://www.sraoss.jp/pipermail/pgpool-general/2012-December/001255.html" class="">http://www.sraoss.jp/pipermail/pgpool-general/2012-December/001255.html</a></div><div class=""><br class=""></div><div class="">This one says to install it into postgres and restart. &nbsp;(possible future routes but I’m hoping I don’t have to do this).</div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">Thanks for your time and patience.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div></body></html>