英文:
$ fyne package -os linux ... RESULT is: bash: fyne: command not found
问题
在使用fyne工具包编码和构建我的第一个应用程序之后,下一个任务是分发。按照https://developer.fyne.io/started/packaging上的说明进行操作。
命令“fyne package -os linux -icon myapp.png”只会显示“bash: fyne: command not found”。
看起来我的$PATH或$GOPATH变量中缺少一个目录,或者它需要在其他某个地方,以便找到'fyne'命令工具。
尽管我使用fyne工具包的经验在其他方面非常有成效和愉快(能够解决其他所有困难),但这个问题让我束手无策。
拜托,拜托,有人能帮帮我吗!
也许我只是看不见我看不见的东西。
我的应用程序很漂亮(当然,每个人都认为自己的作品很漂亮),但如果无法分发,那一切都没有意义。如果没有人能够使用它,那又有什么意义呢?唉,离成功如此之近,却又如此遥远。
英文:
After having coded and built my first app using the fyne toolkit, the next task is distribution. Following the instructions at https://developer.fyne.io/started/packaging
The command "fyne package -os linux -icon myapp.png" only produces "bash: fyne: command not found"
It would seem that there is a missing directory in my $PATH or $GOPATH variables or some other place that it needs to be, so that the 'fyne' cmd-tool can be found.
While my experience with the fyne toolkit has been very productive and enjoyable otherwise (been able to puzzle out every other difficulty) this issue has bested me.
Please, please, somebody help me!
Maybe I'm just blind to what I cannot see.
My app is beautiful (of course it is, everyone thinks their work is beautiful), but it's all for nothing if it can't be distributed. What will it matter if nobody ever gets to use it? Ugh, to be so close, yet sooooo far.
答案1
得分: 2
我的版本是gov1.18,上面的答案不能解决我的问题。我使用go install
而不是go get
。
英文:
My version is gov1.18 and the above answer does not solve my problem. I use go insall
instead of go get
答案2
得分: 0
你需要将 $GOPATH/bin 添加到 $PATH 环境变量中。有时候 Go 安装程序没有自动完成这一步骤,或者你可能需要关闭终端或注销并重新尝试。
英文:
You need $GOPATH/bin in your $PATH. Sometimes the Go installer does not do this, and sometimes you just need to close the terminal or log out and try it again.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论