MCR libmwi18n.so文件丢失

时间:2012-06-10 22:25:40

标签: matlab shared-libraries matlab-compiler mcc

我刚刚安装了Matlab MCR,我尝试运行一段代码:

./run_test.sh /usr/local/MATLAB/MATLAB_Compiler_Runtime/

我得到了这个错误:

LD_LIBRARY_PATH is .:/usr/local/MATLAB/MATLAB_Compiler_Runtime//runtime/glnxa64:/usr/local/MATLAB/MATLAB_Compiler_Runtime//bin/glnxa64:/usr/local/MATLAB/MATLAB_Compiler_Runtime//sys/os/glnxa64:/usr/local/MATLAB/MATLAB_Compiler_Runtime//sys/java/jre/glnxa64/jre/lib/amd64/native_threads:/usr/local/MATLAB/MATLAB_Compiler_Runtime//sys/java/jre/glnxa64/jre/lib/amd64/server:/usr/local/MATLAB/MATLAB_Compiler_Runtime//sys/java/jre/glnxa64/jre/lib/amd64/client:/usr/local/MATLAB/MATLAB_Compiler_Runtime//sys/java/jre/glnxa64/jre/lib/amd64

./test: error while loading shared libraries: libmwi18n.so: cannot
 open shared object file: No such file or directory

有谁知道为什么libmwi18n.so丢失了?我怎样才能找到/修复此错误?

编辑:以下是run_test.sh的内容。它是使用MCC编制的,非常基础。

#!/bin/sh
# script for execution of deployed applications
#
# Sets up the MCR environment for the current $ARCH and executes
# the specified command.
#
exe_name=$0
exe_dir=`dirname "$0"`
echo "------------------------------------------"
if [ "x$1" = "x" ]; then
  echo Usage:
  echo    $0 \<deployedMCRroot\> args
else
  echo Setting up environment variables
  MCRROOT="$1"
  echo ---
  LD_LIBRARY_PATH=.:${MCRROOT}/runtime/glnxa64 ;
  LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MCRROOT}/bin/glnxa64 ;
  LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MCRROOT}/sys/os/glnxa64;
        MCRJRE=${MCRROOT}/sys/java/jre/glnxa64/jre/lib/amd64 ;
        LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MCRJRE}/native_threads ;
        LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MCRJRE}/server ;
        LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MCRJRE}/client ;

       LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MCRJRE} ;
  XAPPLRESDIR=${MCRROOT}/X11/app-defaults ;
  export LD_LIBRARY_PATH;
  export XAPPLRESDIR;
  echo LD_LIBRARY_PATH is ${LD_LIBRARY_PATH};
  shift 1
  args=
  while [ $# -gt 0 ]; do
      token=`echo "$1" | sed 's/ /\\\\ /g'`   # Add blackslash before each blank
      args="${args} ${token}"
      shift
  done
  "${exe_dir}"/test $args
fi
exit

1 个答案:

答案 0 :(得分:2)

路径不完整。命令必须是:

./run_test.sh /usr/local/MATLAB/MATLAB_Compiler_Runtime/v717/