【问题标题】:Running Google App Engine from Eclipse on Ubuntu - Permission Denied in /opt在 Ubuntu 上从 Eclipse 运行 Google App Engine - /opt 中的权限被拒绝
【发布时间】:2011-04-22 20:24:19
【问题描述】:

我在 Ubuntu 上的 /opt 目录下安装了 Google App Engine。 创建示例 Pydev Google App Engine 项目后,我右键单击 src 文件夹并尝试运行它。

我收到以下错误:

/opt/python2.5/bin/python2.5: can't open file '/opt/google_appengine/dev_appserver.py': [Errno 13] Permission denied

关于如何授予 eclipse 运行此权限的任何想法?

编辑 1(权限)

drwxrwxr-x  8 root root     4096 2011-03-24 23:38 google_appengine


-r-xr-x---  1 root root  2387 2011-03-24 23:38 appcfg.py
-r-xr-x---  1 root root   156 2011-03-24 23:38 BUGS
-r-xr-x---  1 root root  2387 2011-03-24 23:38 bulkload_client.py
-r-xr-x---  1 root root  2387 2011-03-24 23:38 bulkloader.py
drwxrwxr-x  3 root root  4096 2011-03-24 23:38 demos
-r-xr-x---  1 root root  2387 2011-03-24 23:38 dev_appserver.py
drwxrwxr-x  6 root root  4096 2011-04-22 22:13 google
drwxrwxr-x 12 root root  4096 2011-04-07 23:23 lib
-r-xr-x---  1 root root  5922 2011-03-24 23:38 LICENSE
drwxrwxr-x  2 root root  4096 2011-03-24 23:38 new_project_template
-r-xr-x---  1 root root  6086 2011-03-24 23:38 README
-r-xr-x---  1 root root 44626 2011-03-24 23:38 RELEASE_NOTES
-r-xr-x---  1 root root  2387 2011-03-24 23:38 remote_api_shell.py
drwxrwxr-x  2 root root  4096 2011-03-24 23:38 templates
drwxrwxr-x  2 root root  4096 2011-03-24 23:38 tools
-r-xr-x---  1 root root    59 2011-03-24 23:38 VERSION

编辑 2(新权限)

drwxrwxr-x  8 root root  4096 2011-03-24 23:38 .
drwxr-xr-x  7 root root  4096 2011-04-22 20:15 ..
-r-xr-x--x  1 root root  2387 2011-03-24 23:38 appcfg.py
-r-xr-x--x  1 root root   156 2011-03-24 23:38 BUGS
-r-xr-x--x  1 root root  2387 2011-03-24 23:38 bulkload_client.py
-r-xr-x--x  1 root root  2387 2011-03-24 23:38 bulkloader.py
drwxrwxr-x  3 root root  4096 2011-03-24 23:38 demos
-r-xr-x--x  1 root root  2387 2011-03-24 23:38 dev_appserver.py
drwxrwxr-x  6 root root  4096 2011-04-22 22:13 google
drwxrwxr-x 12 root root  4096 2011-04-07 23:23 lib
-r-xr-x--x  1 root root  5922 2011-03-24 23:38 LICENSE
drwxrwxr-x  2 root root  4096 2011-03-24 23:38 new_project_template
-r-xr-x--x  1 root root  6086 2011-03-24 23:38 README
-r-xr-x--x  1 root root 44626 2011-03-24 23:38 RELEASE_NOTES
-r-xr-x--x  1 root root  2387 2011-03-24 23:38 remote_api_shell.py
drwxrwxr-x  2 root root  4096 2011-03-24 23:38 templates
drwxrwxr-x  2 root root  4096 2011-03-24 23:38 tools
-r-xr-x--x  1 root root    59 2011-03-24 23:38 VERSION

谢谢

【问题讨论】:

  • (我之前的cmet已经进化成答案,已被删除)

标签: python google-app-engine ubuntu pydev


【解决方案1】:

看起来您在 google_appengine 主目录上执行了chmod +x,但不是递归的。在目录上尝试chmod -R +rx

【讨论】:

  • 贾斯汀这样做后仍然没有运气。查看原始问题中的新权限。
  • @Mcloving:用户需要对文件具有读取权限才能执行它。 (投票结束也是题外话;这与编程无关。)
  • @Wooble:这与在 Linux 上为 GAE 开发的唯一可行方法是设置一个大部分独立的包有关。 Google 的说明似乎没有包含此步骤。
  • @Justin:只需解压缩 SDK 归档文件即可为几乎所有人设置适当的权限。如果有人破坏了他们的 Linux 安装,但它没有,这确实是 Ask Ubuntu stackexchange 网站的问题。
猜你喜欢
  • 2018-11-24
  • 1970-01-01
  • 1970-01-01
  • 2018-01-15
  • 1970-01-01
  • 2018-07-15
  • 2016-04-10
  • 2013-11-21
  • 2018-08-30
相关资源
最近更新 更多