Here we go.
Installing ACL2s on Mac
(N.B. You need about 9GB of free space on your hard drive to install and run the VM.)
- Install VirtualBox version
6.1.16. This is the VM we will be using to run ACL2s. We have tested on version 6.1.16, but it is possible that other Virtualbox 6.1 releases will also work. (N.B. On recent versions of OSX the installation may fail the first time you try it for lack of sufficient permission.)
a. If you encounter this failure, go to
System Preferences > Security & Privacy > Generaltab and click theallowbutton at the bottom of the screen. This button should have some text to the left of it about Oracle Software. If you can’t click on the button, you may need to unlock the settings (click on the lock icon). You may need to do something similar for any software you install. - Open VirtualBox, and leave it open.
- Download, then install the VirtualBox extensions for your VirtualBox Version. After downloading the file, you have to actually install the extensions. If you click on
Preferences > Extensionsyou will see a green+icon that allows you to add extensions. Select the file you downloaded. - Download, then install Xquartz.
- Open Xquartz and click on
Applications > Terminalto open thextermprogram, and keep it open. Use thisxtermfor all thextermcommands we ask you to perform below. - Install Vagrant version 2.2.10.
- On your machine, create a directory right inside your home folder where you want ACL2s to reside—for instance
acl2s. Make sure there are no spaces in the full directory name or path. (If you do not understand this step so far, read an introduction to basic unix commands, and then return.) Putting this directory on yourDesktopor in yourDocumentsorDownloadsfolders can cause problems with permissions in the latest OSX versions! - Place the following Vagrantfile in that newly-created directory. In your
xterm, rename the file to justVagrantfile. We say to do this in anxtermto make sure-sure that you removed the.txtextension. - In this same newly-created directory, create a sub-directory named
workspace. This will be a synced directory, allowing you to access your ACL2s files outside of the virtual machine. (Read about virtual machines if you do not know what a synced directory is.) Do not enterworkspace, stay in this same directory. -
In the directory we had you create (the one we suggested naming
acl2s) enter the following command (again, in thextermyou have open)vagrant upThis will take a while (perhaps up to ~10 minutes) as your computer downloads a collection of files and creates your virtual machine. Do not close the VirtualBox or move on to the next step until the process is done. You will know the installation finished when that
xtermwhere you ranvagrant upprints your shell prompt again. -
After this finishes, in the same
xtermand in the directory we suggested namingacl2s(NB not the VirtualBox window), start ACL2s by typing the following commands:vagrant ssh -- -Y eclipseIf you get errors about not being able to set the display try restarting
Xquartzand using a newxterm. This error may occur when you change wireless networks and those steps can often resolve it. If that fails, you can consider using the Startx Option. - Make sure that you choose the default workspace location so that the aforementioned synced directories.
- When you close the
VirtualBoxmachine choose thePower off machineoption. You have other options, but this is the most robust. - To restart ACL2s later follow the instructions above starting with the
vagrant upstep.
Startx Option
This is optional, but potentially useful if you have persistent display problems with vagrant ssh. After following the above installion instructions, to run ACL2s inside the VM you would
- Open an xterm.
- Go to the directory we suggested naming
acl2s. - Change the line
vb.gui = falsein yourVagrantfiletovb.gui = true. Save. - Then run
vagrant destroyand thenvagrant up. -
Log into the VirtualBox VM window.
login: vagrant password: vagrantIf the text in the VM is very small, you can change the scaling of the virtual screen (View -> Virtual Screen 1 -> 200% (or whatever value you want)). You can also use the VirtualBox menu,
Machine > Settingsto change display settings. -
After logging in, at the command line type
startxfce4This will open up a window manager (i.e. “GUI”)
- Click on
eclipse.shon your desktop. - Make sure that you choose the default workspace location so that the synced directories work mentioned above work.
- When you close the VirtualBox machine choose the
Power off machineoption. You have other options, but this is the most robust.