You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/gettingstarted/installing.md
+191-1Lines changed: 191 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,197 @@ can also automatically download precompiled binaries if possible.
10
10
11
11
## Installing aliBuild
12
12
13
-
Follow the instructions <ahref="https://alice-doc.github.io/alice-analysis-tutorial/building/custom.html"target="_blank">here</a>. Do not follow "build the packages" on that page.
13
+
Building software has become an increasingly complicated operation, as our software has many dependencies and we expect it to work both on your laptop and on the Grid. In addition, we support many Linux distributions and recent macOS versions.
14
+
15
+
ALICE uses aliBuild to build software. aliBuild:
16
+
17
+
* knows how to build software via per-package recipes,
18
+
* manages the dependencies consistently,
19
+
* rebuilds only what's necessary,
20
+
* allows several versions of the same software to be installed at the same time.
21
+
22
+
### Operating systems we support
23
+
24
+
#### Prerequisites
25
+
26
+
According to your operating system, please follow the prerequisites below. You will find a list of packages to install and configurations to perform.
27
+
28
+
##### Primary supported platform:
29
+
30
+
*[CentOS 7](#prereq-for-centos7)
31
+
*[CentOS/AlmaLinux 8](#prereq-for-centos8)
32
+
*[AlmaLinux 9](#prereq-for-alma9)
33
+
34
+
##### Platforms supported on a best-effort basis:
35
+
36
+
* macOS Sonoma and Sequoia (14.0, 15.0)
37
+
* Ubuntu (20.04 LTS, 22.04 LTS, 24.04 LTS)
38
+
* Fedora
39
+
40
+
If your operating system is *not* in any list, it does not mean our software won't work on it; it will be just more difficult for you to get support for it.
41
+
42
+
Only in case you cannot install aliBuild in the way described above, you can install aliBuild manually. This procedure should only be used as a fall-back, in case you cannot follow the instructions for your operating system linked above.
43
+
44
+
45
+
<h6id=<prereq-for-centos7> aliBuild prerequisites for CentOS7 </h6>
46
+
47
+
With root permission, i.e. `sudo` or as `root`install the prerequisits using:
<h6id="prereq-for-macos">aliBuild prerequisites for macOS</h6>
104
+
105
+
**Get Xcode**<br>
106
+
Xcode bundles the necessary tools to build software in the apple ecosystem including compilers, build systems and version control.
107
+
108
+
* Download it from the [App Store](https://itunes.apple.com/gh/app/xcode/id497799835?mt=12)
109
+
* Open once installed. It will ask to install additional components - approve the action.
110
+
* Open a terminal (Applicaions>Utilities>Terminal) and install the command line tools using: <br>
111
+
*`sudo xcode-select --install`
112
+
* Approve the license conditions by <br>
113
+
`sudo xcodebuild -license`
114
+
115
+
**Get Homebrew**<br>
116
+
[Homebrew](https://brew.sh/) is a command-line package manager for macOS used to install software packages similar to `yum` on CentOS or `apt` on Ubuntu.
117
+
118
+
* Install Homebrew using the [instructions on their webpage](https://brew.sh/).
119
+
* Once installed detect any problems regarding Homebrew and your system using: `brew doctor`
120
+
121
+
122
+
**Uninstall ROOT**<br>
123
+
If you have an existing ROOT installation on your system, this will interfere with the aliBuild installation, and will cause difficult-to-debug compilation errors.
124
+
125
+
Please uninstall any existing copy of ROOT on your system. The uninstallation method depends on how you installed it. For example, if you originally installed ROOT using Homebrew, you should uninstall it using `brew uninstall root`.
126
+
127
+
After uninstalling ROOT, remove any reference to ROOT from your `.zprofile`, `.zshrc` and any other shell configuration files. Then close and re-open your terminal window.
128
+
129
+
**Install the required packages**<br>
130
+
131
+
Note that Homebrew does not run as root. Do not prepend sudo to any of the following commands.
<h6id="prereq-for-ubuntu">aliBuild prerequisites for Ubuntu</h6>
141
+
142
+
ALICE software on Ubuntu is supported on a best effort basis. There is no guarantee that software builds or runs correctly. Support requests might have low priority. We were able to successfully build on:
143
+
144
+
* Ubuntu 20.04 LTS
145
+
* Ubuntu 22.04 LTS
146
+
* Ubuntu 24.04 LTS
147
+
148
+
**Install required system packages**<br>
149
+
150
+
With root permissions, i.e. sudo, update your package sources:
151
+
```bash
152
+
sudo apt update -y
153
+
```
154
+
With root permissions, i.e. `sudo`, install the following packages:
After you are done installing alibuild you need to configure it by adding the two following lines to your ~/.bashrc, ~/.bash_profile, ~/.zshrc or ~/.zprofile (depending on your operating system and configuration):
193
+
```bash
194
+
export ALIBUILD_WORK_DIR="$HOME/alice/sw"
195
+
eval"$(alienv shell-helper)"
196
+
```
197
+
The first line tells what directory is used as "build cache", the second line installs a "shell helper" that makes easier to run certain aliBuild-related commands.
198
+
199
+
You need to close and reopen your terminal for the change to be effective. The directory `~/alice/sw` will be created the first time you run aliBuild.
200
+
201
+
""Note that this directory tends to grow in size over time, and it is the one you need to remove in case of cleanups.""
202
+
203
+
When `aliBuild`is installed on your computer and your prerequisits are statisfied, you can move to the next step.
0 commit comments