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

User avatar
indriApollo
Member
Posts: 146
Joined: Fri Sep 26, 2014 11:34
GitHub: indriApollo
IRC: indriApollo
In-game: SudoAptGetPlay
Location: Belgium
Contact:

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

by indriApollo » Post

When launching minetest via 'minetest' in a terminal (as the Exec in minetest.desktop) the game crashes when I try to display the server list.

Code: Select all

Irrlicht log: Irrlicht Engine version 1.8.1
Irrlicht log: Linux 3.16.0-28-generic #38-Ubuntu SMP Fri Dec 12 17:37:40 UTC 2014 x86_64
Irrlicht log: Using renderer: OpenGL 4.4.0
Irrlicht log: GeForce GTX 650/PCIe/SSE2: NVIDIA Corporation
Irrlicht log: OpenGL driver version is 1.2 or better.
Irrlicht log: GLSL version: 4.4
terminate called after throwing an instance of 'LuaError'
  what():  C++ exception
Abandon (core dumped)

GDB output :

Code: Select all

[Thread 0x7fffdd7fb700 (LWP 6700) exited]
terminate called after throwing an instance of 'LuaError'
  what():  C++ exception

Program received signal SIGABRT, Aborted.
[Switching to Thread 0x7fffdf7fe700 (LWP 6697)]
0x00007ffff50fbd27 in __GI_raise (sig=sig@entry=6)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
56	../nptl/sysdeps/unix/sysv/linux/raise.c: Aucun fichier ou dossier de ce type.
I have no problems however with :

Code: Select all

cd /home/me/minetest/bin
./minetest

User avatar
indriApollo
Member
Posts: 146
Joined: Fri Sep 26, 2014 11:34
GitHub: indriApollo
IRC: indriApollo
In-game: SudoAptGetPlay
Location: Belgium
Contact:

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

by indriApollo » Post

Nevermind : I had two minetest installs, one from the repo and the self compiled one. The repo version launched via 'minetet' is outdated.

User avatar
Minetestforfun
Member
Posts: 936
Joined: Tue Aug 05, 2014 14:09
GitHub: Darcidride
IRC: Darcidride + MinetestForFun
In-game: Darcidride + MinetestForFun
Location: On earth
Contact:

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

by Minetestforfun » Post

Hi,

The package "libluajit-5.1-dev" seems to have problems...

Code: Select all

root@Terre:/Applications# apt-get install git build-essential libirrlicht-dev libgettextpo0 libfreetype6-dev cmake libbz2-dev libpng12-dev libjpeg8-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
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
E: Impossible de trouver le paquet libluajit-5.1-dev
E: Impossible de trouver de paquet correspondant à l'expression rationnelle « libluajit-5.1-dev »
root@Terre:/Applications# 

Code: Select all

root@Terre:/Applications# uname -a
Linux Terre 3.2.0-4-amd64 #1 SMP Debian 3.2.65-1+deb7u1 x86_64 GNU/Linux

User avatar
Calinou
Moderator
Posts: 3162
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou
Location: Troyes, France
Contact:

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

by Calinou » Post

Minetestforfun wrote:Hi,

The package "libluajit-5.1-dev" seems to have problems...
It looks like Debian wheezy does not have it (only in wheezy-backports, jessie and sid).

User avatar
Minetestforfun
Member
Posts: 936
Joined: Tue Aug 05, 2014 14:09
GitHub: Darcidride
IRC: Darcidride + MinetestForFun
In-game: Darcidride + MinetestForFun
Location: On earth
Contact:

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

by Minetestforfun » Post

Yes,

It solved my problem. I installed Minetest on a fresh and new Debian computer, and i haven't added contrib, non-free, backports repository to my sources.list

Thank you ;)
Last edited by Minetestforfun on Mon Oct 26, 2015 10:47, edited 1 time in total.

User avatar
superschizo
Member
Posts: 121
Joined: Mon Aug 26, 2013 17:08
In-game: uberdorf
Location: Missouri, USA

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

by superschizo » Post

