#!/bin/bash
{
your usual commands
} |& tee build.log
Glorfindel wrote:This script still installs the last 0.4.13-dev build, rather than the 0.4.14-dev build, is there a way to change this to 0.4.14?
git clone https://github.com/minetest/minetest.git
Wayward_One wrote:Glorfindel wrote:This script still installs the last 0.4.13-dev build, rather than the 0.4.14-dev build, is there a way to change this to 0.4.14?
Actually,
- Code: Select all
git clone https://github.com/minetest/minetest.git
will always install the latest HEAD (0.4.14-dev), as that is the main repository where all the latest commits end up. Perhaps try a fresh clone?
Glorfindel wrote:Wayward_One wrote:Glorfindel wrote:This script still installs the last 0.4.13-dev build, rather than the 0.4.14-dev build, is there a way to change this to 0.4.14?
Actually,
- Code: Select all
git clone https://github.com/minetest/minetest.git
will always install the latest HEAD (0.4.14-dev), as that is the main repository where all the latest commits end up. Perhaps try a fresh clone?
How would I do that? Doesn't the script download a new clone every time I run it?
sudo apt-get install -y git build-essential cmake libjpeg62-turbo-dev libirrlicht-dev libgettextpo0 libfreetype6-dev cmake libbz2-dev libpng12-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; sudo mkdir /minetest; cd; sudo git clone https://github.com/minetest/minetest.git; cd minetest/games; sudo git clone https://github.com/minetest/minetest_game.git; cd ..; sudo cmake . -DENABLE_GETTEXT=1 -DENABLE_FREETYPE=1 -DENABLE_LEVELDB=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"
function.name_of_thing_to_do
XtremeHacker wrote:Here is my revised version.
Hiradur wrote:XtremeHacker wrote:Here is my revised version.
sudo should not be put before every command. It's a security risk and possibly breaks permissions for files. The 1-line script works fine on Debian 8 without these added sudos (only needs a replacement for libjpeg8).
function.name_of_thing_to_do
DreamKeeper wrote:Hello, friends!
Please be kind to answer the question:
I have Debian Wheezy, so.... do I need to get better OS version (config)... or... I can install minetest fresh version without any negative effetcts on my Debian Wheezy?
I appreciate your help.
Calinou wrote:DreamKeeper wrote:Hello, friends!
Please be kind to answer the question:
I have Debian Wheezy, so.... do I need to get better OS version (config)... or... I can install minetest fresh version without any negative effetcts on my Debian Wheezy?
I appreciate your help.
This script might work on Debian wheezy, but I'm not sure. In any case, at the time of writing, you can still build Minetest yourself on Debian wheezy (or even Ubuntu 12.04, which is almost 5 years old now).
DreamKeeper wrote:Oh my.... I have almost running my own server.....
Only one bug (of feature?) I've got: I see nothing (black screen) when authorized as admin.
But, when authorized as normal user - I can see world and all is OK and perfect.
What's wrong with admin's view?
Do I need some mod to be installed? Or is this some sort of bug?
kaeza wrote:DreamKeeper wrote:Oh my.... I have almost running my own server.....
Only one bug (of feature?) I've got: I see nothing (black screen) when authorized as admin.
But, when authorized as normal user - I can see world and all is OK and perfect.
What's wrong with admin's view?
Do I need some mod to be installed? Or is this some sort of bug?
Your "admin" player may be buried underground. Try enabling noclip (H key) and fly (K key), and fly up.
E: Für Paket »libpng12-dev« existiert kein Installationskandidat.
Lejo wrote:I now install libpng12-dev manual, but now i can't start minetest.
Lejo
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:9 (project):
No CMAKE_CXX_COMPILER could be found.
Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
-- Configuring incomplete, errors occurred!
See also "/home/user/git/minetest/CMakeFiles/CMakeOutput.log".
See also "/home/user/git/minetest/CMakeFiles/CMakeError.log".
make: *** No targets specified and no makefile found. Stop.
BBmine wrote:I switched from Ubuntu 16.04 to the latest Debian testing today, and tried different ways to install Minetest with git. I've done it before just fine with Ubuntu. Here is what I got each time:
export CC=/usr/bin/clang
export CXX=/usr/bin/clang++
Calinou wrote:BBmine wrote:I switched from Ubuntu 16.04 to the latest Debian testing today, and tried different ways to install Minetest with git. I've done it before just fine with Ubuntu. Here is what I got each time:
The build-essential package should normally always install GCC (which lets you compile C/C++ code).
Alternatively, you may try to install the clang package, which also is a C/C++ compiler.
You can force the use of a specific compiler (Clang as an example, here) in a CMake project (which Minetest is) with these commands:
- Code: Select all
export CC=/usr/bin/clang
export CXX=/usr/bin/clang++
- *** Will build version 0.4.14-dev ***
-- Could NOT find Irrlicht (missing: IRRLICHT_LIBRARY IRRLICHT_INCLUDE_DIR)
-- Could NOT find CURL (missing: CURL_LIBRARY CURL_INCLUDE_DIR)
CMake Warning at src/CMakeLists.txt:52 (message):
cURL is required to load the server list
-- Could NOT find GetText (missing: GETTEXT_MSGFMT)
-- Could NOT find Freetype (missing: FREETYPE_LIBRARY FREETYPE_INCLUDE_DIRS)
-- Could NOT find LuaJit (missing: LUA_LIBRARY LUA_INCLUDE_DIR)
-- LuaJIT not found, using bundled Lua.
-- Detecting GMP from system failed.
-- Using bundled mini-gmp library.
-- ncurses console enabled.
-- Could NOT find PostgreSQL (missing: PostgreSQL_LIBRARY PostgreSQL_INCLUDE_DIR PostgreSQL_TYPE_INCLUDE_DIR)
-- PostgreSQL not found!
-- LevelDB not found!
-- Redis not found!
CMake Error at /usr/share/cmake-3.7/Modules/FindPackageHandleStandardArgs.cmake:138 (message):
Could NOT find SQLite3 (missing: SQLITE3_LIBRARY SQLITE3_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake-3.7/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
cmake/Modules/FindSQLite3.cmake:8 (find_package_handle_standard_args)
src/CMakeLists.txt:255 (find_package)
-- Configuring incomplete, errors occurred!
See also "/home/user/git/minetest/CMakeFiles/CMakeOutput.log".
See also "/home/user/git/minetest/CMakeFiles/CMakeError.log".
make: *** No targets specified and no makefile found. Stop.
Users browsing this forum: No registered users and 1 guest