MyroC Installation and Comments for Mac OS X
Materials to Support a C-based Course with Scribbler 2 Robots
Using MyroC in a Mac OS X environment requires initial, one-time only setup. Thereafter, programming follows a traditional edit-compile-run cycle.
The main online site for the MyroC infrastructure, instructions, documentation, and commentary may be found at http://www.cs.grinnell.edu/~walker/MyroC/.
All MyroC software is distributed without warranty.
MyroC software is licensed under the Creative Commons Attribution-Noncommercial-Share Alike 4.0 International License. According to this license, you are free to share (copy and redistribute) and adapt (modify or expand) the MyroC infrastructure, provided
Additional License details may be found at http://creativecommons.org/licenses/by-nc-sa/4.0/ .
Use the development MyroC release, MyroC.3.1, when working with Mac OS X.
Set up proceeds in two main steps:
Working with C programs utilizing MyroC involves a traditional edit-compile-run cycle.
Open a Terminal window: Much work is most conveniently done within a Terminal window. Within the Apple Finder, click on Applications, scroll down to Utilities, and the double-click on Terminal.app.
Create a project directory: Using the Apple Finder, create a directory for your C programs. Then, within a Terminal window, use cd commands to move level-by-level to the project directory.
Establish a Makefile: Copy the Makefile from the test-programs directory created during MyroC installation and testing.
Be sure the Makefile comes from test-programs, not the directory containing the MyroC code that was compiled and installed!
Creating and Editing a C Program: Use any editor to create and edit a file containing your C program, provided the created file is simple-text only. Do not save the program in .rtf, .pages, or other formatted format!
Compiling the Program: Once creating the program, save in the project directory (the one with the Makefile, and compile with the command
When using make, reference the program name, without the ".c" at the end. For example, to compile prog.c, type make prog
Running the Program: Run the program by typing its name (without the .c) in the Terminal window.
Contact Henry M. Walker, if/when you encounter difficulties or if you have suggestions.