Thank you for a way to install the current minetest 0.4.11 in ubuntu 14.10.

In my ubuntu 14.10 64 bit, this doesn't install a launch icon for minetest in the menu bar or search applications function. I can launch minetest by terminal, but I'm not sure my 7 year old will remember the steps or even have terminal access in his standard profile. Is there a way to place a launch icon for minetest on the desktop or menu bar?

User avatar
everamzah
Member
Posts: 490
Joined: Thu Jan 29, 2015 00:47
GitHub: everamzah
IRC: everamzah
In-game: everamzah

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

by everamzah » Post

You can make a .desktop file in ~/.local/share/applications. http://standards.freedesktop.org/deskto ... t/apa.html

roalex543
Member
Posts: 21
Joined: Mon Dec 15, 2014 00:04
In-game: android692

Re:

by roalex543 » Post

kaeza wrote:Cool thing. Gonna try it :)
y esta script donde se debe poner o que? no se mucho ingles :/

User avatar
superschizo
Member
Posts: 121
Joined: Mon Aug 26, 2013 17:08
In-game: uberdorf
Location: Missouri, USA

Re: Re:

by superschizo » Post

roalex543 wrote:
kaeza wrote:Cool thing. Gonna try it :)
y esta script donde se debe poner o que? no se mucho ingles :/
No comprende espanol bien, pero si yo comprende esta entonces esta script poner en "Terminal"

User avatar
superschizo
Member
Posts: 121
Joined: Mon Aug 26, 2013 17:08
In-game: uberdorf
Location: Missouri, USA

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

by superschizo » Post

I noticed with the installation of minetest with this script on a fresh installation of Ubuntu 14.10 is that it won't work if the folders don't yet exist. I had to install the old minetest in the normal fashion, remove it with the Ubuntu software center, and then run this script again to make it work.

As for a desktop icon, I had to go to Home/minetest/bin, right click the minetest application, and then copy it to the desktop.

User avatar
firefox
Member
Posts: 1550
Joined: Wed Jan 14, 2015 07:34
In-game: Red_Fox
Location: Xanadu

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

by firefox » Post

since the ppa package site for ubuntu based systems (i have linux mint) was not updated i tried to build the source code. i always use this method for "The Battle for Wesnoth" so i thought i know what to do, but the installation guide for minetest was difficult to understand. i tried to update minetest with "git" but after everything was loaded and "cloned" and the process finished i still had the 4.11 version. so searched the forums for help and found this topic.

it worked right away and it is fast and easy, too.
this code is super-special-awesome, make sure it does not get lost.

*praise* *praise*

+1
+10
+100

great XD
building inspiration: viewtopic.php?f=3&t=15550 --- my game: viewtopic.php?f=49&t=15860 --- =(^.^)= nyan~

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

Re:

by grey » Post

grey wrote:I am happy to say that this worked pefrectly in Elementary OS Linux as well! Fixing the problem of the repos always being terribly outdated.

Though I found that is did not work under Raspbian, it gave the following error:

Code: Select all

pi@groundbase ~/minetest-minetest-3da5669/bin $ ./minetest
Irrlicht Engine version 1.7.3
Linux 3.10.25+ #622 PREEMPT Fri Jan 3 18:41:00 GMT 2014 armv6l
No GLX support available. OpenGL driver will not work.
Fatal error, could not get visual.
Segmentation fault
pi@groundbase ~/minetest-minetest-3da5669/bin $ 



Normally the Raspberry Pi is more than capable of running 3D games, including Minecraft. Though I like Minetest a whole lot better than Minecraft. If anyone know's what I should do here, please tell me!

Alright, so I'm happy to report this works on Trisquel GNU Linux, and since there is a new and way more powerful Raspberry Pi out I will try it on that when I get one. Which hopefully will be next month.

User avatar
Minetestforfun
Member
Posts: 936
Joined: Tue Aug 05, 2014 14:09
GitHub: Darcidride
IRC: Darcidride + MinetestForFun
In-game: Darcidride + MinetestForFun
Location: On earth
Contact:

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

by Minetestforfun » Post

