Skip to content
phcosta29 edited this page Oct 26, 2016 · 1 revision

Prerequisites:

Instructions Ubuntu:

  1. Start a terminal. Press Ctr + Alt + T
  2. Install R. (instructions)
  3. Install Rserve:
    1. Start R (by terminal).
    2. sudo R
    3. Install Rserve.
    4. install.packages("Rserve")
    5. Exit R.
    6. quit()
  4. Install Lua.
    1. sudo apt-get install lua5.3 liblua5.3-dev
  5. Install luasocket:
    1. git clone https://github.com/phcosta29/luasocket-lua5.3.git
    2. cd luasocket
    3. make
    4. sudo make install
    5. lua test/hello.lua
    6. cd ..
    7. NOTE: If luasocket compilation fails because of missing headers (e.g. lua.h),copy them to the common header folder. For example:
      1. sudo ln -s /usr/include/lua5.3/lua.h /usr/include/lua.h
      2. sudo ln -s /usr/include/lua5.3/luaconf.h /usr/include/luaconf.h
      3. sudo ln -s /usr/include/lua5.3/lauxlib.h /usr/include/lauxlib.h
  6. Install vstruct:
    1. git clone https://github.com/ToxicFrog/vstruct.git
    2. sudo cp -r vstruct /usr/local/share/lua/5.3/
    3. lua vstruct/test.lua
  7. Start Rserve. On a dfferent terminal type R CMD Rserve. Or done:
    1. R
    2. library(Rserve)
    3. Rserve(debug=TRUE).
  8. And have a good time!
Clone this wiki locally