Skip to content
Snippets Groups Projects
Commit 6b818a80 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

doc: unix third-party software: update (#552, thanks to Georg Brandl)

parent b7d9b659
No related branches found
No related tags found
No related merge requests found
Pipeline #97367 passed
......@@ -13,13 +13,13 @@ Required software:
* `cmake >= 3.14`
* `gsl >= 1.15` (GNU scientific library)
* `fftw3 >= 3.3.1`
* `libtiff >=4.0.2`
* `libcerf >=1.14` (complex error function, maintained by us)
* `python3 python3-dev`
* `python3-pip python3-numpy python3-matplotlib`
* `libtiff >= 4.0.2`
* `libcerf >= 2.0` (complex error function, maintained by us)
* `python3 >= 3.8`
* `python3-dev python3-pip python3-numpy python3-matplotlib`
* `python3-lmfit` (optional, for some fit scripts)
* `boost >= 1.65` (see note below)
* `Qt5 >=5.5.1` (required modules are listed below)
* `Qt6` (required modules are listed below)
From libboost, we need the library components `iostreams` and `program_options`.
Internally, the CMake command to find `boost::iostreams` may add a dependence
......@@ -52,8 +52,8 @@ $ sudo apt-get install build-essential git cmake \
python3 python3-dev python3-numpy python3-matplotlib python3-lmfit \
libboost-dev libboost-iostreams-dev \
libboost-program-options-dev libboost-regex-dev \
qt5-default libqt5designercomponents5 qttools5-dev \
libqt5svg5-dev libqt5opengl5-dev
qt6-default libqt6designercomponents5 qttools5-dev \
libqt6svg5-dev libqt6opengl5-dev
```
### OpenSuse
......@@ -62,39 +62,9 @@ Install required packages:
$ sudo zypper install gcc-c++ git-core cmake gsl-devel \
libboost_*-devel fftw3-devel python3-devel python3-numpy-devel \
python3-matplotlib python3-lmfit libtiff-devel \
libqt5-qtbase-devel libqt5-qttools-devel libqt5-qtsvg-devel
libqt6-qtbase-devel libqt6-qttools-devel libqt6-qtsvg-devel
```
### CentOS
CentOS 7 and Redhat 7 ship with gcc-4.8.5, which does not fully support C++ 14.
This instruction thus also explains how to get a newer compiler on your system.
Install extra packages:
<pre><code>$ sudo rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm</code></pre>
Install BornAgain dependencies:
<pre><code>$ sudo yum -y install make cmake3 gcc-c++
$ sudo yum -y install fftw-devel boost-devel gsl-devel libtiff-devel
$ sudo yum -y install python3-devel numpy
$ sudo yum -y install qt5-qtbase-devel qt5-qttools-devel qt5-qtsvg-devel</code></pre>
Install 'devtoolset' with additional development tools.
See
<a href="https://www.softwarecollections.org/en/scls/rhscl/devtoolset-4">Devtoolset-4</a>
for more details.
<pre><code>$ sudo yum install centos-release-scl # if you are on CentOS</code></pre>or
<pre><code>$ sudo yum-config-manager --enable rhel-server-rhscl-7-rpms # if you are on RHEL</code></pre>
Install newer compiler:
<pre><code>$ sudo yum install devtoolset-4-gcc-c++</code></pre>
Enable the new compiler (you will have to run this command for every new terminal):
<pre><code>$ scl enable devtoolset-4 bash</code></pre>
Make sure that gcc gives you version 9.0 or higher:
<pre><code>$ g++ --version</code></pre>
### MacOS
MacOS comes with no package manager, but fortunately there are several
......@@ -115,13 +85,13 @@ Install Homebrew as explained <a href=https://brew.sh/>here</a> and
then install all BornAgain dependencies by running the following
commands:
```
brew install git cmake fftw gsl python boost libtiff qt5
brew install git cmake fftw gsl python boost libtiff qt6
pip3 install matplotlib numpy
```
Finally, add Qt to your path environment variable:
```
export PATH=/usr/local/opt/qt5/bin/:$PATH
export PATH=/usr/local/opt/qt6/bin/:$PATH
```
#### Macports
......@@ -131,7 +101,7 @@ href=https://www.macports.org/install.php>here</a>. Then install all
BornAgain dependencies by running the following command:
```
sudo port install git cmake fftw-3 gsl py3-matplotlib py3-numpy\
py3-lmfit tiff boost qt5-mac
py3-lmfit tiff boost qt6-mac
```
#### Minimal Qt installation via command line
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment