dsxml2169 2014-10-28 05:03 采纳率: 0%
浏览 202
已采纳

goinstall无法识别为内部或外部命令

I Am trying to install "goinstall github.com/alloy-d/goauth " but it is not working. giving the following error.

goinstall github.com/alloy-d/goauth

'goinstall' is not recognized as an internal or external command,
operable program or batch file.

And I tried with the git clone also but it is not creating exact structure.

git clone git://github.com/alloy-d/goauth

am installing it in the "$GOPATH"

  • 写回答

1条回答 默认 最新

  • drtoaamk20278 2014-10-28 06:31
    关注

    To be clear, goinstall used to exist (now "go get").

    As explained in "Configuration versus convention":

    Over the last few years we consistently reminded people about the goinstall command (now replaced by go get) and its conventions:

    • first, that the import path is derived in a known way from the URL of the source code;
    • second, that the place to store the sources in the local file system is derived in a known way from the import path;
    • third, that each directory in a source tree corresponds to a single package;
    • and fourth, that the package is built using only information in the source code. Today, the vast majority of packages follow these conventions.

    So you will find old tutorial using "goinstall".

    In your case though, go get and then go install would work better.
    Or go install -v github.com/alloy-d/goauth to see the details (the names of packages as they are compiled).

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测
  • ¥15 ETLCloud 处理json多层级问题
  • ¥15 matlab中使用gurobi时报错
  • ¥15 这个主板怎么能扩出一两个sata口
  • ¥15 不是,这到底错哪儿了😭
  • ¥15 2020长安杯与连接网探
  • ¥15 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么