Multiple minetest installations in Linux

Post Reply
7v
New member
Posts: 7
Joined: Fri Jul 12, 2013 23:05

Multiple minetest installations in Linux

by 7v » Post

I am wondering the best way to install multiple different Minetest releases in Linux. I'm running Mint 15: Olivia. I was thinking about using the "portable" build script found here: http://forum.minetest.net/viewtopic.php?id=3837, but I wanted to make sure that this wont overwrite any of my older version or user/world data.

My current installation is an older version that I installed from Synaptic package manager. I'm not exactly sure of my current version, but I do know that it is fairly old, having an older mapgen which is capable of generating mountain peaks in excess of +100 blocks.

I was wondering how I would go about running the different versions. For instance, when I type minetest into the terminal which one will run?

User avatar
kaeza
Moderator
Posts: 2162
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza
Location: Montevideo, Uruguay
Contact:

by kaeza » Post

It will run the globally installed one.

If you want several different versions in the same machine, you'll have to compile them with RUN_IN_PLACE enabled, and run them off their own directory.

Edit: After compiling (with the "portable" version of the script in that topic), run this:

Code: Select all

cpack -G TGZ .
This will create a minetest-0.4.x-Linux.tar.gz, which you can then decompress into it's own directory.
Last edited by kaeza on Fri Jul 12, 2013 23:32, edited 1 time in total.
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal

7v
New member
Posts: 7
Joined: Fri Jul 12, 2013 23:05

by 7v » Post

This didn't seem to work. I think the following messages from terminal may be pertinent:

ldconfig deferred processing now taking place
fatal: destination path 'minetest' already exists and is not an empty directory.
bash: cd: minetest/games: Not a directory
fatal: could not create work tree dir 'minetest_game'.: Permission denied
CMake Error: The source directory "/usr" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
make: *** No targets specified and no makefile found. Stop.
bash: ./minetest: No such file or directory

Perhaps I need to edit some of the script?

User avatar
kaeza
Moderator
Posts: 2162
Joined: Thu Oct 18, 2012 05:00
GitHub: kaeza
IRC: kaeza diemartin blaaaaargh
In-game: kaeza
Location: Montevideo, Uruguay
Contact:

by kaeza » Post

Try running these lines:

Code: Select all

cd ~
mkdir Minetest-Run-In-Place
cd Minetest-Run-In-Place
git clone https://github.com/minetest/minetest.git
cd minetest
cmake -DRUN_IN_PLACE=1 .
make -j 3
Your signature is not the place for a blog post. Please keep it as concise as possible. Thank you!

Check out my stuff! | Donations greatly appreciated! PayPal

7v
New member
Posts: 7
Joined: Fri Jul 12, 2013 23:05

by 7v » Post

I tried Calinou's script again, making sure I was in my home folder this time, and it did partially build, but stopped with errors.
I also tried entering the commands one by one and got an error when trying to run one of the commands. I'll post some info from terminal:

v777v@drcomp ~/minetest $ cmake . -DRUN_IN_PLACE=1 -DENABLE_GETTEXT=1 -DENABLE_FREETYPE=1
-- *** Will build version 0.4.7 ***
-- IRRLICHT_SOURCE_DIR =
-- IRRLICHT_INCLUDE_DIR = /usr/include/irrlicht
-- IRRLICHT_LIBRARY = /usr/lib/x86_64-linux-gnu/libIrrlicht.a
-- CURL_INCLUDE_DIR = CURL_INCLUDE_DIR-NOTFOUND
-- CURL_LIBRARY = CURL_LIBRARY-NOTFOUND
-- gettext include path: /usr/include
-- gettext msgfmt path: /usr/bin/msgfmt
-- GetText enabled; locales found: et;ro;da;fr;pt;ru;zh_CN;nb;pt_BR;ko;nl;ky;pl;du;de;uk;it;hu;es;ja
-- Sound enabled
-- Using project jthread library
-- Found system sqlite3 header file in /usr/include
-- Found system sqlite3 library /usr/lib/x86_64-linux-gnu/libsqlite3.so
-- Using project jsoncpp library
-- LuaJIT library: LUA_LIBRARY-NOTFOUND
-- LuaJIT headers: LUA_INCLUDE_DIR-NOTFOUND
-- LuaJIT not found, using bundled Lua.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/justin/minetest
v777v@drcomp ~/minetest $ cd src
v777v@drcomp ~/minetest/src $ make -j2
[ 0%] Built target jsoncpp
[ 10%] Built target lua
[ 11%] Built target jthread
[ 11%] Built target cguittfont
[ 11%] mo update
[ 25%] Built target translations
[ 57%] Built target minetestserver
make[2]: *** No rule to make target `/usr/lib/x86_64-linux-gnu/libGL.so', needed by `bin/minetest'. Stop.
make[1]: *** [src/CMakeFiles/minetest.dir/all] Error 2
make: *** [all] Error 2

