• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

torch/luajit-rocks: LuaJIT and luarocks in one location

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

torch/luajit-rocks

开源软件地址(OpenSource Url):

https://github.com/torch/luajit-rocks

开源编程语言(OpenSource Language):

C 64.4%

开源软件介绍(OpenSource Introduction):

CMake-based LuaJIT + Luarocks

What's the point?

We want to provide an easy to way to users for installing recent versions of LuaJIT (or Lua) and luarocks, with almost no efforts.

The provided LuaJIT (or Lua) and luarocks point to their respective git repository. We did not make any changes, except the compilation and installation processes.

In addition,

  • Luarocks (or Lua) will be installed at the same location as LuaJIT and will know about LuaJIT shared library location (mandatory for Windows installs). It will also not be confused if you have several LuaJIT+luarocks at different locations.

  • Luarocks will come installed with Torch rocks repository

  • Luarocks comes with mandatory system command line tools under Windows.

  • Readline support for LuaJIT.

  • Experimental: Lua 5.1 with reference counting.

Pre-requisites

Install CMake on your system.

Get a C compiler. For Windows, we recommend the Windows SDK. It is free, it has no GUI, but it is just fine with CMake.

Installation

git clone https://github.com/torch/luajit-rocks.git
cd luajit-rocks
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/your/prefix

Then under Unix systems:

make install

Under Windows:

nmake install

Note: we do not recommend (nor we support) installation under Cygwin.

Additional CMake flags

  • If you prefer vanilla Lua 5.1 instead of LuaJIT, use -DWITH_LUA51=ON
  • If you prefer vanilla Lua 5.1 with reference counting instead of LuaJIT, use -DWITH_LUA51RC=ON (experimental)
  • If you prefer vanilla Lua 5.2 instead of LuaJIT, use -DWITH_LUA52=ON
  • If you prefer LuaJIT 2.1 instead of LuaJIT 2.0, use -DWITH_LUAJIT21=ON



鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
leafo/moonscript: A language that compiles to Lua发布时间:2022-08-16
下一篇:
tomaka/luawrapper: Easy-to-use lua wrapper for C++发布时间:2022-08-16
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap