我受到抨击:。:gMultiwfn:当我尝试使用运行二进制文件时,无法执行它。gMultiwfn。
这不是运行可执行文件的方式。比较
错误的
/bin$ . gcc --version
bash: .: /usr/bin/gcc: cannot execute binary file
正确的
/bin$ ./gcc --version
gcc (Ubuntu 13.2.0-23ubuntu4) 13.2.0
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE
也要注意
./prog
就是你的跑步方式
prog
当它是当前目录中文件的名称时(
./
)恰好是可执行的。如果您希望运行不在当前目录中但可以找到的程序
在您的
PATH
那就跑吧
$ prog
喜欢
~$ gcc --version
gcc (Ubuntu 13.2.0-23ubuntu4) 13.2.0
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.