[Debian / Ubuntu] 1-line script: install Minetest Git

User avatar
Lejo
Member
Posts: 670
Joined: Mon Oct 19, 2015 16:32
GitHub: Lejo1
In-game: Lejo

Re: [Debian / Ubuntu] 1-line script: install Minetest Git

by Lejo » Post

How can I delete the dev-0.5.0 release?
I need a server release of 0.4.17, I think this was a client release.
Edit: It is both?

User avatar
Krock
Developer
Posts: 4503
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker
Location: Switzerland
Contact:

Re: [Debian / Ubuntu] 1-line script: install Minetest Git

by Krock » Post

Lejo wrote:I need a server release of 0.4.17, I think this was a client release.
Right, I forgot to mention the CMake options which let you build the server (minetestserver) without the client built-in.

Code: Select all

cmake . -DBUILD_CLIENT=0 -DBUILD_SERVER=1
If you want Minetest as a (more or less) portable package, also define the option " -DRUN_IN_PLACE=1 ". If you have a desktop environment on the computer where you are building the server, then also check out the executable "cmake-gui".
More options: https://github.com/minetest/minetest/bl ... ke-options

CMake does not offer a way to uninstall a system-wide installed application, so you'd have to remove the files either manually or parse the manifest file.
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

User avatar
Lejo
Member
Posts: 670
Joined: Mon Oct 19, 2015 16:32
GitHub: Lejo1
In-game: Lejo

Re: [Debian / Ubuntu] 1-line script: install Minetest Git

by Lejo » Post

Thanks! It works perfect.

User avatar
cHyper
Member
Posts: 842
Joined: Fri May 06, 2011 08:49
GitHub: cHyper-0815OL
IRC: cHyper
In-game: cHyper cHyper_0815
Location: Austria
Contact:

Re: [Debian / Ubuntu] 1-line script: install Minetest Git

by cHyper » Post

Krock wrote:
Lejo wrote:I need a server release of 0.4.17, I think this was a client release.
Right, I forgot to mention the CMake options which let you build the server (minetestserver) without the client built-in.

Code: Select all

cmake . -DBUILD_CLIENT=0 -DBUILD_SERVER=1
If you want Minetest as a (more or less) portable package, also define the option " -DRUN_IN_PLACE=1 ". If you have a desktop environment on the computer where you are building the server, then also check out the executable "cmake-gui".
More options: https://github.com/minetest/minetest/bl ... ke-options

CMake does not offer a way to uninstall a system-wide installed application, so you'd have to remove the files either manually or parse the manifest file.
+1; void *print() { cout <<"hello world"} LOL sorry... wrong way...

izzyb
Member
Posts: 28
Joined: Thu May 07, 2015 22:41

Re: [Debian / Ubuntu] 1-line script: install Minetest Git

by izzyb » Post

Lejo wrote:How can I delete the dev-0.5.0 release?
I need a server release of 0.4.17, I think this was a client release.
Edit: It is both?
To build a 4.17 release from the source, you need to checkout the 4.17 release after your git clone of the source.
UPDATE: Thanks Lejo - use checkout stable-0.4 instead of checkout 0.4.17 as I originally indicated. That way you'll get the latest stable automatically if there is a new release.

Code: Select all

git clone https://github.com/minetest/minetest.git
cd minetest
git checkout stable-0.4
cd games
git clone https://github.com/minetest/minetest_game.git
git checkout stable-0.4
Then do your cmake and make.

I recently figured this out, so please correct me if I have anything wrong here. I'm not sure how to get a list of branches, but found on my system tab completion produces a list if you type git checkout <tab><tab>. I'm sure there's a command to do the same, just not sure what it is.
Last edited by izzyb on Fri Jun 22, 2018 15:42, edited 1 time in total.

User avatar
Lejo
Member
Posts: 670
Joined: Mon Oct 19, 2015 16:32
GitHub: Lejo1
In-game: Lejo

Re: [Debian / Ubuntu] 1-line script: install Minetest Git

by Lejo » Post

Thanks!
But it's: git checkout stable-0.4

User avatar
poikilos
Member
Posts: 64
Joined: Thu Feb 18, 2016 13:45
GitHub: poikilos
In-game: Abiyahh

Re: [Debian / Ubuntu] 1-line script: install Minetest Git

by poikilos » Post

There is an issue in the original 1-line script that also was causing trouble in my version. I didn't notice this until recently. This is only an issue for silent install (such as in my case). If you are trying to make a silent install or remote install, the part where you run minetest should be removed:

Code: Select all

minetest;
Otherwise your cron job or whatever you are doing will get stuck.

User avatar
poikilos
Member
Posts: 64
Joined: Thu Feb 18, 2016 13:45
GitHub: poikilos
In-game: Abiyahh

