From d55450e0c99ecbe5a4a1af6bc778c0d35c43ef9e Mon Sep 17 00:00:00 2001 From: midoks Date: Mon, 30 Oct 2023 23:47:23 +0800 Subject: [PATCH] Update icu.sh --- plugins/php/lib/icu.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/plugins/php/lib/icu.sh b/plugins/php/lib/icu.sh index 568bf155d..b301ef298 100644 --- a/plugins/php/lib/icu.sh +++ b/plugins/php/lib/icu.sh @@ -30,6 +30,15 @@ if [ ! -d ${SERVER_ROOT}/icu ];then cd ${SOURCE_ROOT}/icu/source ./runConfigureICU Linux --prefix=${SERVER_ROOT}/icu && make CXXFLAGS="-g -O2 -std=c++11" && make install - fi + + # export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/www/server/lib/icu/lib + if [ -d /etc/ld.so.conf.d ];then + echo "/www/server/lib/icu/lib" > /etc/ld.so.conf.d/mw-icu.conf + elif [[ -f /etc/ld.so.conf ]]; then + echo "/www/server/lib/icu/lib" >> /etc/ld.so.conf + if + + ldconfig + fi fi \ No newline at end of file