Skip to content

Commit

Permalink
Add 'LuaRocks'.
Browse files Browse the repository at this point in the history
  • Loading branch information
gummesson committed Nov 11, 2013
1 parent 8c8fd00 commit cb5cba6
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
1 change: 1 addition & 0 deletions notes/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ layout: page
- [ack](/notes/ack)
- [Github](/notes/github)
- [kramdown](/notes/kramdown)
- [LuaRocks](/notes/luarocks)
- [MongoDB](/notes/mongodb)
- [Oh my Zsh!](/notes/oh-my-zsh)
- [Tmux](/notes/tmux)
Expand Down
26 changes: 26 additions & 0 deletions notes/luarocks.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
title: "LuaRocks"
layout: page
---

A small guide for getting [LuaRocks](http://luarocks.org/) up and running on Windows.

## MinGW

1. Download the installer.
2. Choose the `mingw32-base` package and the `mingw32-gcc-g++` package.
3. Add `C:\MinGW\bin` to your PATH.

## LuaRocks

1. Download the installer and extract it.
2. Run `install.bat /P C:\LuaRocks /MW`.
3. Add `C:\LuaRocks\2.1` and `C:\LuaRocks\bin` to your PATH.
4. Create a new environment variable called `LUA_PATH` with the following value: `.\?.lua;.\?\init.lua;C:\LuaRocks\share\lua\5.1\?.lua;C:\LuaRocks\share\lua\5.1\?\init.lua`
5. Create a new environment variable called `LUA_CPATH` with the following value: `.\?.dll;C:\LuaRocks\lib\lua\5.1\?.dll`.

### Packages

Some packages can't be built on Windows with MinGW. The easiest way to get them to work is to go to LuaRocks' [main repository](http://luarocks.org/repositories/rocks/), download the package's `win32-x86.rock` file and install it manually, like this:

luarocks install package-version-win32-x86.rock

0 comments on commit cb5cba6

Please sign in to comment.