Re: [Debian / Ubuntu] 1-line script: install Minetest Git

by poikilos » Post

For some reason it wouldn't compile due to missing lua.h ("lua.h: no such file or directory") on Ubuntu 18.04 Bionic Beaver, even though present in ./lib/lua/src/lua.h (where . is git version of minetest). This happened even after installing libluajit-5.1-dev liblua5.1-0-dev as per the 1-line script, and lublua5.2-dev as guesswork. I had to add the

Code: Select all

-DLUA_INCLUDE_DIR=/usr/include/luajit-2.1 
option to cmake.

User avatar
grey
Member
Posts: 22
Joined: Fri Jan 03, 2014 18:51
Contact:

Re: [Debian / Ubuntu] 1-line script: install Minetest Git

by grey » Post

Just in case anyone cares, I tested this on a current Xbuntu machine and it works.

User avatar
grey
Member
Posts: 22
Joined: Fri Jan 03, 2014 18:51
Contact:

Re: [Debian / Ubuntu] 1-line script: install Minetest Git

by grey » Post

I'm bringing back this dead thread to say that this one line of code still works on Trisquel 8. Thank you OP!

SteveTeece
New member
Posts: 1
Joined: Thu Aug 29, 2019 05:41
GitHub: SteveTeece

Re: [Debian / Ubuntu] 1-line script: install Minetest Git

by SteveTeece » Post

Another post to keep this thread alive.

I've been through ALL the posts in this thread, and modified/updated the 1-line installation script to the following:
1. Installs all the required build tools (latest versions as of 13 Sept, 2019)
2. Clone's the git repository for the most current versions of minetest and minetest-game
3. Compiles server (but not client)
4. Installs server System-Wide

This is tested and working on 13 Sept 2019 using Ubuntu 18.04.3 LTS

Code: Select all

sudo apt-get install -y git build-essential libirrlicht-dev libgettextpo0 libfreetype6-dev cmake libbz2-dev libpng12-dev libjpeg62-turbo-dev libxxf86vm-dev libgl1-mesa-dev libsqlite3-dev libogg-dev libvorbis-dev libopenal-dev libcurl4-openssl-dev libluajit-5.1-dev liblua5.1-0-dev libleveldb-dev; cd; git clone https://github.com/minetest/minetest.git; cd minetest/games; git clone https://github.com/minetest/minetest_game.git; cd ..; cmake . -DRUN_IN_PLACE=0 -DENABLE_GETTEXT=1 -DENABLE_FREETYPE=1 -DENABLE_LEVELDB=0 -DBUILD_CLIENT=0 -DBUILD_SERVER=1; make -j$(nproc); sudo make install; echo -e "\n\n\e[1;33mYou can run Minetest again by typing \"minetest\" in a terminal or selecting it in an applications menu.\nYou can install mods in ~/.minetest/mods, too.\e[0m"

User avatar
Linuxdirk
Member
Posts: 2511
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

Re: [Debian / Ubuntu] 1-line script: install Minetest Git

by Linuxdirk » Post

Alternatively just add the PPA and install from there.

bomberman
Member
Posts: 10
Joined: Fri May 19, 2017 05:24

Re: [Debian / Ubuntu] 1-line script: install Minetest Git

by bomberman » Post

Code: Select all

sudo dnf install -y gcc-c++ freetype-devel spatialindex-devel postgresql-devel doxygen irrlicht-devel gettext freetype cmake bzip2-devel libpng libjpeg-turbo libXxf86vm mesa-libGLU libsqlite3x-devel libogg-devel libvorbis-devel openal-devel curl-devel luajit-devel lua-devel leveldb-devel ncurses-devel redis hiredis-devel gmp-devel; cd; git clone https://github.com/minetest/minetest.git; cd minetest/games; git clone https://github.com/minetest/minetest_game.git; cd ..; cmake . -DENABLE_GETTEXT=1 -DENABLE_FREETYPE=1 -DENABLE_LEVELDB=1 -DENABLE_REDIS=1 -DENABLE_POSTGRESQL=1; make -j$(nproc); sudo make install; minetest; echo -e "\n\n\e[1;33mYou can run Minetest again by typing \"minetest\" in a terminal or selecting it in an applications menu.\nYou can install mods in ~/.minetest/mods, too.\e[0m"
in fedora32 need libSM-devel
2020-03-16_12-09.png
(23.19 KiB) Not downloaded yet

User avatar
Linuxdirk
Member
Posts: 2511
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

Re: [Debian / Ubuntu] 1-line script: install Minetest Git

by Linuxdirk » Post

Krock wrote:CMake does not offer a way to uninstall a system-wide installed application
This is the main reason not to use sudo make install ever. It's better to always create a package and install the package using the system's package manager.

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests