【问题标题】:Permission errors when trying to build Haxe project尝试构建 Haxe 项目时出现权限错误
【发布时间】:2016-09-02 19:05:09
【问题描述】:

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

【问题讨论】:

    标签: haxe permission-denied openfl haxeflixel haxelib


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-06-16
      • 2012-12-09
      • 2023-04-09
      • 2022-01-12
      • 1970-01-01
      • 2019-11-17
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多