我在 Ubuntu 中安装 Lora 模拟器时遇到问题。
https://github.com/UniCT-ARSLab/LWN-Simulator#installation
我已遵循存储库中的所有步骤,但是在倒数第二步中我收到此错误
daniel@daniel-VirtualBox:~/LoRaDevSim/LWN-Simulator$ make build -e Building the LWN Simulator -e Building the User Interface /bin/sh: 1: statik: not found make: *** [Makefile:8: build] Error 127
我安装了“go”并更新了系统
我尝试卸载“g0”并重新安装。
sudo mv go /usr/local export GOROOT=/usr/local/go export GOPATH=$HOME/Projects/Proj1 export PATH=$GOPATH/bin:$GOROOT/bin:$PATH
git clone https://github.com/UniCT-ARSLab/LWN-S... cd LWN-Simulator make install-dep make build make run-release
Makefile 使用
statik
安装 go install
命令:
install-dep:
@go install github.com/rakyll/statik
@go get -u -d ./...
这会将
statik
二进制文件安装到 go env GOPATH
指向的目录中。通常,这将是 $HOME/go
,这意味着您需要在 $HOME/go/bin
中包含 $PATH
:
PATH=$HOME/go/bin:$PATH