我正在使用cygwin编译来自这个网站的Windows上的源代码
https://github.com/davidstutz/extended-berkeley-segmentation-benchmark/tree/master/source
To compile the benchmarking software from source code, run:
source build.sh
This script should compile the correspondPixels mex file and copy it into the
../benchmarks/ directory.但是我输入的以下命令不起作用。我在文件夹目录中。
$ source build.sh
-bash: build.sh: No such file or directory
$ ./source build.sh
-bash: ./source: Is a directory
$ ls
asa.mat others relabel.m tests
benchmarks plot_benchmarks.asv source use.mat
data plot_benchmarks.m test_benchmarks.asv
LICENSE.md README.md test_benchmarks.m这是我第一次使用Cygwin,所以命令对我来说是新的。
发布于 2017-07-14 12:05:18
source目录中包含build.sh文件。
$ cd source
$ source build.sh(不要将目录名source与shell的内置命令source混淆。)
您也可以使用. build.sh而不是source build.sh;.命令等同于source,可能更传统一些。
https://stackoverflow.com/questions/45094368
复制相似问题