Difference between revisions of "Troubleshooting of the Installation Process"
Line 7: | Line 7: | ||
== Installation of pre-compiled binary == | == Installation of pre-compiled binary == | ||
− | |||
− | <pre>tar | + | You can get the binary from the [https://cmake.org/download/ download page]. |
− | you will have the | + | |
+ | First, move to the installation directory of salmon, | ||
+ | <pre> | ||
+ | cd <SALMON_INSTALLATION_DIRECTORY> | ||
+ | </pre> | ||
+ | and download the binary distribution ( <code>cmake-<VERSION>-<PLATFORM>.tar.gz</code>) appropriate for your platform. | ||
+ | You can do it by copy the URL of download link from the browser, and use <code>wget</code> command: | ||
+ | <pre> | ||
+ | wget https://cmake.org/files/v3.8/cmake-3.8.2-Linux-x86_64.tar.gz | ||
+ | </pre> | ||
+ | In this document, we will use version 3.8.2 as an example. You can unpack the archive | ||
+ | <pre> | ||
+ | tar -zxvf cmake-3.8.2-Linux-x86_64.tar.gz | ||
+ | </pre> | ||
+ | and you will have the binary <code>make-3.8.2-Linux-x86_64/bin/cmake</code>. | ||
+ | To utilize the <code>cmake</code> command, the executable are settled inside the directory specified in your <code>$PATH</code>. | ||
+ | |||
+ | If you use the bash shell, you edit <code>~/.bashrc</code> and append the line: | ||
+ | <pre> | ||
+ | export PATH=<SALMON_INSTALLATION_DIRECTORY>/cmake-3.8.2-Linux-x86_64/bin:$PATH | ||
+ | </pre> | ||
+ | , and reload the configuration <code>source ~/.bashrc</code>. | ||
+ | |||
== Installation from source code == | == Installation from source code == |
Revision as of 12:11, 10 June 2017
Contents
Installation of CMake
The CMake is a cross-platform build tool. In order to build the SALMON from the source code, the CMake of version 3.0.2 or later is required on your system.
Installation of pre-compiled binary
You can get the binary from the download page.
First, move to the installation directory of salmon,
cd <SALMON_INSTALLATION_DIRECTORY>
and download the binary distribution ( cmake-<VERSION>-<PLATFORM>.tar.gz
) appropriate for your platform.
You can do it by copy the URL of download link from the browser, and use wget
command:
wget https://cmake.org/files/v3.8/cmake-3.8.2-Linux-x86_64.tar.gz
In this document, we will use version 3.8.2 as an example. You can unpack the archive
tar -zxvf cmake-3.8.2-Linux-x86_64.tar.gz
and you will have the binary make-3.8.2-Linux-x86_64/bin/cmake
.
To utilize the cmake
command, the executable are settled inside the directory specified in your $PATH
.
If you use the bash shell, you edit ~/.bashrc
and append the line:
export PATH=<SALMON_INSTALLATION_DIRECTORY>/cmake-3.8.2-Linux-x86_64/bin:$PATH
, and reload the configuration source ~/.bashrc
.
Installation from source code
Download the distribution from the download page.
tar xvfz cmake-<VERSION>.tar.gz cd cmake-<VERSION> ./configure make make instal l
Installation by package manager
For several UNIX/Linux environment, your system already has the built-in package manager. and it will provide the most convenient way to install the cmake tools as below:
Debian/Ubuntu Linux
sudo apt-get install cmake
Fedora Linux/CentOS
sudo yum install cmake
openSUSE Linux
sudo zypper install cmake