尝试构建Haxe项目时的权限错误

时间:2016-05-07 21:23:45

标签: haxe permission-denied openfl haxeflixel haxelib

当我尝试使用lime工具在HTML5 / JavaScript中构建我的Haxe项目时,我收到此错误,并出现以下警告:

jesse@jesse-kubuntu ~/C/Similar-Game> lime test html5
chmod: changing permissions of ‘/usr/share/haxelib/lime/2,9,1/templates/bin/webify-linux64’: Operation not permitted
chmod: changing permissions of ‘/usr/share/haxelib/lime/2,9,1/templates/bin/webify-linux64’: Operation not permitted
Warning: Could not find generated font file "/usr/share/haxelib/flixel/4,0,1/assets/fonts/nokiafc22.eot"
Warning: Could not find generated font file "/usr/share/haxelib/flixel/4,0,1/assets/fonts/nokiafc22.woff"
Warning: Could not find generated font file "/usr/share/haxelib/flixel/4,0,1/assets/fonts/nokiafc22.svg"
Warning: Could not find generated font file "/usr/share/haxelib/flixel/4,0,1/assets/fonts/monsterrat.eot"
Warning: Could not find generated font file "/usr/share/haxelib/flixel/4,0,1/assets/fonts/monsterrat.woff"
Warning: Could not find generated font file "/usr/share/haxelib/flixel/4,0,1/assets/fonts/monsterrat.svg"
chmod: changing permissions of ‘/usr/share/haxelib/lime/2,9,1/templates/bin/node/node-linux64’: Operation not permitted
sh: 1: /usr/share/haxelib/lime/2,9,1/templates/bin/node/node-linux64: Permission denied
jesse@jesse-kubuntu ~/C/Similar-Game>

如何解决这些警告和错误?并且不要说sudo,我不应该这样做来构建游戏。

1 个答案:

答案 0 :(得分:2)

你可能使用sudo安装了lime,所以试试这个:

sudo chmod a+x /usr/share/haxelib/lime/2,9,1/templates/bin/webify-linux64
sudo chmod a+x /usr/share/haxelib/lime/2,9,1/templates/bin/node/node-linux64

这将为所有用户提供“执行”权限。