Page 5 of 5

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

PostPosted: Mon Dec 19, 2016 00:43
by BBmine
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:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
-- 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.

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

PostPosted: Mon Dec 19, 2016 12:26
by Calinou
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:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
export CC=/usr/bin/clang
export CXX=/usr/bin/clang++

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

PostPosted: Wed Dec 21, 2016 00:29
by BBmine
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:

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
export CC=/usr/bin/clang
export CXX=/usr/bin/clang++

I tried that and got farther, but now it's saying this:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
- *** 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.

Sorry, I don't really know much about compiling :P. Especially in Debian.

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

PostPosted: Mon Jan 02, 2017 06:40
by ClaudiusMinimus
Your script installs libirrlicht-dev, do you know what version that is for LinuxMint 18.x (based on Ubuntu 16.04)? I need irrlicht 1.8.4 or greater to use the clipboard between LinuxMint & MT 0.4.15

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

PostPosted: Wed Jan 11, 2017 01:28
by QTZ7aRLAjB*z
Thank you so much for this!! saved me hours - works perfectly on ubunutu 16.04 server

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

PostPosted: Sat Jan 14, 2017 19:41
by Lejo
I try it in Ubuntu 16.10 with the non-portable version this works perfect.

But on my server i can't update the server version to 0.4.15

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

PostPosted: Fri Feb 24, 2017 02:21
by BBmine
I really want to add some customizations to my minetest because I don't have much experience with C++. This script won't work on Debian. I've seen things that work, but nothing yet that works that I can also change the source code and recompile. I think it has to do with there being missing libraries. I don't know how to fix this other than that it complains about how some library packages are not available. I don't know what to do about these packages. I miss Ubuntu. :(

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

PostPosted: Sat Feb 25, 2017 16:39
by Calinou
BBmine wrote:I really want to add some customizations to my minetest because I don't have much experience with C++. This script won't work on Debian. I've seen things that work, but nothing yet that works that I can also change the source code and recompile. I think it has to do with there being missing libraries. I don't know how to fix this other than that it complains about how some library packages are not available. I don't know what to do about these packages. I miss Ubuntu. :(


Can you post the log of this command, when typed in the root directory of the Minetest Git clone?

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
cmake .

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

PostPosted: Mon Mar 27, 2017 14:46
by Ruggero
The script didn't work for me. I fixed it with replacing "libpng12-dev" with "libpng-dev". Just that.