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)
686 views Asked by DarkWiiPlayer At
1
There are 1 answers
Related Questions in LINUX
- Is there some way to use printf to print a horizontal list of decrementing hex digits in NASM assembly on Linux
- Why does Hugo generate different taxonomy-related HTML on different OS's?
- Writes in io_uring do not advance the file offset
- Why `set -o pipefail` gives different output even though the pipe is not failing
- what really controls the permissions: UID or eUID?
- Compiling eBPF program in Docker fails due to missing '__u64' type
- Docker container unable to make HTTPS requests to external API
- Whow to use callback_query_handler in Python 3.10
- Create kea runtime directory at startup in Yocto image
- Problem on CPU scheduling algorithms in OS
- How to copy files into the singularity sandbox?
- Android kernel error: undefined reference to `get_hw_version_platform'
- Is there a need for BPF Linux namespace?
- Error when trying to execute a binary compiled in a Kali Linux machine on an Ubuntu system
- Issue with launching application after updating ElectronJs to version 28.0.0 on Windows and Linux
Related Questions in LUA
- How to make a ServerScript wait for a LocalScript to fire a RemoteEvent
- global const variables in lua 5.4
- Backpack for roblox simulator game
- Calling an event with a delay in Roblox Studio. How to do?
- lghub lua script presskey
- LGHUB Lua script
- In pairs for loop not looping inside of another in pairs loop
- Lua syntax error expected '(' near update_rotation
- 64 unsigned integers in Lua 5.3/5.4 do not behave like in "Programming in Lua"
- How to write a lua pattern that is aware of escaped characters?
- having trouble installing neovim plugin
- Incorrect number comparison result (Lua)
- Lua: is there a need to use hash of string as a key in lua tables
- continuations in lua, is not working while trying extending it
- Neovim Kickstart config "E5113: Error while calling lua chunk: vim/_editor.lua:0: attempt to compare two table values" everytime I open neovim
Related Questions in WEBSERVER
- How can I read the header of request to webserver
- How to isolate PHP apps from each other on a local machine(Windows or Linux)?
- Watchdog Timer Reset on ESP32 using Webservers
- nginx set up reverse proxy from subfolder to a port
- Django miss static files after packaging with pyinstaller
- Problem with changing default NGINX 404 error page
- Web server doesnt output the website like in the project on localhost
- How can I call a SOAP webserver method in Vue.js?
- changing the node version used by apache web server
- Unravel JSON expression
- How Can I Add The iframe Code Of The Github Code To My Site?
- Can someone help me understand why my C webserver is throwing SIGABRT
- .NET httpserver. Get handle new request in current request handler
- Setting up LAMP on Ubuntu 22.04: PHP info not displaying in browser
- Multiple requests made Tornado's flush() method does not return anything
Related Questions in LINUX-MINT
- I'd like to install and configure the 'Checkpoint VPN' on Linux Mint. How can I do that?
- How do you categorize a pending transaction immediately after making a purchase and have it save?
- why opening firefox on linux mint terminal gives an error
- Trouble with setting up Java modules in Apache NetBeans 20 Flatpak Installation, on Linux Mint 21.3 Virginia
- "Package 'php' is not installed, so not removed" but when i run the command "php -v" it works
- R Won't Initialize from Terminal -- R 4.3.3, Linux Mint 21.1
- Configuring Netbeans on Linux mint with LAMP
- Error: Uncaught ReferenceError: __webpack_require__ is not defined at u/newrelic<privetstring>
- adb command not found when running it from Android Studio terminal in Linux Mint
- changing the cinnamon wallpaper from udev rule
- Trying to write a small script edit in .bashrc : Close a terminal after opening a program
- Lazarus + "rsync -a ... ..." copy is timing out. How to fix?
- I cannot execute file compiled by haskell compilier
- dotnet tools not working in linux . You must install or update .NET to run this application. App
- wicked_pdf libssl.so.1.1 cannot open shared object file, no such file or directory
Related Questions in LAPIS
- My lapis server keeps throwing "error 500 Internal Server Error"
- luarocks package installer could not find header file for CRYPTO (crypto.h)
- Lua entry thread aborted: runtime error bad argument #2 to 'tonumber' (number expected, got string)
- Lapis - 403 error when accessing /static/ directory. Lapis unable to use port 80
- How to install Lapis into a docker container?
- How to route to content_by_lua nginx directive depending on both HTTP Action and URL prefix?
- Installing lapis on linux mint (alongside lua 5.3)
- Lapis not using values from config.moon
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?
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)
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.