简体   繁体   English

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

[英]Permission errors when trying to build Haxe project

When I try to build my Haxe project in HTML5/JavaScript with the lime tools, I get this error, and these warnings:当我尝试使用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>

How do I resolve these warnings and errors?如何解决这些警告和错误? And don't say sudo , I shouldn't have to do that to build a game.不要说sudo ,我不应该这样做来构建游戏。

You probably installed lime using sudo, so then try this:您可能使用 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

This will give 'execution' rights to all users.这将为所有用户提供“执行”权限。

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

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