If oslc and oslinfo do not have rwxrwxrwx
permissions execute the following commands.

sudo -s
enter your password
chmod 777 oslc
chmod 777 oslinfo

Step 3: Setting Up Cutter

3.1 Make sure you are using Cutter version 7.8.1 or higher.
3.2 Open the Osl prefs panel (Edit->Show Preferences->Languages->Osl).

Figure 1

Make sure the solidangle bin path, the source and the shaders
have been set correctly. Select the SolidAngle Arnold button.
This will ensure the keyboard shortcut Alt + e, Control + e
or Apple + c will compile a shader when editing a .osl document.
3.3 Click the Save Osl button.

Step 4: Compiling a Shader

4.1 From the Templates menu choose Osl->uv2color.osl.

Figure 2

4.2 Save it as uv2color.osl in the maya/projects/Arnold_osl/src directory.
4.3 Use the keyboard shortcut Alt + e, Control + e or Apple + e to compile the shader.
4.4 Make sure the shader has been compiled to the correct directory.

Figure 3

If compilation has been successful the maya/projects/Arnold_osl directory will contain two files,
uv2color.oso (the compiled shader)
and uv2color.mtd (an Arnold metadata file).

Step 5: Using a Shader

4.1 Launch Maya 2018, open Hypershade and look for uv2color in the Arnold/Utility directory.