Browse files

Explicit LD_LIBRARY_PATH for relocatability.

Some packagers/installers, like rpm post-install scripts, implement
install-time relocatability by searching+replacing "/opt/couchbase"
with "/some/user/chosen/path".  An explicit LD_LIBRARY_PATH allows it
to be automatically fixed at install-time.

Change-Id: I25cd0312eca26724c029e5f386abcc46e3450188
Reviewed-on: http://review.couchbase.org/13151
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Steve Yen <steve.yen@gmail.com>
  • Loading branch information...
1 parent b984c53 commit 5a16fc5d63e42cb6650f2d28b31fab38405ca2ea @steveyen steveyen committed Feb 9, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 couchbase-server.sh.in
View
3 couchbase-server.sh.in
@@ -6,6 +6,9 @@
PATH="@PREFIX@/bin":$PATH
export PATH
+LD_LIBRARY_PATH="@PREFIX@/lib":"@PREFIX@/lib/memcached":$LD_LIBRARY_PATH
+export LD_LIBRARY_PATH
+
if [ `ulimit -n` -lt 10240 ]
then
cat <<EOF

0 comments on commit 5a16fc5

Please sign in to comment.