在Ubuntu中构建Red5应用程序失败

时间:2011-07-07 06:08:51

标签: java build permissions red5

我想在ubuntu中使用eclipse和red5plugin构建我的red5应用程序。但是当我发布我的应用程序时,它会显示如下错误:

Buildfile: /home/riset/workspace/.metadata/.plugins/org.eclipse.jst.server.generic.core/sjsas.xml
-checkWebDeploy:
deploy.j2ee.web:
[chmod] chmod: changing permissions of `/usr/local/red5/red5.sh': Operation not permitted
[chmod] Result: 1
[jar] Building jar: /home/riset/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/reg_server.jar
[copy] Copying 1 file to /usr/local/red5/webapps/reg_server/WEB-INF/lib

BUILD FAILED
/home/riset/workspace/.metadata/.plugins/org.eclipse.jst.server.generic.core/sjsas.xml:49: Failed to copy /home/riset/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/reg_server.jar to /usr/local/red5/webapps/reg_server/WEB-INF/lib/reg_server.jar due to failed to create the parent directory for /usr/local/red5/webapps/reg_server/WEB-INF/lib/reg_server.jar

Total time: 964 milliseconds

我尝试使用chmod -R 755 red5更改文件夹权限,但这与它无关。

感谢

1 个答案:

答案 0 :(得分:2)

  

[chmod] chmod:更改`/usr/local/red5/red5.sh'的权限:不允许操作

看来你没有权限使用`/usr/local/red5/red5.sh'bash,打开你的日食时尝试[sudo]。