linux输入qsub显示错误,linux – 使用qsub运行shellscript的’意外的文件结束’和’错误导入功能定义’错误...

在尝试通过qsub提交一个在本地正常运行的Shell脚本到集群时,遇到了与`module`相关的语法错误和共享库加载失败的问题。错误提示显示找不到libOpenMS.so和libQtWebKit.so.4等库文件。这可能是因为qsub环境与直接运行环境的库路径设置不同。解决方案可能涉及在qsub命令中正确设置LD_LIBRARY_PATH或者确保集群环境中包含必要的库文件。
摘要由CSDN通过智能技术生成

我有以下

shellscript:

#!/bin/sh

cd /sw/local/bin/

export LD_LIBRARY_PATH=/sw/local/lib:/usr/local/Trolltech/Qt-4.7.2/lib:$LD_LIBRARY_PATH

./FeatureFinderRaw -in /homes/JG-C1-18.mzML -out /homes/test_remove_after_use.featureXML -threads 20

当我从自己的命令行运行它时,它工作正常,但是当我尝试做:

qsub -q ningal.q -cwd -V -o /homes/queue.out -e /queue.err featureFind_C1-18_20t.sh

我收到以下错误:

/bin/sh: module: line 1: Syntax error: unexpected end of file

/bin/sh: error importing function definition for `module'

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

/bin/sh: module: line 1: Syntax error: unexpected end of file

/bin/sh: error importing function definition for `module'

./FeatureFinderRaw: error while loading shared libraries: libQtWebKit.so.4: cannot open shared object file: No such file or directory

/bin/sh: module: line 1: Syntax error: unexpected end of file

/bin/sh: error importing function definition for `module'

./FeatureFinderRaw: error while loading shared libraries: libQtWebKit.so.4: cannot open shared object file: No such file or directory

/bin/bash: module: line 1: Syntax error: unexpected end of file

/bin/bash: error importing function definition for `module'

./FeatureFinderRaw: error while loading shared libraries: libQtWebKit.so.4: cannot open shared object file: No such file or directory

/bin/sh: module: line 1: Syntax error: unexpected end of file

/bin/sh: error importing function definition for `module'

./FeatureFinderRaw: error while loading shared libraries: libQtWebKit.so.4: cannot open shared object file: No such file or directory

/bin/sh: module: line 1: Syntax error: unexpected end of file

/bin/sh: error importing function definition for `module'

我不明白为什么在使用qsub时会收到此错误,但是在直接在同一个集群机器上运行脚本时却并不明白.如何使用qsub运行脚本?

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值