2

当我尝试使用这些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,我不应该这样做来构建游戏。

4

1 回答 1

2

您可能使用 sudo 安装了石灰,然后试试这个:

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

这将赋予所有用户“执行”权限。

于 2016-05-18T13:49:55.153 回答