For information, with Debian JESSIE :

Code: Select all

quentinbd@LUNE:~/Bureau$ sudo apt-get install git build-essential libirrlicht-dev libgettextpo0 libfreetype6-dev cmake libbz2-dev libpng12-dev libjpeg8-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 /home/quentinbd/Applications/; 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=1 -DENABLE_GETTEXT=1 -DENABLE_FREETYPE=1 -DENABLE_LEVELDB=1; make -j$(grep -c processor /proc/cpuinfo); cd ../bin; ./minetest; echo -e "\n\n\e[1;33mYou can run Minetest again by double-clicking \"minetest\" in the \"bin\" folder of the \"minetest\" folder in your home folder.\nYou can install mods in ~/minetest/mods, too.\e[0m"
[sudo] password for quentinbd: 
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances       
Lecture des informations d'état... Fait
Package libjpeg8-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  libjpeg62-turbo-dev:i386 libjpeg62-turbo-dev

E: Package 'libjpeg8-dev' has no installation candidate
Clonage dans 'minetest'...
remote: Counting objects: 32874, done.
remote: Compressing objects: 100% (9/9), done.
remote: Total 32874 (delta 2), reused 0 (delta 0), pack-reused 32865
Réception d'objets: 100% (32874/32874), 33.92 MiB | 1.49 MiB/s, fait.
Résolution des deltas: 100% (22723/22723), fait.
Vérification de la connectivité... fait.
Clonage dans 'minetest_game'...
remote: Counting objects: 3954, done.
remote: Total 3954 (delta 0), reused 0 (delta 0), pack-reused 3954
Réception d'objets: 100% (3954/3954), 3.04 MiB | 595.00 KiB/s, fait.
Résolution des deltas: 100% (1702/1702), fait.
Vérification de la connectivité... fait.

...

You can run Minetest again by double-clicking "minetest" in the "bin" folder of the "minetest" folder in your home folder.
You can install mods in ~/minetest/mods, too.

Package libjpeg8-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
libjpeg62-turbo-dev:i386 libjpeg62-turbo-dev

E: Package 'libjpeg8-dev' has no installation candidate
Last edited by Minetestforfun on Thu May 28, 2015 14:55, edited 1 time in total.

User avatar
ExeterDad
Member
Posts: 1717
Joined: Sun Jun 01, 2014 20:00
In-game: ExeterDad
Location: New Hampshire U.S.A

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

by ExeterDad » Post

Just substitute libjpeg8-dev with
libjpeg-dev in your one liner and all will be well :)

User avatar
Minetestforfun
Member
Posts: 936
Joined: Tue Aug 05, 2014 14:09
GitHub: Darcidride
IRC: Darcidride + MinetestForFun
In-game: Darcidride + MinetestForFun
Location: On earth
Contact:

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

by Minetestforfun » Post

ExeterDad wrote:Just substitute libjpeg8-dev with
libjpeg-dev in your one liner and all will be well :)
I know, and it's not the problem... Debian jessie switch between packages without any action from me.

The problem is the initial script will need an update soon ;)

(PS : this is why i sayed "For information" in my initial post)

User avatar
ExeterDad
Member
Posts: 1717
Joined: Sun Jun 01, 2014 20:00
In-game: ExeterDad
Location: New Hampshire U.S.A

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

by ExeterDad » Post

Minetestforfun wrote: (PS : this is why i sayed "For information" in my initial post)
Maybe I shouldn't be using my phone to read and offer help. I missed that. Sorry my friend :)

User avatar
Minetestforfun
Member
Posts: 936
Joined: Tue Aug 05, 2014 14:09
GitHub: Darcidride
IRC: Darcidride + MinetestForFun
In-game: Darcidride + MinetestForFun
Location: On earth
Contact:

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

by Minetestforfun » Post

No problem, you're kind !

English isn't my mother tongue, maybe i misspoke my post...

Marshall_maz
Member
Posts: 241
Joined: Mon Jul 14, 2014 17:13
In-game: Mazal
Location: Cullinan, South-Africa

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

