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

BBmine
Member
 
Posts: 1425
Joined: Sun Jul 12, 2015 22:51
GitHub: BBmine
IRC: BBmine
In-game: Baggins

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

by BBmine » Mon Dec 19, 2016 00:43

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.
God's not dead!
I actually did mine walls before I started playing this game....
Mods, Servers, and My Youtube Channel
Let us remember Just Test on April 16.
"Together, we will make America great again!" --President Trump
Please vote for the next video I should do here
I'm the most rottenist potato in the fridge.
Copyright (c) 2017 Baggins Inc. (tm) All rights reserved.
 

User avatar
Calinou
Member
 
Posts: 3124
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou

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

by Calinou » Mon Dec 19, 2016 12:26

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++
 

BBmine
Member
 
Posts: 1425
Joined: Sun Jul 12, 2015 22:51
GitHub: BBmine
IRC: BBmine
In-game: Baggins

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

by BBmine » Wed Dec 21, 2016 00:29

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.
God's not dead!
I actually did mine walls before I started playing this game....
Mods, Servers, and My Youtube Channel
Let us remember Just Test on April 16.
"Together, we will make America great again!" --President Trump
Please vote for the next video I should do here
I'm the most rottenist potato in the fridge.
Copyright (c) 2017 Baggins Inc. (tm) All rights reserved.
 

User avatar
ClaudiusMinimus
Member
 
Posts: 36
Joined: Wed Jun 01, 2016 17:46
GitHub: ClaudiusMinimus
IRC: ClaudiusMinimus
In-game: ClaudiusMinimus

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

by ClaudiusMinimus » Mon Jan 02, 2017 06:40

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
ClaudiusMinimus

Follow my blog at: ClaudiusMinimus' Universe
Visit me at the incredible Illuna Universe
 

QTZ7aRLAjB*z
New member
 
Posts: 2
Joined: Mon Aug 22, 2016 09:31

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

by QTZ7aRLAjB*z » Wed Jan 11, 2017 01:28

Thank you so much for this!! saved me hours - works perfectly on ubunutu 16.04 server
 

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

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

by Lejo » Sat Jan 14, 2017 19:41

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
Enjoy my Minigameserver Subgames for all!
https://forum.minetest.net/viewtopic.php?f=10&t=14480
 

BBmine
Member
 
Posts: 1425
Joined: Sun Jul 12, 2015 22:51
GitHub: BBmine
IRC: BBmine
In-game: Baggins

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

by BBmine » Fri Feb 24, 2017 02:21

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. :(
God's not dead!
I actually did mine walls before I started playing this game....
Mods, Servers, and My Youtube Channel
Let us remember Just Test on April 16.
"Together, we will make America great again!" --President Trump
Please vote for the next video I should do here
I'm the most rottenist potato in the fridge.
Copyright (c) 2017 Baggins Inc. (tm) All rights reserved.
 

User avatar
Calinou
Member
 
Posts: 3124
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou

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

by Calinou » Sat Feb 25, 2017 16:39

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 .
 

Ruggero
Member
 
Posts: 32
Joined: Mon Jan 02, 2017 13:12
In-game: Fritz

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

by Ruggero » Mon Mar 27, 2017 14:46

The script didn't work for me. I fixed it with replacing "libpng12-dev" with "libpng-dev". Just that.
Cheers, Ruggero.
 

Previous

Return to Minetest Builds

Who is online

Users browsing this forum: No registered users and 6 guests

cron