You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@doris.apache.org by hammer <zp...@qq.com.INVALID> on 2023/07/18 00:59:17 UTC

Doris Mac compile success debug failed.Ask for help.

> 
>> 
>> Hi! 
>> The ref doc is https://doris.apache.org/zh-CN/community/developer-guide/mac-dev/dev-prepare.
>> I’m in trouble.I have finished compile Doris on MacOS with Apple Silicon.But can’t debug with Clion.
>> 
>> The debug error:
> 
> /Users/hammer/soft/doris/be/cmake-build-default/src/service/doris_be
> config::load() failed to open the file:/Users/hammer/soft/doris-run/conf/be.conf
> error read config file. 
> 
> Process finished with exit code 255
> 
> 
>> My clion config:
>> 
>> (1): be configuration env variables 
>> 
>> 
> JAVA_OPTS=-Xmx1024m -DlogPath\=$DORIS_HOME/log/jni.log -Xloggc:$DORIS_HOME/log/be.gc.log.$CUR_DATE -Dsun.java.command\=DorisBE -XX:-CriticalJNINatives -DJDBC_MIN_POOL\=1 -DJDBC_MAX_POOL\=100 -DJDBC_MAX_IDEL_TIME\=300000 -DJDBC_MAX_WAIT_TIME\=5000;
> LOG_DIR=~/soft/doris-run/be/log;
> NLS_LANG=AMERICAN_AMERICA.AL32UTF8\;;
> ODBCSYSINI=~/soft/doris-run/be/conf;
> PID_DIR=/Users/hammer/soft/doris-run/be/bin;
> 
> UDF_RUNTIME_DIR=~/soft/doris-run/be/lib/udf-runtime
> 
>> The env variables about Doris:
> 
> Vi ~/.zshrc
> export JAVA_HOME=/Library/Java/JavaVirtualMachines/zulu-8.jdk/Contents/Home
> export DORIS_HOME=~/soft/doris-run/be
> 
>> 
>> The conf has permissions for everyone.
> 
> hammer@hammerdeMacBook-Air conf % ls -l
> total 32
> -rwxrwxrwx@ 1 hammer  staff  1320  7 17 22:07 asan_suppr.conf
> -rwxrwxrwx@ 1 hammer  staff  3269  7 17 22:09 be.conf
> -rwxrwxrwx@ 1 hammer  staff   820  7 17 22:07 lsan_suppr.conf
> -rwxrwxrwx@ 1 hammer  staff  1529  7 17 22:07 odbcinst.ini
> 
> I don’t know why happens, and how to solve it.
>