-
Notifications
You must be signed in to change notification settings - Fork 41
Installation of System Dependencies
Luadist requires the presence of C compiler, Git (any recent version) and CMake (at least of version 2.8.4) on the system. For installation of some modules distributed by Luadist, C++ compiler can also be required. For installation instructions depending on your operation system, see below.
On most Linux systems, C and C++ compilers, make, cmake and git are required. The packages that need to be installed depend on the concrete Linux distribution:
-
On Debian based distributions (Debian, Ubuntu, Mint...), packages libc-dev, gcc, g++, make, cmake and git are needed and you can use the command:
sudo apt-get install build-essential cmake git
to install them from the command line. -
On Red Hat based distributions (Red Hat, Fedora, CentOS...) the required packages can be installed with the command:
sudo yum install make gcc gcc-c++ kernel-devel cmake git
-
On Arch Linux:
sudo pacman -S base-devel cmake git
-
On openSUSE:
sudo zypper install --no-recommends gcc gcc-c++ make git
and then installcmake
manually from http://cmake.org/cmake/resources/software.html#latest (cmake distributed in openSUSE is somehow weird ;) -
On Mageia:
sudo urpmi gcc gcc-c++ make cmake git
-
On PCLinuxOS:
sudo apt-get install gcc gcc-c++ make cmake git
However, you can use any other package management tool (e.g. aptitude), depending on the distribution you use.
On OS X it is essential to have XCode and its Command Line Tools installed, additionally you will need to install CMake.
![Installing XCode Command Line Tools](http://i.imgur.com/ZVR7r.png)Below we are describing an installation on Windows XP, but it should be very similar for other versions of Windows as well.
As C and C++ compilers, we will use the ones provided by MinGW project.
Installation:
- Download the installer from http://sourceforge.net/projects/mingw/files/latest/download and execute it.
- When the installer offers an option to update the repository catalogues, choose that option:
- In the Select Components dialog, choose both C and C++ compilers:
After the successful installation, you need to add the path to MinGW to your system PATH
variable, so that it can be accessed from the command line.
- Open the item System from the Control Panel. Then go to the tab Advanced and open the item Environment Variables:
- In the part System variables locate the variable Path and add a string
;C:\MinGW\bin
at the end. Do not change the preceding values, just add this one to the end and then save the changes:
Installation:
- Download the latest binary installer from http://www.cmake.org/download/, concretely Windows (Win32 Installer) and execute it.
- When installer offers an option to add CMake to the system
PATH
variable, choose an option to add it for all users:
To install Git, we will use the installer Git for Windows from the project msysGit.
Installation:
- Download the installer from http://msysgit.github.io and execute it.
- When the installer offers a selection of components to install, don't change everything, but the Additional icons options:
- When the installer offers options to adjusting the
PATH
environment, select the option Run Git from the Windows Command Prompt (it's crucial to not to select the third option, because it causes problems with cmake):