Skip to content

Commit

Permalink
update README.txt
Browse files Browse the repository at this point in the history
* prefix apt-get with sudo
* git clone minetest_game without going to folder
* execute minetest binary without going into bin folder
  • Loading branch information
nerzhul committed Feb 20, 2015
1 parent e357577 commit 109f0ff
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions README.txt
Expand Up @@ -103,21 +103,19 @@ Compiling on GNU/Linux:
-----------------------

Install dependencies. Here's an example for Debian/Ubuntu:
$ apt-get install build-essential libirrlicht-dev cmake libbz2-dev libpng12-dev libjpeg8-dev libxxf86vm-dev libgl1-mesa-dev libsqlite3-dev libogg-dev libvorbis-dev libopenal-dev libcurl4-gnutls-dev libfreetype6-dev zlib1g-dev libjsoncpp-dev
$ sudo apt-get install build-essential libirrlicht-dev cmake libbz2-dev libpng12-dev libjpeg8-dev libxxf86vm-dev libgl1-mesa-dev libsqlite3-dev libogg-dev libvorbis-dev libopenal-dev libcurl4-gnutls-dev libfreetype6-dev zlib1g-dev libjsoncpp-dev

You can install git for easily keeping your copy up to date.
If you dont want git, read below on how to get the source without git.
This is an example for installing git on Debian/Ubuntu:
$ apt-get install git-core
$ sudo apt-get install git-core

Download source (this is the URL to the latest of source repository, which might not work at all times) using git:
$ git clone --depth 1 https://github.com/minetest/minetest.git
$ cd minetest

Download minetest_game (otherwise only the "Minimal development test" game is available) using git:
$ cd games/
$ git clone --depth 1 https://github.com/minetest/minetest_game.git

This comment has been minimized.

Copy link
@HybridDog

HybridDog Feb 27, 2015

Contributor

l think you can clone faster if you add -b master --single-branch
and with $locate minetest_game you can see if you already cloned it before
if so, you can add --reference >path< path is told by locate

$ cd ..
$ git clone --depth 1 https://github.com/minetest/minetest_game.git games/minetest_game

Download source, without using git:
$ wget https://github.com/minetest/minetest/archive/master.tar.gz
Expand All @@ -136,8 +134,7 @@ $ cmake . -DRUN_IN_PLACE=1
$ make -j2

Run it:
$ cd bin
$ ./minetest
$ ./bin/minetest

- Use cmake . -LH to see all CMake options and their current state
- If you want to install it system-wide (or are making a distribution package), you will want to use -DRUN_IN_PLACE=0
Expand Down

1 comment on commit 109f0ff

@C1ffisme
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thats a good idea. Good job.

Please sign in to comment.