繁体   English   中英

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

[英]Permission errors when trying to build Haxe project

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

您可能使用 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

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM