duandaotui5633 2017-11-03 09:08
浏览 52
已采纳

在Arch和zsh中使用Appengine无法找到goapp

I am new to appengine and have installed google-cloud-sdk from the AUR(arch user repository) and and the google-appengine-go extention at /opt/google-cloud-sdk

thanks to this I am able to run a dev server using

dev_appserver.py app.yaml

But when using goapp serve I found

goapp: command not found

After adding /opt/google-cloud-sdk/platform/google_appengine:$PATH to my $PATH variable in zshrc and running goapp serve i now get the error.

zsh: permission denied: goapp

if sudo goapp serve

sudo: goapp: command not found

Due to this I am unable to use the updated sdk to run tests using goapp test Thank you in advance for your help.

  • 写回答

1条回答 默认 最新

  • duanli6834 2017-11-04 11:05
    关注

    I had the same problem and I think I figured out how it usually works.

    1. You download the google cloud sdk (https://cloud.google.com/sdk/downloads)
    2. After downloading and unzipping to the folder where you want to use it you have to executet the ./google-cloud-sdk/install.sh. Appengine is not part of the download. It can be chosen with that install.sh script. it will download items like appengine. Afterwards you have a folder called platform/google_appengine as you mentioned yourself.
    3. You might have to change execution permissions like chmod 755 platform/google_appengine/go*
    4. Add folder platform/google_appengine to the PATH if not done already. The command "which" will not show non-executable binaries. If you did not change permissions it will not show the path, even being within the PATH variable.
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 metadata提取的PDF元数据,如何转换为一个Excel
  • ¥15 关于arduino编程toCharArray()函数的使用
  • ¥100 vc++混合CEF采用CLR方式编译报错
  • ¥15 coze 的插件输入飞书多维表格 app_token 后一直显示错误,如何解决?
  • ¥15 vite+vue3+plyr播放本地public文件夹下视频无法加载
  • ¥15 c#逐行读取txt文本,但是每一行里面数据之间空格数量不同
  • ¥50 如何openEuler 22.03上安装配置drbd
  • ¥20 ING91680C BLE5.3 芯片怎么实现串口收发数据
  • ¥15 无线连接树莓派,无法执行update,如何解决?(相关搜索:软件下载)
  • ¥15 Windows11, backspace, enter, space键失灵