我得到“命令未找到”当我尝试在Mac OS X上运行Android模拟器当我、模拟器、未找到、命令

2023-09-08 00:13:56 作者:莪呮茬苸茬苸莪旳

当我使用的Mac OS X终端以导航到该文件夹我的Andr​​oid模拟器,然后键入仿真器,我得到:

When I use the Mac OS X Terminal to navigate to the folder with my Android Emulator and type emulator, I get:

命令没有找到

下面是发生了什么:

$ emulator
-bash: emulator: command not found

我如何得到它的工作?

How do I get it to work?

推荐答案

的当前目录中通常不包含在 $ PATH 在* nix操作系统上像OS X;在当前目录下执行一个程序,用路径到当前目录precede它( ):

The current directory is not normally included in your $PATH on a *nix operating system like OS X; to execute a program in the current directory, precede it with the path to the current directory (.):

$ ./emulator