Skip to content

Instantly share code, notes, and snippets.

@usuallycwdillon
Last active December 14, 2015 04:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save usuallycwdillon/5025926 to your computer and use it in GitHub Desktop.
Save usuallycwdillon/5025926 to your computer and use it in GitHub Desktop.
I had occasion to use ACT-R 6 for a course on cognitive modeling and was disappointed initially to find that ACT-R 6 is not available for GNU/Linux systems. I noticed that the Windows version was running in Clozure Common Lisp, so I installed that on my Linux system and wrote this little bit of bash to open up the GUI environment as well.
#!/bin/sh
# author cdillon2@gmu.edu CW Dillon
#
# Purpose is to execute the steps required to start ACT-R 6 in Linux, complete
# with tcl/tk GUI. It assumes you are using Clozure Common Lisp, aka OpenMCL,
# which is available from http://ccl.clozure.com/
# Install CCL, set the path and saved the script per the instructions. I
# installed CCL to '/etc/ccl' and put the ccl64 script in '~/bin/ccl64' with my
# user (not root) as the new owner (chown ~/bin/ccl64 'username'). Set the
# correct execute permissions on this file and the start up script:
# 'chmod + x ~/bin/ccl64' and 'chmod + x ~bin/myACT-R6.sh'
echo "starting the ACT-R Tcl/Tk GUI..."
# I have my ACT-R saved under a 'Code' directory, where I keep code
cd ~/Code/actr6/environment/GUI/
wish starter.tcl &
echo "While the GUI is loading we want to wait 10 full seconds before calling on
the CCL environment and loading the modified ACT-R startup script..."
sleep 10
# I also saved a new version of the load-act-r-6 file that has an additional
# line to start the environment (start-environment) and saved it as
# load-act-r-6se.lisp and I load it here:
ccl64 -l ~/Code/actr6/load-act-r-6se.lisp
@peebz
Copy link

peebz commented Feb 26, 2013

ACT-R 6 is cross platform and has been available for GNU/Linux for years. If you look in the load-act-r-6.lisp file you'll see one of the systems it is configured for is sbcl. I have found that this has always worked well out of the box for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment