在 Ubuntu 上从 Eclipse 运行 Google App Engine - /opt 中的权限被拒绝

发布于 2024-11-02 22:34:21 字数 2463 浏览 1 评论 0原文

我在 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

谢谢

I have Google App Engine installed under my /opt directory on Ubuntu.
After creating a sample Pydev Google App Engine project, I right click the src folder and try to run it.

I get the following error:

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

Any ideas on how I can give eclipse permission to run this?

EDIT 1 (Permissions)

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

EDIT 2 (New permissions)

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

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

沒落の蓅哖 2024-11-09 22:34:21

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

Looks like you did a chmod +x on the main google_appengine directory but not recursively. Try chmod -R +rx on the directory.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文