ncisoft
V2EX  ›  Lua

luarocks 使用上的一些小技巧

  •  
  •   ncisoft · Jun 21, 2016 · 9967 views
    This topic created in 3623 days ago, the information mentioned may be changed or developed.

    如果想保持系统的干净,不想安装到系统目录,可以这样用 luarocks install luasocket --local

    然后用 luarocks path 可以看到环境变量应如何设置,自行拷贝出来 export 即可

    每次 install 都要从网上下载源文件,若本地已有源代码,可以这样用 luarocks make local-rockspec --local

    缺省 luarocks 编译 c 文件是不带调试信息的,这对于 debug (比如生成火焰图缺乏符号信息尤其不方便),可以这样用 luarocks make local-rockspec --local CC="gcc -g"

    >>>参考资料

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   925 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 20:01 · PVG 04:01 · LAX 13:01 · JFK 16:01
    ♥ Do have faith in what you're doing.