by Marshall_maz » Post

How do I completely purge minetest that was installed with this script ?
I installed it a long time ago when we were at 0.4.11 , now I can't get minetest updated at all.
This script doesn't update it , stays at 0.4.11
Adding the daily ppa also don't work. There it shows that latest daily installs but when running minetest this old
0.4.11 keep starting up.
Ubuntu 14.04.1

So how can I get the old 0.4.11 removed that this script installed so that I can get the latest dev via ppa working ?

User avatar
Calinou
Moderator
Posts: 3162
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou
Location: Troyes, France
Contact:

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

by Calinou » Post

Marshall_maz wrote:How do I completely purge minetest that was installed with this script ?
I installed it a long time ago when we were at 0.4.11 , now I can't get minetest updated at all.
This script doesn't update it , stays at 0.4.11
Adding the daily ppa also don't work. There it shows that latest daily installs but when running minetest this old
0.4.11 keep starting up.
Ubuntu 14.04.1

So how can I get the old 0.4.11 removed that this script installed so that I can get the latest dev via ppa working ?
This script keeps the hidden .git repository that makes the Git SCM work. This way, you can just do this after opening a terminal:

Code: Select all

cd minetest; git pull; make -j$(grep -c processor /proc/cpuinfo)

Marshall_maz
Member
Posts: 241
Joined: Mon Jul 14, 2014 17:13
In-game: Mazal
Location: Cullinan, South-Africa

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

by Marshall_maz » Post

Calinou wrote:
Marshall_maz wrote:How do I completely purge minetest that was installed with this script ?
I installed it a long time ago when we were at 0.4.11 , now I can't get minetest updated at all.
This script doesn't update it , stays at 0.4.11
Adding the daily ppa also don't work. There it shows that latest daily installs but when running minetest this old
0.4.11 keep starting up.
Ubuntu 14.04.1

So how can I get the old 0.4.11 removed that this script installed so that I can get the latest dev via ppa working ?
This script keeps the hidden .git repository that makes the Git SCM work. This way, you can just do this after opening a terminal:

Code: Select all

cd minetest; git pull; make -j$(grep -c processor /proc/cpuinfo)
Thanx , I assume this is to update it to latest ?

Dartmouth
Member
Posts: 121
Joined: Sat Dec 06, 2014 14:39

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

by Dartmouth » Post

Marshall_maz wrote:
Calinou wrote:
Marshall_maz wrote:How do I completely purge minetest that was installed with this script ?
I installed it a long time ago when we were at 0.4.11 , now I can't get minetest updated at all.
This script doesn't update it , stays at 0.4.11
Adding the daily ppa also don't work. There it shows that latest daily installs but when running minetest this old
0.4.11 keep starting up.
Ubuntu 14.04.1

So how can I get the old 0.4.11 removed that this script installed so that I can get the latest dev via ppa working ?
This script keeps the hidden .git repository that makes the Git SCM work. This way, you can just do this after opening a terminal:

Code: Select all

cd minetest; git pull; make -j$(grep -c processor /proc/cpuinfo)
Thanx , I assume this is to update it to latest ?
Yes, it will give you the latest version.

Marshall_maz
Member
Posts: 241
Joined: Mon Jul 14, 2014 17:13
In-game: Mazal
Location: Cullinan, South-Africa

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

by Marshall_maz » Post

Just a suggestion , it might be a good idea to put that update command in post 1 also that players can see it easier.

dannyplaysminetest
Member
Posts: 37
Joined: Sun Jun 28, 2015 19:20
In-game: Danny

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

by dannyplaysminetest » Post

Thanks for this nice and fast one-line installation build, today i woke up after having a dream getting a black screen with a error and a returncode 0 (the dream and error made no sense). Then i woke up i try to play minetest and it kept crashing for no reason right at the moment the game starts, even while i played for hours yesterday and nothing was wrong, i hate my life... delleted my worlds folder again starting from scratch, slim down the amounts of mods i use, lucky for me i kept the PixelBOX Texturepack wich i putted a lot of work into replacing many of the textures, however Thanks for this simple and nice solution to re-install minetest quikly with a one-line script with a Portable install option as wel (wich i need). ^_^

User avatar
hb.operandi
Member
Posts: 24
Joined: Mon Sep 14, 2015 19:47
In-game: Belle

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

by hb.operandi » Post

I've had to reinstall my distro twice now and both times were incredibly frustrating as the both i386 and amd64 deb files returned Wrong Architecture from any installer I used.

Both times this code has been my saving grace.

This time I had to remove

Code: Select all

libluajit-5.1-dev
IDK if that's just me, or if there is an issue somewhere. Either way:

THANNNNNNKS!

EDIT: hmm... it didn't build the bin folder....gonna retry the whole code (with the lib) and see how it goes. Damn... never speak too soon
There is an art to flying, or rather a knack. Its knack lies in learning to throw yourself at the ground and miss. ... Clearly, it is this second part, the missing, that presents the difficulties."

my other life
http://hboperandi.blogspot.com/

User avatar
hb.operandi
Member
Posts: 24
Joined: Mon Sep 14, 2015 19:47
In-game: Belle

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

by hb.operandi » Post

EDIT: hmm... it didn't build the bin folder....gonna retry the whole code (with the lib) and see how it goes. Damn... never speak too soon[/quote]


SO this is what it's returning...gonna keep trying, but if anyone sees this before I get it, lemme know what I'm doing wrong...
(Chromebook running Precise 14.04)

Code: Select all

/home/bellatrix/minetest/src/server.cpp: In member function 'void Server::Receive()':
/home/bellatrix/minetest/src/server.cpp:2584:31: warning: 'peer_id' may be used uninitialized in this function [-Wuninitialized]
/home/bellatrix/minetest/src/server.cpp:1026:6: note: 'peer_id' was declared here
[ 14%] Building CXX object src/CMakeFiles/minetest.dir/version.cpp.o
Linking CXX executable ../bin/minetest
/usr/lib/gcc/arm-linux-gnueabihf/4.6/../../../../lib/libleveldb.a(table_builder.o): In function `leveldb::TableBuilder::WriteBlock(leveldb::BlockBuilder*, leveldb::BlockHandle*)':
(.text+0x466): undefined reference to `snappy::MaxCompressedLength(unsigned int)'
/usr/lib/gcc/arm-linux-gnueabihf/4.6/../../../../lib/libleveldb.a(table_builder.o): In function `leveldb::TableBuilder::WriteBlock(leveldb::BlockBuilder*, leveldb::BlockHandle*)':
(.text+0x490): undefined reference to `snappy::RawCompress(char const*, unsigned int, char*, unsigned int*)'
/usr/lib/gcc/arm-linux-gnueabihf/4.6/../../../../lib/libleveldb.a(format.o): In function `leveldb::ReadBlock(leveldb::RandomAccessFile*, leveldb::ReadOptions const&, leveldb::BlockHandle const&, leveldb::Block**)':
(.text+0x354): undefined reference to `snappy::GetUncompressedLength(char const*, unsigned int, unsigned int*)'
/usr/lib/gcc/arm-linux-gnueabihf/4.6/../../../../lib/libleveldb.a(format.o): In function `leveldb::ReadBlock(leveldb::RandomAccessFile*, leveldb::ReadOptions const&, leveldb::BlockHandle const&, leveldb::Block**)':
(.text+0x392): undefined reference to `snappy::RawUncompress(char const*, unsigned int, char*)'
collect2: ld returned 1 exit status
make[2]: *** [bin/minetest] Error 1
make[1]: *** [src/CMakeFiles/minetest.dir/all] Error 2
make: *** [all] Error 2
bash: cd: ../bin: No such file or directory
bash: ./minetest: No such file or directory

From what I can tell, it's not installing it as /.minetest but just /minetest :/
There is an art to flying, or rather a knack. Its knack lies in learning to throw yourself at the ground and miss. ... Clearly, it is this second part, the missing, that presents the difficulties."

my other life
http://hboperandi.blogspot.com/

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest