Automatic Installer for 2.4 on Mac OS 10.5 for Intel processors

From WeBWorK_wiki
Revision as of 20:39, 14 April 2010 by Hagedorn (talk | contribs)
Jump to navigation Jump to search

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)

Directions:

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

4. Save the attached script "WebWorkScript.sh" to a directory. Open Terminal and change the directory so that "WebWorkScript.sh" is in your directory.

5. 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."

5b. 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).

adminname="wwadmin";

groupname="wwdata";

to

adminname="youraccountname";

groupname="staff";

(* 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 (found in Applications/Utilities) and typing "ls -l". You should see "youraccountname staff" listed as the owner of your files *)

6. From the Terminal program, run the command ". WebWorkScript.sh" (there should be a space between the period and WebWorkScript.sh") to execute the script.

7. The script is compiling programs and will take about 30 minutes. You'll need to enter your administrator password several times.

8. 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