Getting an HP Color LaserJet CP1215 working on a Mac
Introduction
Installation
Color Management
Uninstall
– Updates –
07/19/2010: On the advice of a commenter, added an additional keystroke to the $PATH section for Mac OS 10.4.x that solves the mystery of why some were getting “Ghostscript not installed” errors even after following the instructions.
12/31/2009: Added a section on uninstalling the drivers.
11/23/2009: Added a section detailing how to get around some errors people have been encountering during the process.
09/27/2009: After numerous reports of no printing, I tracked the problem to the new version of the drivers. Updated link to old version until compatibility can be worked out. Added boldface to the code bits to help differentiate them better, and added a donation button for fun and profit.
09/21/2009: Changed some information about downloading XCode, depending on your OS version.
09/07/2009: I received Snow Leopard, and the printer works fine after upgrading. Once I finish downloading XCode for Snow Leopard, I’ll redo the installation process and see if anything has changed.
02/11/2009: A new version of one of the software installs used here causes some printing problems, so I’ve updated to link to the last working version. I’ve also enabled comment RSS, so you can subscribe if you have a question instead of having to check back here to see if I’ve answered.
02/01/2009: I’ve added another section on getting better color management from the printer. This is by far the most popular post I’ve ever made, garnering several thousand hits in the past month, so HP really messed up with this one!
– End updates –
Introduction
When I moved to Alaska, I bought a bunch of technology equipment for my little home office: an iMac, an Epson scanner, and a little HP Color Laserjet CP1215. I eagerly unpacked it all and set it up after FedEx and UPS delivered everything to my door. I was particularly excited to have my own color laser printer, especially having found a great deal on it from HP. Imagine my dismay when, upon trying to add it to Mac OS X, I could not find any sort of driver for it on my computer. The printer install CD was only for Windows computers. HP’s website only listed Windows driver downloads.
Having spent the last 10+ years of my life working almost exclusively with HP LaserJets and Macs, I was surprised to find that this particular printer was not and would not ever be compatible with a Mac, according to HP. I apparently overlooked that little tidbit of information in the 3 days I spent researching it vs. the other cheap inexpensive color printers out there, assuming HP would have to be crazy to release a laser printer without Mac compatibility.
Much cursing ensued.
Since then, I’ve been saving everything I want to print as a PDF, opening Windows XP in a Parallels VM, and printing from there. It’s a hassle, and today I reached a breaking point. I created a nifty little business flyer in Pages (I’ll post it later), and the resulting PDF looked totally different than my original design! I needed to print directly from Pages, so I decided to see what Google would bring me. The news was good, if complicated. I’ll post my steps here, with links, for the betterment of humanity.
How to do it:
Note: I’ve only tested this on OS X 10.5 and 10.6 (Leopard and Snow Leopard), so I can’t guarantee this will work if you are on a different version of OS X.
You’ll be installing some Unix-based software, so say hello to the command line!
- Install Apple’s Developer Tools, if you haven’t already. It’s a free download (about 1GB!), but you’ll have to create an account on the Apple Developer site to get to it. Once you have your account and are logged in, go to Downloads, then Developer Tools, then click on whatever version of XCode Developer Tools (disk image) they list for your OS. For Snow Leopard (10.6.x), 3.2 is the latest; Leopard (10.5.x), 3.1.4 is the latest; and for Tiger (10.4.x), 2.5 is what you want. If you already have an ADC account and are running Snow Leopard, you can go straight to the XCode download site.
After it downloads, it will open up and you’ll have to double-click the XCode Tools package installer to start the process. No restart is required.
- Download GhostScript,
just click on the latest versionI’ve updated this to link to a specific working version, 8.63. The 8.64 version disables color printing for some reason. I’ll file a bug report and update this when it’s fixed. It’s okay to use the linked version. - Download foomatic-filters.
- Download foo2hp.
The download link is a little ways down the page, and the downloaded file is actually called foo2zjs.I’ve updated the link to point to the last working version of the drivers, until I can work out some issues with the latest version. - Compile the software you just downloaded. To do so, open Terminal in your /Applications/Utilities folder
- Navigate to wherever your downloads are stored. In 10.4 it’s usually on the Desktop (unless you’ve changed it), and in 10.5 it’s usually in the Downloads folder. Just type:
cd Desktoporcd Downloadsand hit Enter. - The bits of software you downloaded should have automatically unarchived, so you should be able to go directly into their folders:
cd ghostscript(after typing a few characters of the folder name, you can hit the Tab key and it will fill in the rest of the folder name) - If your computer didn’t automatically unarchive the downloads, type
tar -zxf nameofdownloadedfile.tar.gzto unarchive them (replace nameofdownloadedfile.tar.gz with the names of the actual files you downloaded). - Next, type:
./configureand hit enter. A lot of text will scroll by. It will eventually stop and hopefully there won’t be any errors. - When you can type again, type in
makeand hit enter. More text, hopefully no errors. - Finally, type
sudo make installand hit enter. It will ask for your password. Enter it. If you don’t have a password set on your account, and you’re running Mac OS X 10.5, you’ll need to set a password in System Preferences: Accounts before this will work. - Now we have to do almost the same for the next piece of the puzzle, the foomatic-filters. Type
cd ..to go back one folder, thencd foomatic-filters-3.0.2into the foomatic-filters folder. - Note: if you have trouble getting Terminal to get the full folder name after hitting Tab, that’s due to having two items that start with similar letters (eg. the downloaded file “foomatic-filters-3.0-current.tar” and the unarchived folder “foomatic-filters-3.0.2″).
There are many ways to solve this. You can delete the downloaded tar.gz files after you’re sure the folders have been unarchived, you can type out more of the folder name until it is differentiated from the tar.gz file, or as Roger notes in the comments, you can type
cdin the Terminal, then drag the folder icon to the Terminal window and it will fill in the correct path. - Repeat the “
./configure,” “make,” and “sudo make install” steps from before, hopefully receiving no errors! - Now, navigate into the foo2zjs folder (
cd ..thencd foo2zjs) - This time, you start by typing
make. - Note: Some people have reported receiving an error about ghostscript not being installed during this step. If this happens to you, please skip down to the Adding To Your $PATH section, then return here when you’ve completed those steps.
- Next, you’ll need to download the actual drivers for your printer. Since I have a 1215, I typed
./getweb 1215and it downloaded the drivers. sudo make installone last time, and you’re almost ready to go.- Restart your printer software with
sudo make cups. An alternative to this is to just restart your computer. - Open up your Printer Utility (10.4) or Print and Fax PreferencePane (10.5), and add the printer. OS X will see the 1215 attached via USB, and after searching for drivers, will find the foo2hp for 1215 driver!
Now, to get better colors on your prints, you’ll have to change around the color profile for the printer. To do this, print something and in the print dialog box that opens, select “Printer Features” from the third drop-down menu (you may need to click the blue arrow button beside the printer drop-down menu). Here’s what it will look like (click to enlarge):

This is where you can set whether to print in color or black and white, what sort of paper to use, etc. Click on the menu named “Feature Sets,” and select “Adjustments.” This is where you can change how the printer decides how to print colors. These .icm files all contain color management instructions for the printer, and most of them don’t work very well. It was pointed out in the comments that the ones that aren’t specifically labeled for the CP1215 actually work the best, which makes this even more awesome.
I found that the .icm file named “HP 1600/2600 – hpclj2600n-0.icm” gave me smoother gradients in the test photo, but the file named “HP 1600/2600 – ICCFactory1 (default) gave me more vivid colors. If only we could combine their powers and make a super .icm file! Anyway, select the one you want to use.

After you’ve set everything the way you want, you can save it as a preset, so you don’t have to go through and set it all again the next time you print. Just click on the second drop-down menu that probably says “Standard,” and Save As…

You can make a preset for each type of paper, color option, etc. so life will be even easier after all this hard work.

Finally, if you’re keen to get a custom color profile made specifically for your printer (even printers of the same production model will have slight variations in printing), you can buy a custom profile from this ebay vendor: fotojimbo’s Custom ICC Profiles.
In my short bit of testing, I have found a couple of caveats:
- To print in color, you’ll need to set it to color in the print dialog box, under “Printer Features” in the drop-down menu.
- In “Printer Features,” setting the Bits Per Plane to “2″ will waste a lot of toner
- Setting the paper type to HP Photo Paper and using HP Photo Paper is a disaster. All three of my test prints didn’t turn out: some of the toner didn’t get correctly applied, and spilled everywhere. I’ll still have to use Windows to print photos.
- Color matching isn’t the greatest, I’ve had some trouble getting dark blues to turn out dark. But, it’s better than not being able to print from OS X at all.
See, Macs are simple!
If you found this helpful, please consider encouraging me with a donation or even better, buy a photograph (everybody wins!).
This section is specifically for people experiencing an error saying ghostscript isn’t installed during Step 14. Ghostscript is actually installed, but Terminal is dumb and can’t see where it is. Let’s correct that!
- Mac OS X 10.5/10.6
- In the Terminal, type
cd /etc/paths.d - Type
sudo pico localand enter your password. - You’ll be given a mostly empty window where you can type. This is the pico text editor, one of the simplest command line text editors. Type
/usr/local/binand do not hit Enter or any other extra keys. - Press and hold the Control key on the keyboard. While holding the Control key, press the ‘X’ key and then let go of both keys. Pico will ask you something like “Save modified buffer?” That’s nerd-speak for “Do you want to save your file?” Press the ‘Y’ key to save.
- Restart your computer
- Return to Step 14 and try again. Be sure you navigate back into the foo2zjs folder with the Terminal first!
- Mac OS X 10.4
- In the Terminal, type
cd(this puts the command line back in your home directory) - Type
pico .profile - More than likely, you’ll be given a mostly blank window. If not, hit the Enter key once to make some space, then the Up arrow key to put the cursor in the space you just made.
- Type
export PATH=/usr/local/bin:$PATHand do not hit Enter or any other extra keys. - Press and hold the Control key on the keyboard. While holding the Control key, press the ‘X’ key and then let go of both keys. Pico will ask you something like “Save modified buffer?” That’s nerd-speak for “Do you want to save your file?” Press the ‘Y’ key and then the ‘Enter’ key to save.
- Restart your computer
- Return to Step 14 and try again. Be sure you navigate back into the foo2zjs folder with the Terminal first!
If you need to delete the drivers, please copy and paste the following command in the Terminal:
sudo rm -r /usr/local/bin/gs /usr/local/bin/foo* /usr/local/etc/foomatic /usr/local/share/ghostscript /usr/local/man/man1/foomatic* /usr/bin/foo2* /usr/share/foo2* /usr/libexec/cups/filter/foomatic*


