If you are happy with the stable version that can be installed through apt (Debian package), then you can use it. That is often "good enough" for clients playing multiplayer. The Debian packaged version can be several versions out of date though, so if you're missing a feature as a player or developer, then you will want a more up to date release. For a lot of people, the Ubuntu PPA will work, so they don't need to compile it themselves. The advice in this thread is good for when your distribution may be incompatible with that PPA (Debian sometimes lags package versions behind Ubuntu). But most of all the advice in the thread is good for when you want the latest -dev version, currently 5.10-dev. It's good for some people to use those versions, to check out the new stuff and make sure old stuff still works (stuff: mods, engine features, performance, ...).
[Debian / Ubuntu] 1-line script: install Minetest Git
- Blockhead
- Member
- Posts: 1994
- Joined: Wed Jul 17, 2019 10:14
- GitHub: Montandalar
- IRC: Blockhead256
- In-game: Blockhead Blockhead256
- Location: Land Down Under
- Contact:
Re: [Debian / Ubuntu] 1-line script: install Minetest Git
/˳˳_˳˳]_[˳˳_˳˳]_[˳˳_˳˳\ Advtrains enthusiast | My map: Noah's Railyard | My Content on ContentDB ✝️♂
Re: [Debian / Ubuntu] 1-line script: install Minetest Git
Sorry, i did not meant that, what really meant is witch script is the more appropriate for installing the latest stable version. Im more than happy with 5.9.0 stable.
- Blockhead
- Member
- Posts: 1994
- Joined: Wed Jul 17, 2019 10:14
- GitHub: Montandalar
- IRC: Blockhead256
- In-game: Blockhead Blockhead256
- Location: Land Down Under
- Contact:
Re: [Debian / Ubuntu] 1-line script: install Minetest Git
Ah of course, so I would slightly modify efa's post to this:
Code: Select all
sudo apt-get update
sudo apt-get install -y git build-essential libgettextpo0 libfreetype6-dev cmake libbz2-dev libpng-dev libjpeg-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
cd $HOME
git clone --depth=1 https://github.com/minetest/minetest.git minetest -b stable-5
cd minetest
cmake .
make -j$(nproc)
cpack -G DEB
sudo apt remove minetest
sudo dpkg -i minetest-*
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"
/˳˳_˳˳]_[˳˳_˳˳]_[˳˳_˳˳\ Advtrains enthusiast | My map: Noah's Railyard | My Content on ContentDB ✝️♂
Re: [Debian / Ubuntu] 1-line script: install Minetest Git
i have a problem in the installation process
im in kubuntu 24.04.1
Code: Select all
user@computer:~/minetest$ cmake .
-- The C compiler identification is GNU 13.2.0
-- The CXX compiler identification is GNU 13.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- *** Will build version 5.9.0 ***
-- BUILD_CLIENT: TRUE
-- BUILD_SERVER: FALSE
-- BUILD_UNITTESTS: TRUE
-- BUILD_BENCHMARKS: FALSE
-- BUILD_DOCUMENTATION: TRUE
-- RUN_IN_PLACE: FALSE
-- Using imported IrrlichtMt at subdirectory 'irr'
-- *** Building IrrlichtMt ***
-- Device: X11
-- OpenGL: ON
-- OpenGL 3: FALSE
-- OpenGL ES: OFF
-- OpenGL ES 2: OFF
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.3")
-- Found JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so (found version "80")
-- Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so (found version "1.6.43")
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so
-- Found X11: /usr/include
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
CMake Error at irr/src/CMakeLists.txt:295 (message):
XInput not found
-- Configuring incomplete, errors occurred!
- Blockhead
- Member
- Posts: 1994
- Joined: Wed Jul 17, 2019 10:14
- GitHub: Montandalar
- IRC: Blockhead256
- In-game: Blockhead Blockhead256
- Location: Land Down Under
- Contact:
Re: [Debian / Ubuntu] 1-line script: install Minetest Git
Your distribution is probably Wayland-only since KDE runs on Wayland these days instead of X11. But Minetest by default will still compile for X11 then run through Wayland. You should install the library that provides xinput. I'm not sure which exactly, but the following command should get the right package directly or through dependency:Melkor wrote: ↑Wed Sep 04, 2024 23:07i have a problem in the installation processim in kubuntu 24.04.1Code: Select all
user@computer:~/minetest$ cmake . ... CMake Error at irr/src/CMakeLists.txt:295 (message): XInput not found
Code: Select all
sudo apt install libxcb-xinput0 libxi-dev libxi6
Code: Select all
rm CMakeCache.txt
cmake .
/˳˳_˳˳]_[˳˳_˳˳]_[˳˳_˳˳\ Advtrains enthusiast | My map: Noah's Railyard | My Content on ContentDB ✝️♂
Re: [Debian / Ubuntu] 1-line script: install Minetest Git
mmm... no luck but this time the error is different
Code: Select all
user@computer:~/minetest$ cmake .
-- The C compiler identification is GNU 13.2.0
-- The CXX compiler identification is GNU 13.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- *** Will build version 5.9.0 ***
-- BUILD_CLIENT: TRUE
-- BUILD_SERVER: FALSE
-- BUILD_UNITTESTS: TRUE
-- BUILD_BENCHMARKS: FALSE
-- BUILD_DOCUMENTATION: TRUE
-- RUN_IN_PLACE: FALSE
-- Using imported IrrlichtMt at subdirectory 'irr'
-- *** Building IrrlichtMt ***
-- Device: X11
-- OpenGL: ON
-- OpenGL 3: FALSE
-- OpenGL ES: OFF
-- OpenGL ES 2: OFF
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.3")
-- Found JPEG: /usr/lib/x86_64-linux-gnu/libjpeg.so (found version "80")
-- Found PNG: /usr/lib/x86_64-linux-gnu/libpng.so (found version "1.6.43")
-- Found OpenGL: /usr/lib/x86_64-linux-gnu/libOpenGL.so
-- Found X11: /usr/include
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so
-- Looking for XOpenDisplay in /usr/lib/x86_64-linux-gnu/libX11.so;/usr/lib/x86_64-linux-gnu/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- LTO/IPO is enabled
-- Detecting GMP from system failed.
-- Using bundled mini-gmp library.
-- Found GMP: gmp
-- Using bundled JsonCpp library.
-- Found Json: jsoncpp
-- Found LuaJIT: /usr/lib/x86_64-linux-gnu/libluajit-5.1.so
-- Using LuaJIT provided by system.
-- Looking for include file endian.h
-- Looking for include file endian.h - found
-- Check size of int
-- Check size of int - done
-- Looking for C++ include sys/types.h
-- Looking for C++ include sys/types.h - found
-- Looking for C++ include stdint.h
-- Looking for C++ include stdint.h - found
-- Looking for C++ include stddef.h
-- Looking for C++ include stddef.h - found
-- Check size of size_t
-- Check size of size_t - done
-- Found CURL: /usr/lib/x86_64-linux-gnu/libcurl.so (Required is at least version "7.28.0")
-- cURL support enabled.
-- Found Intl: built in to C library
-- Could NOT find GettextLib (missing: GETTEXT_MSGFMT)
-- Found OpenAL: /usr/lib/x86_64-linux-gnu/libopenal.so
-- Found Vorbis: /usr/include
-- Sound enabled.
-- Found Freetype: /usr/lib/x86_64-linux-gnu/libfreetype.so (found version "2.13.2")
-- Looking for cbreak in /usr/lib/x86_64-linux-gnu/libncursesw.so
-- Looking for cbreak in /usr/lib/x86_64-linux-gnu/libncursesw.so - found
-- Found Ncursesw: /usr/lib/x86_64-linux-gnu/libncursesw.so
-- ncurses console enabled.
-- Could NOT find PostgreSQL (missing: PostgreSQL_LIBRARY PostgreSQL_INCLUDE_DIR)
-- PostgreSQL not found!
-- LevelDB not found!
-- Redis not found!
-- Found SQLite3: /usr/lib/x86_64-linux-gnu/libsqlite3.so
-- Prometheus client disabled.
-- SpatialIndex not found!
CMake Error at /usr/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find Zstd (missing: ZSTD_LIBRARY ZSTD_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
cmake/Modules/FindZstd.cmake:24 (find_package_handle_standard_args)
src/CMakeLists.txt:254 (find_package)
-- Configuring incomplete, errors occurred!
- Blockhead
- Member
- Posts: 1994
- Joined: Wed Jul 17, 2019 10:14
- GitHub: Montandalar
- IRC: Blockhead256
- In-game: Blockhead Blockhead256
- Location: Land Down Under
- Contact:
Re: [Debian / Ubuntu] 1-line script: install Minetest Git
Aha, of course, the commands we are working off don't copy the current installation recommendation in the docs. You should install the packages that are recommended there:Melkor wrote: ↑Thu Sep 05, 2024 16:10mmm... no luck but this time the error is different
Code: Select all
user@computer:~/minetest$ cmake . ... Could NOT find Zstd (missing: ZSTD_LIBRARY ZSTD_INCLUDE_DIR) ...
Code: Select all
sudo apt install g++ make libc6-dev cmake libpng-dev libjpeg-dev libgl1-mesa-dev libsqlite3-dev libogg-dev libvorbis-dev libopenal-dev libcurl4-gnutls-dev libfreetype6-dev zlib1g-dev libgmp-dev libjsoncpp-dev libzstd-dev libluajit-5.1-dev gettext libsdl2-dev
/˳˳_˳˳]_[˳˳_˳˳]_[˳˳_˳˳\ Advtrains enthusiast | My map: Noah's Railyard | My Content on ContentDB ✝️♂
PROBLEM SOLVED
Done.
PROBLEM SOLVED
Thanks man
PROBLEM SOLVED
Thanks man
-
- Member
- Posts: 54
- Joined: Tue Mar 01, 2022 02:51
- Contact:
Re: [Debian / Ubuntu] 1-line script: install Minetest Git
how can i make a desktop link for ubuntu?
when IT's done ...
- Blockhead
- Member
- Posts: 1994
- Joined: Wed Jul 17, 2019 10:14
- GitHub: Montandalar
- IRC: Blockhead256
- In-game: Blockhead Blockhead256
- Location: Land Down Under
- Contact:
Re: [Debian / Ubuntu] 1-line script: install Minetest Git
Minetest's source code comes with a .desktop format file (the standard format for desktop shortcuts for Linux desktops). When you build the .deb package for Minetest, the package it makes will install that shortcut to /usr/local/share/applications.
After the recent conversion with Melkor, the recipe to build and install should look like this:
Code: Select all
sudo apt-get update
sudo apt-get install -y git build-essential libgettextpo0 libfreetype6-dev cmake libbz2-dev libpng-dev libjpeg-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 libxcb-xinput0 libxi-dev libxi6 libzstd-dev
cd $HOME
git clone --depth=1 https://github.com/minetest/minetest.git minetest -b stable-5
cd minetest
cmake .
make -j$(nproc)
cpack -G DEB
sudo apt remove minetest
sudo dpkg -i minetest-*
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"
/˳˳_˳˳]_[˳˳_˳˳]_[˳˳_˳˳\ Advtrains enthusiast | My map: Noah's Railyard | My Content on ContentDB ✝️♂
Who is online
Users browsing this forum: No registered users and 0 guests