@@ -10,8 +10,8 @@ To install AMUSE, we need to
1010(AMUSE can also be installed without Conda if needed, as described below, but we
1111recommend using Conda.)
1212
13- If you have a Mac, then you should skip to :ref: `Setting up macOS `, and if you're
14- running Linux then you can go straight to :ref: `Installing Conda `. For Windows, continue
13+ If you have a Mac, then you should skip to :ref: `setting_up_macOS `, and if you're
14+ running Linux then you can go straight to :ref: `installing_conda `. For Windows, continue
1515here with installing WSL.
1616
1717Installing WSL
@@ -55,9 +55,10 @@ updates. We can then install them using this:
5555 sudo apt -y upgrade
5656
5757
58- Now you can continue with :ref: `Installing Conda `, using the Ubuntu terminal window to
58+ Now you can continue with :ref: `installing_conda `, using the Ubuntu terminal window to
5959enter the instructions.
6060
61+ .. _setting_up_macOS :
6162
6263Setting up macOS
6364----------------
@@ -99,6 +100,7 @@ loaded, and then you're ready to install Conda.
99100If you use Bash instead of zsh, then you'll need to edit ``.bashrc `` instead. When in
100101doubt, you can safely edit both files to be sure.
101102
103+ .. _installing_conda :
102104
103105Installing Conda
104106----------------
@@ -108,10 +110,9 @@ available. Conda is a package manager, a program with which you can install othe
108110programs. It's very widely used in science and beyond, so having a working Conda setup
109111is very useful also outside of the world of AMUSE.
110112
111- If you already have a working Conda setup, then you can continue to :ref: `Installing
112- AMUSE`.
113+ If you already have a working Conda setup, then you can continue to :ref: `installing_amuse `.
113114
114- If you cannot or don't want to use Conda, see :ref: `Using a virtualenv ` below.
115+ If you cannot or don't want to use Conda, see :ref: `using_a_virtualenv ` below.
115116
116117If you do not yet have Conda, then you can install it using the following commands in
117118the terminal. (Linux users can open one from the menu, Windows and macOS users will
@@ -135,6 +136,8 @@ Finally, close your terminal window and open a new one to make the ``conda`` com
135136properly available.
136137
137138
139+ .. _installing_amuse :
140+
138141Installing AMUSE
139142----------------
140143
@@ -145,22 +148,22 @@ command in your terminal to download it as above, for example:
145148
146149.. code-block :: bash
147150
148- curl -L -O " https://github.com/amusecode/amuse/archive/refs/tags/v2025.5 .0.tar.gz"
151+ curl -L -O " https://github.com/amusecode/amuse/archive/refs/tags/v2025.9 .0.tar.gz"
149152
150153
151154 This ``.tar.gz `` file needs to be unpacked first (you may need to change the version if
152155you downloaded a newer one):
153156
154157.. code-block :: bash
155158
156- tar xf v2025.5 .0.tar.gz
159+ tar xf v2025.9 .0.tar.gz
157160
158161
159162 Then we can enter the directory with the AMUSE source code:
160163
161164.. code-block :: bash
162165
163- cd amuse-2025.5 .0
166+ cd amuse-2025.9 .0
164167
165168
166169 And then you can start the installer:
@@ -183,40 +186,6 @@ Slack <https://amusecode.slack.com>`_ or by `making an issue on
183186GitHub <https://github.com/amusecode/amuse/issues/new/choose> `_.
184187
185188
186- Installing from a Git repository
187- ````````````````````````````````
188-
189- If you plan to modify AMUSE or one of the codes in it, then you may want to install from
190- a local git clone instead of from a tar file. This will take more disk space and more
191- download time, so it shouldn't be the first option, but if you want to do it then you
192- can. You'll need to gave `git ` installed:
193-
194- .. code-block :: bash
195-
196- git clone https://github.com/amusecode/amuse.git
197-
198-
199- Then you can enter the source directory using:
200-
201- .. code-block :: bash
202-
203- cd amuse
204-
205-
206- Select a version to build (use either one of these, or whichever version is relevant):
207-
208- .. code-block :: bash
209-
210- git switch main # current development version
211- git checkout checkout v2025.5.0 # tagged release
212-
213- And now you can start the installer as before:
214-
215- .. code-block :: bash
216-
217- ./setup
218-
219-
220189Additional packages
221190```````````````````
222191
@@ -268,17 +237,89 @@ and then you can run it as before using
268237
269238
270239 You should now have a working AMUSE setup. To start
271- using it, see :ref: `Getting started with AMUSE ` or the :ref: `Interactive tutorial `
240+ using it, see :ref: `getting_started_with_amuse ` or the :ref: `interactive_tutorial `
241+
242+
243+ Debugging conda package installation
244+ ````````````````````````````````````
245+
246+ If you encounter problems with installing packages using ``conda ``, or AMUSE doesn't
247+ compile correctly, then you should check that you are using the ``conda-forge `` channel
248+ rather than something else.
249+
250+ Conda can use different sources of packages, which it calls channels. Different channels
251+ contain software packaged by different people, and packages from different channels are
252+ often incompatible. If you type
253+
254+ .. code-block :: bash
255+
256+ conda list
257+
258+
259+ then you should see a list of packages that are installed in the active environment, and
260+ which channel they came from. Ideally, all of them have ``conda-forge `` as the channel.
261+
262+ If not, then you can reinstall the package from ``conda-forge `` and see if that improves
263+ the situation.
264+
265+ To reinstall a package from ``conda-forge ``, use
266+
267+ .. code-block :: bash
268+
269+ conda install -c conda-forge < package name>
270+
271+
272+ If you want to combine AMUSE with another package that isn't available from conda-forge,
273+ then you may have to install that from another channel, and hope that things work. Or
274+ ask the maintainers of that package to add it to conda-forge and be a bit more
275+ compatible with the rest of the world.
272276
273277
274278Alternative installation options
275279================================
276280
277281The above instructions are the easiest way to install AMUSE, and they should work for
278282almost everyone wanting to use AMUSE to do astrophysics. Nevertheless, there may be
279- cases where you need a different setup, for example because you cannot use Conda. In
283+ cases where you need a different setup, for example because you cannot use Conda. In
280284that case, you'll want one of these alternative installations.
281285
286+ .. _installing_from_git :
287+
288+ Installing from a Git repository
289+ --------------------------------
290+
291+ If you plan to modify AMUSE or one of the codes in it, then you may want to install from
292+ a local git clone instead of from a tar file. This will take more disk space and more
293+ download time, so it shouldn't be the first option, but if you want to do it then you
294+ can. You'll need to gave `git ` installed:
295+
296+ .. code-block :: bash
297+
298+ git clone https://github.com/amusecode/amuse.git
299+
300+
301+ Then you can enter the source directory using:
302+
303+ .. code-block :: bash
304+
305+ cd amuse
306+
307+
308+ Select a version to build (use either one of these, or whichever version is relevant):
309+
310+ .. code-block :: bash
311+
312+ git switch main # current development version
313+ git checkout checkout v2025.9.0 # tagged release
314+
315+ And now you can start the installer as before:
316+
317+ .. code-block :: bash
318+
319+ ./setup
320+
321+
322+ .. _using_a_virtualenv :
282323
283324Using a virtualenv
284325------------------
0 commit comments