Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Linux下安装gf 提示命令不存在command not found

Code Block
languagego
./gf install
安装后
执行gf -v
提示gf: command not found
且/usr/bin目录下并没有gf文件


解决方法:
拷贝sh文件到 /usr/bin目录
cp gf /usr/bin


然后执行
gf -v

就会看到
GoFrame CLI Tool v1.15.4, https://goframe.org
Install Path: /bin/gf
Build Detail:
Go Version: go1.16.2
GF Version: v1.15.3
Git Commit: 22011e76dc3e14006936164cc89e2d4c9190a36d
Build Time: 2021-03-30 15:43:22


Win10 提示gf命令不存在

解决办法:

安装gf.exe

https://github.com/gogf/gf-cli/blob/master/README_ZH.MD


Panel
titleContent Menu

Table of Contents