Ryan,
It perfectly worked on my old macbook pro 10.4.11.
Thanks a lot!
How much for a 8×10 print shipped to Europe?
Teddy from France.
Oh, sweet, beautiful color print job! You are my hero! Thanks so much! Now… where’s that donate button?
Absolute lifesaver!! Worked like a charm. Thank you SOO much!
Wow, thanks a lot. Just saved me from returning the printer. I’m just facing one problem:
Printing b/w works seamlessly, but when I configure the printer to print in color, as you mentioned in your post, the printer opens, does nothing and closes again. Any idea what that could be?
Thanks in advance, regards,
Thiemo
Status: Printing,
Connected to creative-minds.local….
after about 5 seconds I get the message: Printer ready.
:(
Error messages suggested that foo2zjs could not detect gs, ghostscript and foomatic-RIP stored in “local” directories. Workaround was to copy (sudo cp -r) from /usr/local/bin to /usr/bin or /usr/local/share to /usr/share. Works on Mac Mini 10.4.6, XCode 2.1.
Get the DMG packages to install without using terminal:
http://www.openprinting.org/download/printdriver/macosx/old/
Hi, maybe I did something wrong but I’ m stuck in steps 6 and 7 (I have a MacBook 2.5HZ with Leopard 10.5.8)
this appears on my Terminal screen:
pc-176-183-161-190:Downloads Dintrans$ tar -zxf ghostscript-8.63.tar.gz
tar (child): ghostscript-8.63.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
pc-176-183-161-190:Downloads Dintrans$
Please help me. What am I doing wrong?
Thank you!!!!!
Thanx so much,
I was getting desperate of not being able to print on my mac (always had to transfer material to my pc laptop and then print.
BTW: I own a 1217, and 1215 drivers seem to work just fine!
I just successfully acquired the driver for the cp1215. I typed cd downloads. then cd ghostscript-8.63 and hit return. then I followed the rest of the steps. I didn’t use the tar command as you did. I have snow leopard up and running. I type cd after the completion of the ghostscript install which takes me back to my machintosh drive. then I reenter cd downloads and then the next part which was the foomatic component. Hope this helps. I am not a computer whiz by any means.
My comment was for Mr. Al ditrans
I didn’t have time to try since you posted the correction for the foo2* download. Did it this evening. Everything is fine now both for my Powerbook and my iMac (10.6.1 on both).
Thanks so much Ryan for the invaluable help.
Francois
Hey, I have recently installed snow leopard and tried to do the procedure as I did it last time, but I am unable to go further cd ghostscript, .. I can not ./configure.. it says the following:
-bash: cd: ghostscript-8.63/configure: Not a directory or -bash: ./configure: No such file or directory
what am I doing wrong…
thanks for any help u can give me.
bye
hi.
I downloaded the files, I installed Develop Tools, I opened terminal, but at the 9th step I type “make” it sad:
HVs-MacBook-4:ghostscript-8.63 HV$ make (when I could type again)
make: *** No targets. Stop.
what can I do ?
I use leopard 10.5.8
thx!
thx a lot man.
you helped me a lot.
it works, great!
it was so easy!
@Teddy
Hi, I’m french and I don’t practice “terminal”
Is there another solution more easier???
Thank very much!!!
This worked great! Thank you for being the genius to figure this out! Much Appreciated.
hey i really need some help i’m stuck on the last part after you enter cp foo2zjs, when i go to type in make nothing happens i dont know what to do :(
I installed it, and it’s printing like a charm, except that the page borders are all wrong.
I use A4 paper in the printer, and I have A4 paper selected both in the print dialog, and in CUPS.
Using a test print out of Safari, though I have verified this exists in pages and other programmes, I find that the top of the page is printed 2mm from the top of the paper. I have no easy way of telling if it’s centered horizontally on the page, but it looks like it.
I’ve tried adjusting the top margin in the print dialogue, to no effect.
Using the CUPS test page, the bottom ruler shows at the 8mm mark, but the origin doesn’t show. the top of the page seems to be at the 28.8mm mark.
Any ideas on how to fix this?
Help! I get as far as ghostscript sudo make install and when it asks for password I try entering but nothing happens. I strike the keys but nothing enters on the screen. I am the administrator and I’m entering the correct password. Is there something I need to key in front of the password?
Dee Dee
@Dee Dee
It looks like nothing is happening when you enter your password, but it is. Just enter your administrator password and hit enter, it will work.
I installed the latest version (ghostscript 8.70 and footmatic 4.0.3 and it worked – one tweak required – I had to manually specify GSBIN in the foo2hp2600-wrapper script, since it failed to find it in /usr/local/bin for some reason. I guess I could have moved it too.
so again.
at the Step 9, when I type “make” terminal says:
HVs-MacBook:ghostscript-8.63 HV$ make
make: *** No targets. Stop.
what did I do wrong ? I followed the steps before, I installed developper tool, downloaded ghostscript 8.63 and foo filter too.
Please help me !!
I am buying a second Mac. How do I transfer the driver from one Mac to another?
Thanks for any advice
@Peter
Given the complexity of the software installed, you should just redo the entire installation process on the new Mac. Not easy, I know, but easier than tracking down all the binaries and libraries that the above steps create and place all over the system.
To the rest of you having problems, I’ll dedicate some time this weekend to figuring out where you’re having trouble, and see if I can clarify the process to prevent it from happening again.
Hello, I followed your instructions to a tee, using the links that you provided… No errors, everything confirmed good up until foo2zjs. Error output as follows (after “make” command):
$ sudo make
#
# Dependencies…
#
***
*** Error: gs is not installed!
***
*** Install ghostscript (gs) package
***
make: *** [all-test] Error 1
I can’t do anything past this, what’s going on?
Worked perfect. Thanks!
Worked Great!… only one little minor problem. Works with all my apps but Photoshop CS3. I’m running SL 10.6.2, any thoughts or suggestions?
Wow – Thank you SO much man! You saved my life! I especially liked how cool I felt using terminal. hahaha, for a minute I felt like I knew how to work a computer! (I still have NO clue what exactly I was doing in terminal lol)
So it is working like a dream except for the colors – I have the HP Color LaserJet CP1215 and I used the color profile – 1600/…00n-0.icm — So I printed out the first page of your instructions to try out the color, and the links that are supposed to be blue, are magenta instead. Any ideas?
Jeffrey – if you can afford it upgrade to CS4 (student license is something like $200 for the CS4 suite). Taking a stab in the dark — but it could be a color management arguement error with adobe and the driver. I do know that in CS4, Photoshop wants to do EVERYTHING, which includes color management. Try changing (in PS) your color-scheme settings. Instead of Adobe CKYwhatever, see if there’s a new option that you’ve just created?
I was successful first with OSX v10.5 but the same error happened for me with 10.4. Similarly I cannot create solution to this. Ryan could you help?
I also read the previous pages for other similar comments to above. I do have psswd. Did all again but no success. For some reason, even though there is no error messages, gs don’t get installed.
Vesa or anyone else having the GS problem: please type this in the Terminal and let me know the result:
echo $PATHThanks a lot from from Italy, it works perfectly with Snow Leopard!
I offered you a coffee by Paypal :-)
Okay, Vesa verified that the new instructions for correcting the “gs is not installed!” error do work! It seems some OS X installs, especially 10.4, don’t have all the standard UNIX install directories listed in the path used while running some of the commands above.
This little how-to keeps getting bigger and bigger.
Works as advertised . . . great solution–thanks for sharing
Thanks a lot from sunny Scotland I bought a new Color Laserjet CP1215 and could not believe it when it was listed as one of the few which would not work with my mac. Thanks to google and your good self I am printing in glorious colour. Thanks again for taking the time to put this howto on the web. Have a bottle of paypal wine on me.
Cheers
Outstanding. Our exec support people (who know I use Macs) bought this printer for me. Instructions here worked perfectly.
Thanks a lot for this, I thought I would have to use my printer like a paperweight. Everything run smoothly, no problems during compiling and installing. My problem is quite different; I was able to print in B&W, but when trying to print in color, the yellow toner went out of registration, so it’s like 2mm offset. Does anybody else is having the same problem? How do I fix this? Thanks a lot again!
I bought this printer to replace my 14 year old Hp LJ 4MP from Amazon. This printer seems fine to print every day stuff. And haven’t felt any problem to print labels, party invitations, pictures, etc. on label paper, cardstock and regular paper. I think this will be far cheaper than ink printers when taking a long term view.
Thank you so so much for these instructions. I am very impressed that you took the time to create this. This made the difference in setting up our printer in an hour and shipping it back. Great job!!!
I’m getting the same errors as Zev, on a dual G5 power mac with the CP1215 running 10.4.11. I’ve done it several times and just cannot get by this point. Any help or clues?
Thanks
@uberE
Please follow the instructions under the “Adding to your $PATH” section to correct the problem with GS not being found.
Sorry Ryan,
I meant to specify that I get the “no GS error” after editing the path, and rebooting. I’ve done it several times, and even “lost” the original $PATH info in .profile while using pico (any clues what paths should be listed?).
I appreciate the hard work in developing this solution. You’re helping to expand my knowledge base.
@Ryan
Thank you so much! It worked like a charm! Just one question, once we have the driver, can we delete the foo2zjs, foomatic-filters, and ghostscript folders in the downloads folder from our system? Thanks again!
Followed the instructions to a t and, being a developer myself, the whole process was painless to get setup.
Unfortunately, when I go to print, the job gets sent to the queue and errors out with:
“Error: /usr/libexec/cups/filter/foomatic-rip failed”
Anyone seen this or have any suggestions for how to fix it? I have searched around the web and found this issue, but no resolution as of yet. Any help greatly appreciated!
Hello Ryan,
I have encountered with following error when compiling gs:
/obj/echogs -w ./obj/ldt.tr -n – gcc -o ./bin/gs
./obj/echogs -a ./obj/ldt.tr -n -s ./obj/gsromfs1.o ./obj/gs.o -s
cat ./obj/ld.tr >>./obj/ldt.tr
./obj/echogs -a ./obj/ldt.tr -s – -ldl -lm -liconv -lstdc++ -lpthread -lm
if [ x != x ]; then LD_RUN_PATH=; export LD_RUN_PATH; fi; \
XCFLAGS= XINCLUDE= XLDFLAGS= XLIBDIRS= XLIBS= \
FEATURE_DEVS= DEVICE_DEVS= DEVICE_DEVS1= DEVICE_DEVS2= DEVICE_DEVS3= \
DEVICE_DEVS4= DEVICE_DEVS5= DEVICE_DEVS6= DEVICE_DEVS7= DEVICE_DEVS8= \
DEVICE_DEVS9= DEVICE_DEVS10= DEVICE_DEVS11= DEVICE_DEVS12= \
DEVICE_DEVS13= DEVICE_DEVS14= DEVICE_DEVS15= DEVICE_DEVS16= \
DEVICE_DEVS17= DEVICE_DEVS18= DEVICE_DEVS19= DEVICE_DEVS20= \
DEVICE_DEVS_EXTRA= \
/bin/sh <./obj/ldt.tr
ld: library not found for -lcairo
collect2: ld returned 1 exit status
make: *** [bin/gs] Error 1
both for make and sudo make install commnad. Then later foo2zjs did not find gs of course.
Finally I have solved my problem by installing ghostscript version 8.70. Now it is running however I have problem with set-up colour adjustment HP 1600/2600…
Ryan – you really are a hero. Thank you SO much.