@@ -50,75 +50,21 @@ Ubuntu users can install NEST via the PPA repository.
5050
5151 sudo apt-get install nest
5252
53- Debian
54- ~~~~~~
55-
56- Debian users can install NEST via the Ubuntu PPA repository.
57-
58- 1. Create a new ``apt `` repository entry in ``/etc/apt/sources.list.d/nest-simulator-ubuntu-nest-XXX.list `` by:
59-
60- .. code-block :: bash
61-
62- sudo apt install devscripts build-essential software-properties-common dpkg-dev
63- sudo add-apt-repository --enable-source ppa:nest-simulator/nest
64-
65- 2. Disable the binary package in the repository file created under ``/etc/apt/sources.list.d/ `` by commenting
66- out the ``deb `` line, while keeping the ``deb-src `` line. It should look similar to this:
53+ Or install NEST with `NESTML <https://nestml.readthedocs.io/en/latest/index.html >`_
6754
6855.. code-block :: bash
6956
70- # deb http://ppa.launchpad.net/nest-simulator/nest/ubuntu focal main
71- deb-src http://ppa.launchpad.net/nest-simulator/nest/ubuntu focal main
57+ sudo apt install nest python3-nestml
58+ python3 -m pip install --upgrade odetoolbox pygsl antlr4-python3-runtime==4.10
7259
73-
74- 3. Import the PPA GPC key and rebuild the package:
60+ 3. Set the environment
7561
7662.. code-block :: bash
7763
78- sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 \
79- --recv-keys 0CF7539642ABD23CBCA8D487F0B8B6C5EC02D7DD
80- sudo apt update
81- sudo apt source --build nest
82-
83- 4. Install any missing dependencies, if ``apt `` tells you so.
84- In addition, install:
85-
86- .. code-block :: bash
64+ source /usr/bin/nest_vars.sh
8765
88- sudo apt install python3-all dh-python
89-
90- 5. After installing the dependencies, enter ``sudo apt source --build nest `` again.
91- When the build finished, look for lines like:
92-
93- .. code-block :: bash
94-
95- dpkg-deb: building package ' nest-dbgsym' in ' ../nest-dbgsym_2.20.0-0~202001311135~ubuntu20.04.1_amd64.deb' .
96- dpkg-deb: building package ' nest' in ' ../nest_2.20.0-0~202001311135~ubuntu20.04.1_amd64.deb' .
97- # dh binary
98- dpkg-genbuildinfo --build=binary
99- dpkg-genchanges --build=binary > ../nest_2.20.0-0~202001311135~ubuntu20.04.1_amd64.changes
100-
101- and note down the full package name. In the above example this would be
102- ``nest_2.20.0-0~202001311135~ubuntu20.04.1_amd64.deb ``, where the number ``202001311135 `` and potentially the
103- Ubuntu version number may be different.
104-
105- 6. Install the ready Debian package after the rebuild:
106-
107- .. code-block :: bash
108-
109- sudo dpkg --install nest-simulator-x.y.z~NUMBER~ubuntu20.04.1_amd64.deb
110-
111- The package name is taken from the result of the previous step. ` NUMBER` and potentially the Ubuntu
112- version might differ.
113-
114- 7. Test the package:
115-
116- .. code-block :: bash
117-
118- python3
119- import nest
66+ --------
12067
121- -------------
12268
12369macOS |macos |
12470-------------
0 commit comments