Automatic Installer for 2.4 on Mac OS 10.5 for Intel processors
This feature was deprecated in version 2.6. For up-to-date information view Github. 9
See also: History of WeBWorK version control
The script installs a personal copy of WeBWorK 2.4 to run on an Apple computer running Mac OS 10.5 (it may or may not work on OS 10.6). It is not designed to install WeBWorK on a server that will run a school's WeBWorK installation. It also assumes that you will only be running one version of Apache and MySQL at a time. -Tom Hagedorn (hagedorn at tcnj.edu)
You will need to have a user account with administrator permissions to run the script successfully.
1. Download and install the XCode3 developer tools from Apple.
2. Install X11 (if not already installed).
3. Download and install the most recent version of MacPorts (currently, it's 1.8.2). Macports is a project aimed to facilitate the installation of unix/linux software on the Mac. The website is www.macports.org. Disk .dmg images are available at http://www.macports.org/install.php
3a. (Mike Gage) If you are updating from an earlier ports version (or MacOS) read http://trac.macports.org/wiki/Migration as well.
4. Save the attached script "WebWorkScript.sh" to a directory. Note which directory you save the script to. It may be easiest to save it to the desktop.
5. Open the Terminal program (found in Applications/Utilities) and change the directory (using the cd command) so that "WebWorKScript.sh" is in your directory. If you saved the script to the desktop, then you'll just run the command "cd" and then the command "cd Desktop". Typing "ls" will give you the contents of the directory, which should contain the WeBWorKScript.sh script.
6. Decide on account and group names for WeBWorK. The defaults are:
account name = wwadmin
group name = wwdata
If you use these names, you need to goto "Account" under "System Preferences" (under the apple in the upper left corner) and create an account named "wwadmin" (with administrator privileges) and a group name called "wwdata". After creating "wwdata", please make sure that the group contains the "wwadmin" account by clicking on "wwadmin."
6b. Alternatively, you could run WeBWorK in your own account and use the default group name. In which case, edit the lines (at the top of the Master_Script.sh file).
(* Note: "staff" is the usual default group name for a user-account. You can check that this is correct on your machine by opening the Terminal program and typing "ls -l". You should see "youraccountname staff" listed as the owner of your files *)
7. From the Terminal program, run the command ". WebWorkScript.sh" (there should be a space between the period and WebWorkScript.sh") to execute the script.
8. The script is compiling programs and will take about 30 minutes. You'll need to enter your administrator password several times.
9. WeBWorK should then run by opening a browser and typing in "localhost/webwork2" or the address "127.0.0.1/webwork2" in your browser. If that doesn't bring up the course administrator menu, then try "http://127.0.0.1" (if this works, then the apache installation is working fine, but something didn't work with the WeBWorK installation.)
Here is the link to the file to download: http://www.tcnj.edu/~hagedorn/WeBWorKScript.sh