1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521
|
(in-package "ACL2S")
(include-book "xdoc/top" :dir :system)
(defxdoc acl2s-installation
:parents (acl2::acl2-sedan)
:short "Describes how to install ACL2s"
:long
"
<h3>Installing ACL2s</h3>
<p>
For specific instructions on how to install ACL2s on your computer,
please select the appropriate topic below:
</p>
<ul>
<li>@(see acl2s-installation-windows)</li>
<li>@(see acl2s-installation-macos)</li>
<li>@(see acl2s-installation-linux)</li>
</ul>
<p>
For instructions on how to update an existing ACL2s installation,
please select the appropriate topic below:
</p>
<ul>
<li>@(see acl2s-updating-windows)</li>
<li>@(see acl2s-updating-macos-or-linux)</li>
</ul>
")
(defxdoc acl2s-installation-windows
:parents (acl2s-installation)
:short "Installation instructions for ACL2s on Windows"
:long
"
<h3>Description</h3>
<p>
To run ACL2s on Windows, we will use
<a href=\"https://docs.microsoft.com/en-us/windows/wsl/about\">WSL
(the Windows Subsystem for Linux)</a>. This allows us to run the
Linux version of Eclipse and ACL2s on Windows machines.
</p>
<p>
If you run into any issues, check out the @(see acl2s-installation-faq)
topic.
</p>
<h3>Requirements</h3>
<ul>
<li>at least 8GB of free hard drive space</li>
<li>at least 4GB of RAM</li>
<li>Windows 10 version 21H1 or greater. Windows 11 will also work.</li>
</ul>
<p>
Installation should take less than an hour, though installation time
will depend on your computer's specs and on the speed of your internet
connection. You can use your computer while the installation is
occurring.
</p>
<h3>Installing using the installer</h3>
<p>
The easiest way to install ACL2s on Windows is to use the installer.
</p>
<p>A video walking through installation is available
<a href=\"https://youtu.be/Pwf2GWGBTD0\" target=\"_blank\">here for Windows 10</a> and
<a href=\"https://youtu.be/aunZ1K5BIrg\" target=\"_blank\">here for Windows 11</a>.
</p>
<ol>
<li><b>If you are on Windows 11:</b> Download the installer <a href=\"https://github.com/acl2s/homebrew-acl2s/releases/download/acl2s-0.1.14/ACL2sInstallerWin11.exe\">from here</a>.</li>
<li><b>If you are on Windows 10:</b> Download the installer <a href=\"https://github.com/acl2s/homebrew-acl2s/releases/download/acl2s-0.1.14/ACL2sInstallerWin10.exe\">from here</a>.</li>
<li>Double click on the installer and allow the installer to run if Windows asks.</li>
<li>Follow the steps that the installer specifies. If you don't have
VcXsrv installed and you are on Windows 10, the installer will ask you
whether you would like it to automatically download and install it for
you. You should do so and follow VcXsrv's installer as well,
remembering to click \"close\" inside VcXsrv's installer when that
installation is done. Windows 11 users don't need to install VcXsrv.</li>
<li>Note that the installer will show a window that says \"Importing WSL distribution file, this may take a while...\" at some point during installation. <b>This step may take between 5 and 30 minutes depending on your machine.</b> Disabling any virus scanners may significantly speed this up.</li>
<li>Create a folder for your CS2800 files on your @('C:') drive.
<ol>
<li>Open File Explorer, select \"This PC\" on the left, double click
on \"Local Disk (C:)\", right-click on an empty area inside of
that folder, and select \"New Folder\". Name the folder whatever
you would like.</li>
</ol>
</li>
<li>Run ACL2s
<ol>
<li>Run ACL2s, by searching for and running \"Start ACL2s\" in the Windows start menu.</li>
<li>When Eclipse asks for a workspace, enter @('/mnt/c/<FOLDER>'),
where @('<FOLDER>') should be replaced with the name of the folder
that you just created.</li>
</ol>
</li>
</ol>
<h3>Manual install instructions</h3>
<p>
You almost certainly don't want to install ACL2s this way, but we provide instructions in case
you are in a particular situation that precludes the use of the above installer.
</p>
<ol>
<li>Install WSL
<ol>
<li>Open an administrator terminal (either CMD or Powershell). This
can be done by opening the Windows menu at the bottom left hand
side of the screen and searching for @('cmd'). Then, right click
on the \"Command Prompt\" item and select \"Run as administrator\".</li>
<li>Run @('dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart')</li>
<li>Run @('dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart')</li>
<li>Restart your computer. <b>Select \"Update and Restart\" in the power menu if it appears.</b></li>
<li>Reopen an administrator terminal as you did previously and run @('wsl --update')</li>
</ol>
</li>
<li>Download and set up the ACL2s WSL image
<ol>
<li>Download <a href=\"https://github.com/acl2s/homebrew-acl2s/releases/download/acl2s-0.1.14/distro.tar.gz\">distro.tar.gz</a> to your Downloads folder.</li>
<li>Open up a new <b>non-admininistrator</b> terminal by opening the Windows
menu at the bottom left hand side of the screen and searching for
@('cmd').
</li>
<li>Run @('mkdir C:\\wslDistroStorage')</li>
<li>Run @('wsl --import acl2s C:\\wslDistroStorage\\acl2s Downloads\\distro.tar.gz'). <b>Note that this may take a while, somewhere between 5 and 15 minutes</b>. Disabling any virus scanners may significantly speed this up.</li>
<li>Run @('wsl -d acl2s') and confirm that you get some output (e.g. not a blank line). If so, you can close the terminal. Note that this may take some time and you may see some errors about @('DISPLAY') first.</li>
</ol>
</li>
<li>Install VcXsrv and launch it
<ol>
<li>Download the installer
<a href=\"https://sourceforge.net/projects/vcxsrv/files/vcxsrv/1.20.14.0/vcxsrv.1.20.14.0.installer.exe/download\"><b>here</b></a>
and run it.</li>
<li>At the end of the installation process, uncheck the option to launch
VcXsrv after the installation is complete.</li>
<li>Download our VcXsrv launch profile
<a href=\"https://github.com/acl2s/homebrew-acl2s/releases/download/acl2s-0.1.8/acl2s-vcxsrv.xlaunch\"><b>here</b></a>
and put it somewhere memorable. <b>You may need to right-click on
the link and select \"Save As...\" if your browser doesn't
download it automatically.</b></li>
<li>Double click on our VcXsrv launch profile to start VcXsrv. If
Windows asks you which networks you want to allow VcXsrv to
access, make sure you allow it to access both private and
public networks.<b>Note that double clicking on acl2s-vcxsrv.xlaunch
will not open a new window.</b> It will add an item to the system
tray on the right-hand side of the task bar, and you may need to click
on the up caret (^) to see it.</li>
</ol>
</li>
<li>Create a folder for your CS2800 files on your @('C:') drive
<ol>
<li>Open File Explorer, select \"This PC\" on the left, double click
on \"Local Disk (C:)\", right-click on an empty area inside of
that folder, and select \"New Folder\". Name the folder whatever
you would like.</li>
</ol>
</li>
<li>Run Eclipse
<ol>
<li>Download <a href=\"https://github.com/acl2s/homebrew-acl2s/releases/download/acl2s-0.1.8/run-acl2s-manual.bat\">run-acl2s-manual.bat</a> and save it somewhere memorable. Note that depending on your browser, you might get a warning when you download this file, but you should click \"Keep\" or \"Download Anyways\".</li>
<li>Double click on @('run-acl2s.bat') to launch a WSL terminal and Eclipse. A window titled \"Windows protected your PC\" may appear. If so, click on \"More info\" and then \"Run anyways\" at the bottom of the window.</li>
<li>When Eclipse asks for a workspace, enter @('/mnt/c/<FOLDER>'),
where @('<FOLDER>') should be replaced with the name of the folder
that you just created.</li>
</ol>
</li>
<li>Get started with Eclipse by working through the @(see acl2s-tutorial). </li>
</ol>
")
(defxdoc acl2s-installation-macos
:parents (acl2s-installation)
:short "Installation instructions for ACL2s on macOS"
:long
"
<h3 id=\"requirements\">Requirements</h3>
<ul>
<li>at least 5GB of free hard drive space</li>
<li>at least 4GB of RAM</li>
<li>macOS Monterey (12), Ventura (13), or Sonoma (14) on a Mac with an Intel processor, or macOS Ventura (13) or Sonoma (14) on a Mac with an M1/M2 processor</li>
</ul>
<p>Installation should take less than an hour, though installation time
will depend on your computer's specs and on the speed of your internet
connection. You can use your computer while the installation is
occurring.</p>
<p>
If you run into any issues, check out the @(see acl2s-installation-faq)
topic.
</p>
<h3 id=\"instructions\">Instructions</h3>
<p>A video walking through installation is available
<a href=\"https://youtu.be/X21cDY06X8E\" target=\"_blank\">here</a>.</p>
<ol>
<li>Determine if your Mac uses an M1/M2 processor and check your macOS version<ol>
<li>Click on the Apple icon at the top left of the screen and
select \"About This Mac\". On the screen that pops up, check the
text next to \"Processor\" or \"Chip\". If the text includes
\"Apple\", you have an M1/M2 processor in your Mac. Otherwise, if
the text includes \"Intel\", you have an x86 Mac.</li>
<li>In the \"About This Mac\" window, double check that you are
running one of \"macOS Monterey\", \"macOS Ventura\", or \"macOS
Sonoma\". If you are using a different version
of macOS, you may need to build the ACL2s package from scratch on your
machine, which will take some time.</li></ol></li>
<li>Install Homebrew<ol>
<li>Open the Terminal app, either by searching for it or via
opening Finder and selecting Go -> Utilities in the menu bar,
and opening Terminal in that folder.</li>
<li>Go to <a href=\"https://brew.sh\">brew.sh</a> and copy-paste the
command starting with @('/bin/bash') on the top of that page
into a Terminal window, then press enter. You only need to run that
single command, and can safely ignore the other instructions on
Homebrew's website. You may need to enter your password one or more
times throughout the process. If the installer tells you that you'll
need to add a line to your @('.zprofile') file, you should follow the
instructions it provides to do this. </li>
</ol></li>
<li>Tap and install ACL2s<ol>
<li>Run @({brew tap acl2s/acl2s}) and then @({brew install acl2s/acl2s/acl2s --force-bottle}) inside of Terminal.</li>
<li><b>Note:</b> if the above command fails with an error like @('--force-bottle passed but acl2s/acl2s/acl2s has no bottle!'),
then your macOS version is probably older than our supported version for your processor.
If you can update your macOS version, you should do so. If you cannot update
or do not wish to, please follow the instructions in the first entry of the
macOS FAQ section of @(see acl2s-installation-faq).
</li>
<li><b>Note:</b> if you get @('command not found') when running @('brew'),
you likely missed the instructions that the installer printed out when
installing Homebrew. Run the following commend to resolve this:
@({echo 'eval $(/opt/homebrew/bin/brew shellenv)' >> $HOME/.zprofile && source $HOME/.zprofile})
</li>
</ol></li>
<li>Install Java<ol>
<li>Download and install Java 17 or 18. The easiest way to do this is to go to <a href=\"https://www.oracle.com/java/technologies/downloads/#jdk17-mac\">this link</a>
and download either the Arm64 DMG installer (if you are on a M1/M2
Mac) or the x64 DMG installer. Then, open the DMG and run the
installer inside of it.</li></ol></li>
<li>Install Eclipse<ol>
<li>Download the Eclipse version appropriate for your machine: <a href=\"https://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/2024-06/R/eclipse-java-2024-06-R-macosx-cocoa-aarch64.dmg&r=1\">M1/M2
Mac</a>
or <a href=\"https://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/2024-06/R/eclipse-java-2024-06-R-macosx-cocoa-x86_64.dmg&r=1\">x86
Mac</a>.</li>
<li>Open the downloaded file and click and drag the Eclipse icon
into your Applications folder.</li>
<li><b>If you already have Eclipse installed</b>, you should still
install the version of Eclipse we provide here. If you need your
existing Eclipse install for another class, you can install Eclipse
for this class by dragging the Eclipse icon into a different folder
(for example, a folder on your Desktop) rather than Applications.</li>
</ol></li>
<li>Install the ACL2s Eclipse Plugin<ol>
<li>Open Eclipse, either by searching for it or via opening Finder
and selecting Go → Applications in the menu bar, and opening
Eclipse in that folder.</li>
<li>Select the folder that you want to keep all of your CS2800 ACL2
files in. You can use the default choice if you like. You may
also want to check the box that says \"Use this as the default
and do not ask again\". Then, click \"Launch\".</li>
<li>In the menu bar, click on Help → Install New Software...</li>
<li>Click on \"Add...\" in the screen that comes up. In the resulting
window, enter @('ACL2s') next to \"Name:\" and
@('https://cs2800.atwalter.com/p2') next to \"Location\". Then, click
\"Add\", which will close the pop-up.</li>
<li>The middle of the window should now show \"ACL2s Plugin Update
Site\". Click on the checkbox to the left of it as well as the
\"Handproof\" item and click \"Next>\" at the bottom of the
window.</li>
<li>In the next window, click \"Finish\" at the bottom right of the
screen. If a pop-up appears that says \"Trust\" at the top and has two entries in a table at the top, click \"Select All\" and then \"Trust Selected\" at the bottom.</li>
<li>After the installation is complete, Eclipse will ask you if you
would like to restart Eclipse. Select \"Restart
Now\". This will close Eclipse and reopen it.</li></ol></li>
<li>Re-sign the Eclipse app<ul>
<li>After installing or updating the ACL2s Eclipse plugin or any other plugin
in Eclipse and rebooting your computer, you may get a popup saying \"The
application \"Eclipse\" can't be opened.\" the next time you open up Eclipse.
To avoid this issue, or to fix it if it has already occurred, you should do the following:
</li>
<li>Run the following command in Terminal:
@({sudo codesign --force --deep --sign - /Applications/Eclipse.app})
Replace @('/Applications/Eclipse.app') with the appropriate path to your
Eclipse installation if you happened to move it or rename it.
</li>
<li>You may need to repeat the above command in the future if you run into the
same issue again, regardless of whether or not you perform a plugin update.
For more information about why this occurs, see
<a href=\"https://bugs.eclipse.org/bugs/show_bug.cgi?id=494293\">this Eclipse issue</a>.
</li>
</ul>
</li>
<li>Get started with Eclipse by working through the @(see acl2s-tutorial). </li>
</ol>
")
(defxdoc acl2s-installation-linux
:parents (acl2s-installation)
:short "Installation instructions for ACL2s on Linux"
:long
"
<h3 id=\"requirements\">Requirements</h3>
<ul>
<li>At least 5GB of free hard drive space</li>
<li>At least 4GB of RAM</li>
<li>An Intel or AMD processor</li>
</ul>
<h3 id=\"instructions\">Instructions</h3>
<p>A video walking through installation is available
<a href=\"https://youtu.be/FVgDt0gHTTw\" target=\"_blank\">here</a>.
These instructions are known to work on Ubuntu 24.04, and may work on
other platforms as well. If you run into any issues, feel free to
reach out to Cassidy.</p>
<ol>
<li>Ensure the following software is installed on your machine. If not,
install using your Linux distribution's package manager.<ul>
<li>Java 17 or greater (OpenJDK is fine too) (@('openjdk-17-jre') or newer on Ubuntu)</li>
<li>@('git')</li>
<li>@('curl')</li>
<li>@('procps')</li>
<li>@('file')</li>
<li>\"Development tools\" (@('build-essential') on Ubuntu)</li></ul><ol>
<li>If you are on an older version of Ubuntu, you may need to install @('libswt-gtk-4-jni') and @('xutils-dev') as well.</li></ol></li>
<li>Install Homebrew<ol>
<li>Go to <a href=\"https://brew.sh\">brew.sh</a> and copy-paste the
command starting with @('/bin/bash') on the top of that page
into a terminal shell, then press enter. You only need to run that
single command, and can safely ignore the other instructions on
Homebrew's website. You may need to enter your password one or more
times throughout the process.</li>
</ol></li>
<li>Tap and install ACL2s<ol>
<li>Run <code>brew tap acl2s/acl2s</code> and then <code>brew install acl2s/acl2s/acl2s --force-bottle</code> inside of a terminal. <b>Do not</b> follow any of Homebrew's suggestions regarding installing @('gcc').</li></ol></li>
<li>Install Eclipse<ol>
<li>Download <a href=\"https://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/2024-06/R/eclipse-java-2024-06-R-linux-gtk-x86_64.tar.gz&r=1\">Eclipse</a> and unpack it somewhere on your computer.</li>
<li>Run Eclipse by running <code>./eclipse/eclipse</code> from the directory
that you unpacked the Eclipse package inside of.</li>
<li>In the menu bar, click on Help → Install New Software...</li>
<li>Click on \"Add...\" in the screen that comes up. In the resulting
window, enter @('ACL2s') next to \"Name:\" and
@('https://cs2800.atwalter.com/p2') next to \"Location\". Then, click
\"Add\", which will close the pop-up.</li>
<li>The middle of the window should now show \"ACL2s Plugin Update
Site\". Click on the checkbox to the left of it as well as the
\"Handproof\" item and click \"Next>\" at the bottom of the window.</li>
<li>In the next window, click \"Finish\" at the bottom right of the
screen. If a pop-up appears that says \"Trust\" at the top and has two entries in a table at the top, click \"Select All\" and then \"Trust Selected\" at the bottom.</li>
<li>After the installation is complete, Eclipse will ask you if you
would like to restart Eclipse. Select \"Restart
Now\". This will close Eclipse and reopen it.</li>
</ol></li>
<li>Get started with Eclipse by working through the @(see acl2s-tutorial). </li>
</ol>
")
(defxdoc acl2s-installation-faq
:parents (acl2s-installation)
:short "FAQ related to ACL2s installation"
:long
"
<h3>FAQ</h3>
If you are running into a problem on Windows that is not covered by
the below FAQ items, please try removing your WSL acl2s installation
and going back through the instructions, ensuring that the output that
you see matches that shown in the installation video linked to in the
installation instructions. <b>Note that this will remove all of the
data in the WSL installation, so be sure to backup any files inside it
that you want to keep.</b> You can remove your WSL Ubuntu installation
by running <code>wsl --unregister acl2s</code>. Then, follow the
installation instructions as normal, except that you do not need to
reinstall Xming if you already have it installed.
<h4>General FAQ</h4>
<ul class=\"morespace\">
<li><span class=\"question\">I already have a version of Eclipse installed for another
class, can I use that?</span><br/> We do not support using an
existing Eclipse installation. If you are using Windows, the
version of Eclipse that we install will be kept separate from
Eclipse that is installed directly on Windows (which is the
typical configuration). If you are using macOS, then when
installing Eclipse, you can drag and drop it to a different
location than your existing Eclipse installation (for example,
install Eclipse into a folder on your Desktop instead of to
Applications). These two Eclipses will coexist peacefully, and
will not interfere with each other.
</li>
</ul>
<h4>Windows FAQ</h4>
<ul class=\"morespace\">
<li><span class=\"question\"> Double-clicking on @('run-acl2s.bat')
doesn't open a window, or just
sits there forever without opening a window!</span><br/> Ensure
that Xming is open and running (check your system tray by
clicking on the ^ button on the bottom right corner of your
screen). If it is, try exiting it (by right-clicking on the X
icon and selecting \"Exit\") and reopening it by running the
ACL2sXming xlaunch file. If that does not work, then ensure that
Xming has permissions to use both private and public
networks. You can do this by opening the Windows menu and
searching for \"Allow an app through Windows Firewall\". In the
window that comes up, scroll down to \"Xming X Server\" and ensure
that the checkbox to the left of it and the two checkboxes to
the right of it are all checked. You may need to click on the
\"Change settings\" button at the top right of the window to be
able to check the boxes.
</li>
<li><span class=\"question\">Double-clicking on the ACL2sXming file doesn't do
anything!</span><br/> If you have no other issues, this is
OK. Double-clicking on the file will add an icon to your system
tray (click on the ^ button near the bottom-right corner of your
screen), but will not open a new window. If you are having
problems, or if no X icon is added to your system tray, try
downloading the ACL2sXming xlaunch file again, by right-clicking
on the \"here\" link in the Windows installation instructions and
choosing \"Save Link As...\".
</li>
<li><span class=\"question\">When I try to start a session, Eclipse tells me that an error
occurred and that it could not start a session!</span><br/>Ensure that
you ran the wsl.sh script as a non-root user (see the Windows
install instructions for more information)
</li>
<li><span class=\"question\">In Windows, I can't find the folder that
corresponds to my Eclipse workspace!</span><br/>
<ol>
<li>Get the workspace path you chose for Eclipse (File → Switch
Workspace → Other in Eclipse, and the path there will be
whatever workspace you are currently using), which should look
something like <code>/mnt/c/...</code>.</li>
<li>Take that path and replace the @('/mnt/c/')
with @('C:\\'), and replace all forward
slashes @('/') with back-slashes @('\\').</li>
<li>Open the Windows run dialog (Windows key + R) and enter the
updated path, and then press enter.</li>
</ol>
This will open the Windows folder that corresponds to your Eclipse
workspace. You can then create a shortcut to this folder so it is
easier to get to next time.
</li>
<li><span class=\"question\">@('wsl') works in an administrator terminal
but not in a non-administrator one!</span><br/>
Check that @('C:\\Windows\\system32') is in your Windows PATH. See
<a href=\"https://www.architectryan.com/2018/03/17/add-to-the-path-on-windows-10/\">this page</a>
for instructions on how to do this. Note that you may need to restart
your computer after you modify your PATH for Windows to pick it up.
</li>
</ul>
<h4>macOS FAQ</h4>
<ul class=\"morespace\">
<li><span class=\"question\">When I run <code>brew install acl2s/acl2s/acl2s --force-bottle</code>
, Homebrew tells me there is no bottle available!</span><br/> If
you are on a M1/M2 Mac and you are not running macOS Ventura, you
can either update to macOS Ventura and re-run the command, or you
can build ACL2s from scratch, which will take a fair amount of
time (at least an hour). To build ACL2s from scratch, run
<code>brew install acl2s/acl2s/acl2s</code>.<br/>If you are on an Intel Mac and
are running macOS Catalina or earlier, you can either update to
macOS Big Sur or later (if that is supported on your computer),
or build ACL2s from scratch using the instructions above.
</li>
<li><span class=\"question\">Eclipse is using the dark theme, and I can't read any of the
text!</span><br/>Go to Eclipse → Preferences → General → Appearance
and select \"Light\" in the dropdown next to \"Theme\".</li>
<li><span class=\"question\">When I try to start a session, Eclipse tells me that an error
occurred and that it could not start a session!</span><br/>Ensure that
the <code>brew install acl2s/acl2s/acl2s --force-bottle</code> command
succeeded. Try running it again to ensure that it worked.
</li>
<li><span class=\"question\">When I try to run any of the brew commands, I get a message
saying \"command not found: brew\".</span><br/> When you install
brew, it sometimes will print out a message saying \"Run these
two commands in your terminal to add Homebrew to your PATH\". If
you don't run the two commands, Homebrew will not function
correctly. Assuming you are on a M1/M2 Mac, try running the command
<code>echo 'eval $(/opt/homebrew/bin/brew shellenv)' >> ~/.zprofile</code>
and opening a new Terminal window.
</li>
<li><span class=\"question\">When I double click on the Eclipse application, nothing happens!</span><br/>Ensure that you have Java installed. To check, open
Terminal (e.g. by searching for it in Spotlight) and run @('java -version'). If
a version number is printed, you have Java installed.
</li>
<li><span class=\"question\">When I double click on the Eclipse application, an error window opens that includes the text @('Code Signature Invalid') or @('The application cannot be opened')!</span><br/>
This often occurs after installing or updating an Eclipse plugin and then rebooting your computer. The fix is to run the following command:
@({codesign --force --deep --sign - /Applications/Eclipse.app})
If you have installed Eclipse in a different location or with a different name, you should replace @('/Applications/Eclipse.app') with the path to the appropriate
@('.app') file. For more information about why this occurs, see <a href=\"https://bugs.eclipse.org/bugs/show_bug.cgi?id=494293\">this Eclipse issue</a>.
</li>
</ul>
")
(defxdoc acl2s-updating-windows
:parents (acl2s-installation)
:short "Update instructions for ACL2s on Windows"
:long
"
<ol>
<li>Open up an unprivileged PowerShell or Command Prompt instance (e.g. by searching for PowerShell in the start menu and clicking on the PowerShell search result) and run @('wsl -d acl2s -e /bin/bash --noprofile -c \"/home/linuxbrew/.linuxbrew/bin/brew update && /home/linuxbrew/.linuxbrew/bin/brew upgrade acl2s\"'). If this fails with an error message like \"There is no distribution with the supplied name\", try running that command in a privileged PowerShell or Command Prompt (e.g. by searching for PowerShell in the start menu, right clicking the appropriate search result, and selecting <b>Run as administrator</b>).</li>
<li>After this command completes and returns you to the normal PowerShell/Command Prompt prompt, you can then close the PowerShell or Command Prompt window that you opened up.</li>
<li>Follow the @(see acl2s-updating-macos-or-linux) instructions, starting from Step 2.</li>
</ol>
")
(defxdoc acl2s-updating-macos-or-linux
:parents (acl2s-installation)
:short "Update instructions for ACL2s on macOS or Linux"
:long
"
<ol>
<li>Inside of a terminal: run @('brew update && brew upgrade acl2s')</li>
<li>Inside of Eclipse: go to <b>Help</b> | <b>Check for Updates</b>. This will take some time to download some information about updates before showing a list of available updates. After some time, a window should pop up that looks like the following:<br/><img src=\"res/acl2s/updating/available-updates.png\"/></li>
<li>Click on <b>Next</b> and then <b>Finish</b></li>
<li>After some time, a window may pop up asking if you want to trust unsigned content. Check the checkbox to the left of <b>Unsigned</b> in that window and then click <b>Trust Selected</b> as shown below. <img src=\"res/acl2s/updating/trust.png\"/></li>
<li>Eventually the installation will complete and Eclipse will tell you that it must be restarted for the updates to take effect. Agree to restart Eclipse (after saving any files that you might be working on).</li>
</ol>
")
|