7v
New member
Posts: 7
Joined: Fri Jul 12, 2013 23:05

by 7v » Post

kaeza wrote:Try running these lines:

Code: Select all

cd ~
mkdir Minetest-Run-In-Place
cd Minetest-Run-In-Place
git clone https://github.com/minetest/minetest.git
cd minetest
cmake -DRUN_IN_PLACE=1 .
make -j 3

I also tried running your commands and it did partially work, but didn't include minetest game.
Last edited by 7v on Sat Jul 13, 2013 07:45, edited 1 time in total.

User avatar
Topywo
Member
Posts: 1721
Joined: Fri May 18, 2012 20:27

by Topywo » Post

Maybe this way to install/compile will suit you better:

Post 10:

http://forum.minetest.net/viewtopic.php ... 429#p92429

Only thing to pay extra attention --> $ cd minetest-minetest-286edd4 (or similar) --> Everytime you install/compile a new latest version of minetest you need to look into your files what the latest number/letter combo is.

User avatar
Zeg9
Member
Posts: 608
Joined: Fri Sep 21, 2012 11:02
Location: France

by Zeg9 » Post

7v wrote:
kaeza wrote:Try running these lines:

Code: Select all

cd ~
mkdir Minetest-Run-In-Place
cd Minetest-Run-In-Place
git clone https://github.com/minetest/minetest.git
cd minetest
cmake -DRUN_IN_PLACE=1 .
make -j 3

I also tried running your commands and it did partially work, but didn't include minetest game.
After make, do:

Code: Select all

cd games
git clone https://github.com/minetest/minetest_game.git
cd ..
...and you should have minetest_game.

To update:

Code: Select all

git pull
cd games/minetest_game/
git pull
cd ../../
cmake . && make -j3
Last edited by Zeg9 on Sat Jul 13, 2013 10:50, edited 1 time in total.
I made a few (a lot of?) mods for minetest: here is a list.
See also the MT-Faithful texture pack (work in progress).

7v
New member
Posts: 7
Joined: Fri Jul 12, 2013 23:05

by 7v » Post

I've tried all of these suggestions and I still get the same error when trying to build minetest_game:


make[2]: *** No rule to make target `/usr/lib/x86_64-linux-gnu/libGL.so', needed by `bin/minetest'. Stop.
make[2]: *** Waiting for unfinished jobs....
[100%] Building CXX object src/CMakeFiles/minetest.dir/guiFileSelectMenu.cpp.o
make[1]: *** [src/CMakeFiles/minetest.dir/all] Error 2
make: *** [all] Error 2

I end up with a minetest_game directory in the /games directory but no minetest binary that I can locate.

User avatar
Topywo
Member
Posts: 1721
Joined: Fri May 18, 2012 20:27

by Topywo » Post

7v wrote:I've tried all of these suggestions and I still get the same error when trying to build minetest_game:


make[2]: *** No rule to make target `/usr/lib/x86_64-linux-gnu/libGL.so', needed by `bin/minetest'. Stop.
make[2]: *** Waiting for unfinished jobs....
[100%] Building CXX object src/CMakeFiles/minetest.dir/guiFileSelectMenu.cpp.o
make[1]: *** [src/CMakeFiles/minetest.dir/all] Error 2
make: *** [all] Error 2

I end up with a minetest_game directory in the /games directory but no minetest binary that I can locate.
I found this on google:

http://techtidings.blogspot.nl/2012/01/ ... buntu.html

It's difficult for me to follow, but maybe it helps you.

(I don't have that problem and I don't have the /libGL.so file, but I use Lubuntu with a Radeon card).

Edit: You wrote you use Mint 15: Olivia, but maybe it's still helpfull.
Last edited by Topywo on Sat Jul 13, 2013 17:36, edited 1 time in total.

7v
New member
Posts: 7
Joined: Fri Jul 12, 2013 23:05

by 7v » Post

Topywo wrote:
I found this on google:

http://techtidings.blogspot.nl/2012/01/ ... buntu.html

It's difficult for me to follow, but maybe it helps you.

(I don't have that problem and I don't have the /libGL.so file, but I use Lubuntu with a Radeon card).

Edit: You wrote you use Mint 15: Olivia, but maybe it's still helpfull.
Thankyou!
That was the solution to my problem. I have an AMD Radeon HD 5770 with the vendor proprietary driver installed, apparently that had something to do with it. I was able to locate the broken link but didn't have any clue what to do about it.
I replaced the link as described on the tech tidings blog link and just went back to Calinou's portable build script and did a quick copy & paste into the terminal and it worked. I'm sure that any of the other suggested commands would probably also have worked.
I appreciate all the helpful responses!

Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests