You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pegasus.apache.org by la...@apache.org on 2023/05/30 08:33:43 UTC

[incubator-pegasus] branch master updated: fix: fix start_onebox failed because of libjvm.so not found (#1494)

This is an automated email from the ASF dual-hosted git repository.

laiyingchun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pegasus.git


The following commit(s) were added to refs/heads/master by this push:
     new 766e64baa fix: fix start_onebox failed because of libjvm.so not found (#1494)
766e64baa is described below

commit 766e64baabf08ef9f9d2110f7ff12e794942d257
Author: Yingchun Lai <la...@apache.org>
AuthorDate: Tue May 30 16:33:37 2023 +0800

    fix: fix start_onebox failed because of libjvm.so not found (#1494)
    
    https://github.com/apache/incubator-pegasus/issues/1493
    
    Fix rhe bug of "pegasus_server: error while loading shared libraries: libdsn_replica_server.so: cannot open shared object file: No such file or directory".
    It's because that the libjvm.so is not added to $LD_LIBRARY_PATH.
---
 run.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/run.sh b/run.sh
index cabf53402..58de1d52a 100755
--- a/run.sh
+++ b/run.sh
@@ -25,7 +25,7 @@ export BUILD_ROOT_DIR=${ROOT}/build
 export BUILD_LATEST_DIR=${BUILD_ROOT_DIR}/latest
 export REPORT_DIR="$ROOT/test_report"
 export THIRDPARTY_ROOT=$ROOT/thirdparty
-export LD_LIBRARY_PATH=${BUILD_LATEST_DIR}/output/lib:${THIRDPARTY_ROOT}/output/lib:${LD_LIBRARY_PATH}
+export LD_LIBRARY_PATH=$JAVA_HOME/jre/lib/amd64/server:${BUILD_LATEST_DIR}/output/lib:${THIRDPARTY_ROOT}/output/lib:${LD_LIBRARY_PATH}
 
 function usage()
 {


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pegasus.apache.org
For additional commands, e-mail: commits-help@pegasus.apache.org