Debugging Scilab给出了一个错误;未定义SCI环境变量。”;在分析模式下运行时

Debugging Scilab给出了一个错误;未定义SCI环境变量。”;在分析模式下运行时,debugging,error-handling,valgrind,scilab,Debugging,Error Handling,Valgrind,Scilab,我正试图在分析模式下运行Scilab,如图所示 $ export SCILAB_VALGRIND_OPT="--db-attach=no --log-file=myfile.txt" $ scilab-cli -profiling 但是我得到了错误 Running profiling of Scilab : valgrind --show-below-main=yes --num-callers=12 --demangle=yes --leak-check=full --show-rea

我正试图在分析模式下运行Scilab,如图所示

$ export SCILAB_VALGRIND_OPT="--db-attach=no --log-file=myfile.txt"
$ scilab-cli -profiling
但是我得到了错误

 Running profiling of Scilab  :  valgrind --show-below-main=yes --num-callers=12 --demangle=yes --leak-check=full --show-reachable=yes --smc-check=all --db-attach=yes --gen-suppressions=all --show-below-main=yes --track-origins=yes --suppressions=/usr/share/scilab//tools/profiling/valgrind.supp --db-attach=no --log-file=scilabsegerr.txt /usr/bin/scilab-cli-bin -profiling
valgrind: Unknown option: --db-attach=yes
valgrind: Use --help for more information or consult the user manual.
不知何故,db attach重复了两次

$ valgrind --show-below-main=yes --num-callers=12 --demangle=yes --leak-check=full --show-reachable=yes --smc-check=all --gen-suppressions=all --show-below-main=yes --track-origins=yes --suppressions=/usr/share/scilab//tools/profiling/valgrind.supp --log-file=scilabsegerr.txt /usr/bin/scilab-cli-bin -profiling

我收到错误“SCI环境变量未定义。”

您使用的SciLab和Valgrind版本是什么?似乎在8月21日从SciLab/bin/SciLab中删除了:另外请注意,在3.10版发布后,db attach将从Valgrind中删除请参见@spoorcc我使用的是SciLab 5.5.2和Valgrind 3.11.0。但即使在没有db attach的情况下运行,也会出现错误“SCI环境变量未定义”。scilab cli bin是二进制文件,scilab cli脚本定义了所需的变量。您也可以在bin文件夹中找到此脚本。作为快速解决方法,您可能也可以从那里删除--db attach。