在Ubuntu上通过Eclipse运行Google App Engine - /opt权限被拒绝
我在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
谢谢
相关问题:
1 个回答
1
看起来你对主目录 google_appengine 使用了 chmod +x 命令,但没有递归地应用到所有子目录和文件上。你可以试试用 chmod -R +rx 命令,这样就能把权限设置应用到这个目录及其所有子目录和文件了。