Stavros_S
Stavros_S

Reputation: 2235

MacOS Mojave: Command not found even though I can see the path when I echo $PATH

I've installed a tool on my Mac (10.14 Mojave) called ovftool (it also comes installed with VMware Fusion). It lives in my applications folder under VMware OVF Tool

I've edited my /etc/paths file and for good measure did the PATH=/Applications/VMware\ OVF\ Tool:$PATH along with adding it to my bash profile. Yet when I run the command ovftool I get the command not found message. Am I missing something here, is there some other way to set a PATH that I'm not aware of? This same exact path for this same tool has worked before on my machine.

EDIT: Here is the print out from my path_helper PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware\ OVF\ Tool/ovftool.app:/Applications/VMware\ Fusion.app/Contents/Library/VMware\ OVF\ Tool/:/Applictions/VMware\ Fusion.app/Contents/Library/VMware\ OVF\ Tool:/Applications/VMware Fusion.app/Contents/Public:/usr/local/go/bin:/Applications/VMware\ OVF\ Tool"; export PATH;

Upvotes: 0

Views: 2087

Answers (3)

Santanu
Santanu

Reputation: 25

Use this :

export PATH=/Applications/VMware\ Fusion.app/Contents/Library/VMware\ OVF\ Tool/:$PATH

Upvotes: 0

mattj.ware
mattj.ware

Reputation: 13

You can CD into the folder and run it using ./ovftool for a workaround, at least.

Upvotes: 1

Richard Barber
Richard Barber

Reputation: 6431

The path adjustment should be something like

export PATH=/Applications/VMware\ OVF\ Tool.app/Contents/MacOS:$PATH

Also double check the name of the executable you are launching.

ls /Applications/VMware\ OVF\ Tool.app/Contents/MacOS

Upvotes: 0

Related Questions