我想在我的MAC上構建grafana。我安裝了去二進制和更新PATH variable.Below是bash的可執行文件不從PATH變量搜索
bash-3.2$ echo $PATH /Users/kartl/Projects/mongodb/bin/:/usr/local/go/bin/go:/usr/local/sbin:/Users/kartl/.npm-packages/bin:/Users/kartl/Projects/mongodb/bin/:/usr/local/sbin:/Users/kartl/.npm-packages/bin:/Users/kartl/Projects/mongodb/bin/:/usr/local/sbin:/Users/kartl/.npm-packages/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/git/bin:/usr/local/bin/jamf
的輸出但是,當我試圖安裝運行一些go命令,我得到下面的錯誤。
/Users/kartl/Projects/grafana/bin/godep restore
godep: restore: exec: "go": executable file not found in $PATH
godep: restore: exec: "go": executable file not found in $PATH
godep: restore: exec: "go": executable file not found in $PATH
有人能幫助我,爲什麼會發生這種情況?
感謝TwilightSun和丹尼爾。你是對的。它應該是目錄名稱而不是可執行文件。這解決了我的問題。 – karthik339