Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/shell/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Shell 不理解错误的根源_Shell - Fatal编程技术网

Shell 不理解错误的根源

Shell 不理解错误的根源,shell,Shell,在编译shell脚本时,会生成此错误, “没有这样的文件或目录.c” 我不明白为什么目录和名称之间没有空格。 我有一个名为“Utlity.c”的文件,所以我认为错误消息的尾部是从那里获取的。请帮忙 下面是shell脚本的内容 #!/bin/sh export LD_LIBRARY_PATH=/usr/local/lib >> ~/.bashrc gcc MyFol/main.c MyFol/Utility.c -L /usr/local/lib -lgsl -lgslcblas

在编译shell脚本时,会生成此错误, “没有这样的文件或目录.c

我不明白为什么目录和名称之间没有空格。 我有一个名为“Utlity.c”的文件,所以我认为错误消息的尾部是从那里获取的。请帮忙

下面是shell脚本的内容

 #!/bin/sh 
export LD_LIBRARY_PATH=/usr/local/lib >> ~/.bashrc 
gcc MyFol/main.c MyFol/Utility.c -L /usr/local/lib -lgsl -lgslcblas -lm -o SD 
gcc -c -O3 -I /usr/local/include/ ivectTmatC/tmatTrain.c ivectTmatC/Utility.c gfortran tmatTrain.o Utility.o /usr/local/lib/liblapacke.a /usr/local/lib/liblapack.a 
/usr/local/lib/librefblas.a /usr/local/lib/libgsl.a /usr/local/lib/libgslcblas.a
 -o ivectTmat 
g++ cosineKernel/cosineKernel.cpp -L /usr/local/lib -lgsl -lgslcblas -lm -o cosineKerne

你能给我们看看你的shell脚本的内容吗?@Shai#/bin/sh export LD_LIBRARY_PATH=/usr/local/lib>>~/.bashrc gcc MyFol/main.c MyFol/Utility.c-L/usr/local/lib-lgsl-lgslcblas-lm-o SD gcc-c-O3-I/usr/local/include/ivectTmatC/Utility.c gfortran tmatTrain.o Utility.o/usr/local/liblapacke.a/usr/local/librefblas.a/usr/local/lib/libgsl.a/usr/local/lib/libgslcblas.a-o ivectTmat g++cosineernel/cosineernel.cpp-L/usr/local/lib-lgsl-lgslcblas-lm-ocosineKerne@GauravRai你能把它添加到问题中吗?@MrLister-Shai已经编辑过了。这是整个错误消息吗?“为什么没有空间”是可能的,因为打印退格。我不认为它的全部错误。