A few days ago I had a few problems while installing trying to install lapis on my new installation of linux mint. The main problem was that I wanted to have lua 5.3 as the main lua interpreter on my system, but lapis only works with lua 5.1.
Installing lapis on linux mint (alongside lua 5.3)
685 Views Asked by DarkWiiPlayer At
1
There are 1 best solutions below
Related Questions in LINUX
- How do I recursively find and replace only in files named index.php on Linux webserver?
- passing text with \n as one argument in shell
- kernel module does not print packet info
- How to send ESC/POS commands to thermal printer in Linux
- (x64 Nasm) Writeline function on Linux
- How do I set the Hive user to something different than the Spark user from within a Spark program?
- Default priority of thread with SCHED_FIFO
- Calling a python function with options from shell script
- How to split a directory into parts without compressing or archiving?
- Cross compile simple standard C program on Linux for Mac
- How to offload NAPI poll function to workqueue
- python netifaces - How to get currently used network interface
- Unexpected output from function
- mingw-64 conflicting declarations when cross-compiling
- Different behavior of async with Visual Studio 2013(Windows8.1) and GCC 4.9(Ubuntu14.10)
Related Questions in LUA
- lua udp not working between computers
- Guitar Hero-like Timing Mechanic
- Call download lua script in app
- Erlang spawning large amounts of C processes
- does redis cluster support transactions ?
- I am writing an IVR using Lua and want to run xml script in between
- How to read a Bunch of files in a directory in lua
- How to pause a Lua script?
- lua 5.2.3 source lstring.c function luaS_resize
- Torch Lua: Why is my gradient descent not optimizing the error?
- How can I convert a character code to a string character in Lua?
- LuaInterface issue with vs 2015 RC project
- Storing Lua callback functions
- Compile Lua Code and store the bytecode in a new file
- Is there something wrong with my onRelease call?
Related Questions in WEBSERVER
- How to prevent timeout when running a time consuming PHP
- How to get response from server every second in JSON?
- Apache Server (xampp) doesn't run on Windows 10 (Port 80)
- Upgrade SonarQube issues
- How to test java server without deployment?
- Deploy Jekyll project without a webserver
- TCP Window Update Scenarios
- Cors doesnt solve cross origin requests
- How do I configure my Android emulator to access my localhost?
- Do i need to install some packages to run javascript on debian
- Best practice for docker webserver, muliple layers or single layer?
- What is meant by the term "web root"?
- Connect IOT module to the internet server
- Raspberry pi Webserver handling Get Requests
- why db execution doesn't stops even if I stops the web browser?
Related Questions in LINUX-MINT
- How to determine system value for _POSIX_PATH_MAX
- Linker error while building from source code
- Tar backup error
- Python - audiodiff can't find file that exists
- Aliased over existing command
- how to create a test case to follow a process on my laptop
- Empty function in BASH
- OpenSSL compilation error installing Ruby on Mint 18
- FileNotFoundError while installing the module jpy via pip in conda
- QTcpSocket Keep alive option does not work
- What does apt-get install 3.5 do?
- How do I remove debian packages using python apt API
- Accidentally installed python 3.5 vs. python3.5 : Is this bad?
- Dropbox bug: Missing text for Folder Settings
- How to know Vendor ID for Ark Benefit S502Plus smartphone?
Related Questions in LAPIS
- How to install Lapis into a docker container?
- Lapis not using values from config.moon
- Lua entry thread aborted: runtime error bad argument #2 to 'tonumber' (number expected, got string)
- luarocks package installer could not find header file for CRYPTO (crypto.h)
- My lapis server keeps throwing "error 500 Internal Server Error"
- Installing lapis on linux mint (alongside lua 5.3)
- Lapis - 403 error when accessing /static/ directory. Lapis unable to use port 80
- How to route to content_by_lua nginx directive depending on both HTTP Action and URL prefix?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
This is how I ended up installing it
Note: Instructions for normal installation process, with aditional lua 5.3 being optional
Prerequisites
First of all install all the prerequisites with
apt-get install libreadline-dev libncurses5-dev libpcre3-dev libssl-dev perl make build-essential*. This is all you should need to install lua, luarocks and openresty.* copied from openresty website
Lua Interpreter(s)
Next, go to
https://www.lua.org/versions.htmland download the latest version of lua5.1 (wget https://www.lua.org/ftp/lua-5.1.5.tar.gz). Then extract the downloaded filetar -xf lua-5.1.5.tar.gzand optionally rename the directorymv lua-5.1.5 lua51.Now you can simply build and install lua by moving to the directory
cd lua51and running makemake linuxandsudo make installAditionally, you might want to have lua5.3 installed on your system as the main lua interpreter. Luarocks doesn't seem to particularly like this kind of setup though, so I recommend the following:
First download and extract (and optionally rename) both lua5.1 and lua 5.3; go to the lua 5.1 directory and open
Makefilein a text editor; Edit lines 12-15 to install lua in another directory. For me it worked to just add/lua51toINSTALL_TOP(line 12). Next go to line 44 and change the names of the binaries (I choselua51andluac51), optionally do the same with the man pages (this requires also changing them in thedocsubdirectory).The next step is to go to the
src/directory and edit the makefile there as well: in lines 32 and 35 change the names as you did in the previous makefile (lua51 and luac51 in my case).After this you can just
make linuxandsudo make installas described above.Luarocks
Now you need to install luarocks on your system. Start by downloading the latest release of luarocks (http://keplerproject.github.io/luarocks/releases/) and extract it. Again, you can rename it to
luarocks/reduce typing.cdto the directory you just extracted and run./condigure.If you changed the lua installation path, you will have give some parameters to the configure script: For lua 5.1
./configure --lua-version=5.1 --with-lua=/usr/local/lua51 --lua-suffix=51is how I had to do it (--lua-suffix is what I added toluaandluacand --with-lua tells it where thebin,lib, etc. subdirectories are; only relevant if you changedINSTALL_TOPin the makefile)Optionally you can now proceed to (download, ) build and install lua 5.3 with its standard configuration. After that you can even go back to the luarocks directory and repeat
./configure,make buildandmake installand it should automatically install itself with lua 5.3 and leave the installation for lua5.1 intact**.** the luarocks executable is actually just a symlink to luarocks-VERSION (where VERSION can be 5.1, 5.3, etc.) in the same directory. Each time you install luarocks this link is overwritten to point to the latest installation, but the other executables are still there.
OpenResty
The next step is to install OpenResty: open http://openresty.org/en/installation.html and check the prerequisite section. It should say the same as at the beginning of this answer. If not, install any missing package now. You can also just follow the installation instructions there, but I will be repeating it anyway; go to http://openresty.org/en/download.html and download the latest version. Extract the downloaded archives (and rename the new directory to simply openresty).
cdto the new directory and run./configure --with-pcre-jit --with-ipv6(this might take a while),make(this might take an even longer while) andsudo make install.At this point everything except lapis itself should be set up and working.
Lapis
To install lapis, type
sudo lurocks install lapis(userluarocks-5.1** instead if you have installed more than one version of it).Congratulations! If you got no errors, you should now have lapis installed and ready to use :)
** see section Luarocks.