Friday, May 10, 2024
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 5919  / 1 Year ago, mon, december 5, 2022, 9:00:09

I'm new to Linux and am attempting install the newest luarocks version. I'm currently running version 2.0.8 (after running sudo apt-get update) which isn't sufficient for some of my needs. Is there a way to specify the version to install? (Also: I'm running this Linux version through a VM)


More From » package-management

 Answers
2

So, you got Luarocks from the previous question, but you want a newer version. I checked the Luarocks homepage, and found their instructions to be pretty good, and did the install on a VM in my home machine - it worked!



Here's the steps:



1) Download the newest version of Luarocks from the download page at http://luarocks.org/releases/. Get the file luarocks-2.2.0.tar.gz



2) In the ~/Downloads directory, where I am assuming your webbrowser placed the tar.gz file, you will need to unpack file file.



Open a terminal windows (ctrl+alt+t) and first ensure that you have the tools to build programs:



sudo apt-get update
sudo apt-get install build-essential


Now change to the download directory, extract the Luarocks source files and change to their directory:



cd downloads
tar -xvf luarocks-2.2.0.tar.gz
cd luarocks-2.2.0


Down for the configure, build and update"



./configure
make build
sudo make install


You done! If you enter luarocks at this point, it will confirm that you are on version 2.2.0


[#22216] Tuesday, December 6, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
istictroubli

Total Points: 306
Total Questions: 96
Total Answers: 114

Location: Sao Tome and Principe
Member since Wed, Jul 13, 2022
2 Years ago
;