From 6e98e9849f1e93e60929b5d976b5d33697528e00 Mon Sep 17 00:00:00 2001 From: Willi Mutschler <willi@mutschler.eu> Date: Wed, 27 Sep 2023 12:12:39 +0200 Subject: [PATCH] macOS installer: add instructions if /Applications/Dynare is owned by root --- .../source/installation-and-configuration.rst | 7 ++++++- macOS/welcome_template.html | 18 ++++++++++++++++-- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/doc/manual/source/installation-and-configuration.rst b/doc/manual/source/installation-and-configuration.rst index c8befab7e2..b2134fbe97 100644 --- a/doc/manual/source/installation-and-configuration.rst +++ b/doc/manual/source/installation-and-configuration.rst @@ -195,7 +195,12 @@ We recommend making use of optimized compilation flags when using :opt:`use_dll` If you already have installed GCC, Dynare will automatically prefer it for :opt:`use_dll` if the binaries are in /usr/local/bin. Otherwise, it will fall back to Clang in /usr/bin/clang. - + +In versions prior to 5.5, the macOS pkg installer required administrative rights to install Dynare, this is no longer the case. +However, if you aim to install Dynare in ``/Applications/Dynare``, you will need to modify the ownership of this folder. +To do this, execute the following command:: + sudo chown -R $USER:staff /Applications/Dynare + With Octave ^^^^^^^^^^^ diff --git a/macOS/welcome_template.html b/macOS/welcome_template.html index 113c2fce46..f8b531b4c9 100644 --- a/macOS/welcome_template.html +++ b/macOS/welcome_template.html @@ -10,6 +10,13 @@ .bold-text { font-weight: bold; } + code { + font-family: "Courier New", Courier, monospace; + background-color: #f9f9f9; + border: 1px solid #ccc; + padding: 2px 4px; + border-radius: 4px; + } </style> </head> @@ -21,8 +28,15 @@ </header> <main> - <p>If you need to change the path of the installation, click <strong>Customize</strong> after agreeing to the license and on the folder below <strong>Location</strong>.</p> - <p>Please read the <strong>Postinstallation Recommendations</strong> at the end of the installation process on how to (optionally) install Xcode Command Line Tools and gcc-GCC_VERSION via Homebrew.</p> + <p>If you wish to modify the installation path, click <strong>Customize</strong> after accepting the license. Then, under <strong>Location</strong>, select your desired folder.</p> + <p>Upon completing the installation, please review the <strong>Recommendations</strong> section for guidance on the optional installation of Xcode Command Line Tools and GCC via Homebrew.</p> + <p class="bold-text">Troubleshooting installing in /Applications/Dynare</p> + <p>In versions prior to 5.5, the macOS pkg installer required administrative rights to install Dynare, this is no longer the case. However, if you aim to install Dynare in /Applications/Dynare, you will need to modify the ownership of this folder. To do this, execute the following command in Terminal.app:</p> + <code> + sudo chown -R $USER:staff /Applications/Dynare + </code> + <p>Alternatively, install Dynare in a different folder or simply delete (or move) /Applications/Dynare before installing Dynare.</p> </main> + </body> </html> \ No newline at end of file -- GitLab