Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BornAgain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mlz
BornAgain
Commits
6b818a80
Commit
6b818a80
authored
1 year ago
by
Wuttke, Joachim
Browse files
Options
Downloads
Patches
Plain Diff
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
1 year ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hugo/content/installation/building/unix/third-party.md
+11
-41
11 additions, 41 deletions
hugo/content/installation/building/unix/third-party.md
with
11 additions
and
41 deletions
hugo/content/installation/building/unix/third-party.md
+
11
−
41
View file @
6b818a80
...
...
@@ -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)
*
`Qt
5 >=5.5.1
`
(required modules are listed below)
*
`Qt
6
`
(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 \
qt
5
-default libqt
5
designercomponents5 qttools5-dev \
libqt
5
svg5-dev libqt
5
opengl5-dev
qt
6
-default libqt
6
designercomponents5 qttools5-dev \
libqt
6
svg5-dev libqt
6
opengl5-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 \
libqt
5
-qtbase-devel libqt
5
-qttools-devel libqt
5
-qtsvg-devel
libqt
6
-qtbase-devel libqt
6
-qttools-devel libqt
6
-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 qt
5
brew install git cmake fftw gsl python boost libtiff qt
6
pip3 install matplotlib numpy
```
Finally, add Qt to your path environment variable:
```
export PATH=/usr/local/opt/qt
5
/bin/:$PATH
export PATH=/usr/local/opt/qt
6
/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 qt
5
-mac
py3-lmfit tiff boost qt
6
-mac
```
#### Minimal Qt installation via command line
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment