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*


Great! Just Great. You are the man!
Hi, thanks for such a work but I can’t use it with my HP 1215. I faced such a problem: when I type “make” with the “ghostscript” folder the terminal tells me:
“make: *** No targets. Stop.”
What am I doing wrong?
Hope to hearing from you soon!
Kind regards,
Eugeny.
@chris
Chris, I have the same issue with “/usr/libexec/cups/filter/foomatic-rip failed”. Did you find a solution yet? Thanks in advance.
@Eugeny
In the folder you’re trying to “make,” type “ls” and post the resulting list here.
@Sally and @chris
What is your exact OS version? (Apple Menu:About This Mac)
@Ryan
I have 10.6.2
@Sally
In the Terminal please type:
cd /usr/libexec/cups/filter/Then:
ls -al1. Is there a foomatic-rip listed?
2. If so, does it look something like:
lrwxr-xr-x 1 root wheel 27 Sep 27 18:00 foomatic-rip -> /usr/local/bin/foomatic-rip?similar… lrwxr-xr-x 1 root wheel 27 Dec 31 15:47 foomatic-rip -> /usr/local/bin/foomatic-rip”
@Sally
I’ve added a section on uninstalling the drivers. Please run the command and try the process again. If you still get the error, I have a Macbook with 10.6.2 that I’ll run the process on and see if I can replicate the problem. I just have to wait until the replacement power adapter I ordered last week gets here.
@Ryan
Thanks Ryan. I had already redone the process before posting but will try again with your uninstall instructions. Unfortunately, I only have until Sunday to return the printer and I’m concerned that getting it to work, and then getting the color right, may not be worth the effort?
@Sally
If I had to do it over again, I would have spent a little more and gotten a Mac-compatible one, like the CP1518ni. These instructions are for people who are stuck with the printer or are okay with “good enough.”
Hi, Ryan!
I need your help in step 6!!. I can´t unarchive the downloads. I have the folder with all the downloads into the desktop but I can´t Compile the software. I try to put all that you say in the terminal, but nothing.
Please, HELP ME!!!!
Regards,
Nico
Last login: Fri Jan 1 02:36:29 on ttys000
imac-de-nicolas-madariaga:~ NICO$ cd desktop
imac-de-nicolas-madariaga:desktop NICO$ tar -zxf nameofdownloadedfile.tar.gz
tar (child): nameofdownloadedfile.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
imac-de-nicolas-madariaga:desktop NICO$
@nicolas
nameofdownloadedfile.tar.gz is just a placeholder for the actual names of the tar.gz files you downloaded. Your computer probably already unarcheved them anyway. If you see folders for foomatic-filters, ghostscript, and foo2zjs, they have been unarchived. You just need to use the Terminal to cd into each one and follow the instructions.
I’ve editied the instructions to be clearer about that, sorry for the confusion!
muchas gracis amigo Ryan from CHILE!!
Happy new year!!
Everything it´s ok now. The printer work magnific!
Thanks so much for all your work and patience
Cheers!
Hello Ryan, I wish you a happy new year and many thanks from Munich/Germany. Unfortunately I can`t continue with your instruction after step 10 (sudo make install). The terminal at the prompt point doesn’t allow me to type in my password. Do you have any idea to fix this problem? By the way I am trying to run HP 1215 via a wireless G USB Print Server HP 2101 nw.
Thank you very much in advance
Best regards
Dirk
System OS 10.6.2
Ryan,
Thanks for the driver to use the HP printer on my Mac…..I have everything installed as directed, the system found the CP1215 and the driver but when trying to print the printer “bounces” up and down a few times then stops and no print. There is also nothing in the print que. Any suggestions?
Thanks
Ryan, answering to your question:
@Eugeny
In the folder you’re trying to “make,” type “ls” and post the resulting list here.
It writes “-bash: is: command not found”
That’s all…
@Eugeny
That’s “ls” as in “little stinker.”
@Diego
Go ahead and type your password. It won’t show anything being entered, but it is taking the password.
@Terry
What version of OS X are you using?
Ryan, sorry, for “ls” the answer is:
LICENSE config.status examples jbig2dec toolbin
Makefile configure expat jpeg zlib
Makefile.in configure.ac icclib lib
Resource contrib ijs libpng
autogen.sh cups imdi man
config.log doc jasper src
@Eugeny
Strange. You have the Makefile and Makefile.in that configure creates, so something must not be right with the dependencies.
In Terminal in the ghostscript folder, run this command, and send me the configtext.txt file it creates on your Desktop (ryan at bigwoofs dot com):
./configure > ~/Desktop/configuretext.txtDear Ryan,
my printer (HP 1217) is running now after having followed your instructions. Is there any certain point at which I can choose my printer (HP 1217) to perhaps get better color prints? I already have contacted fotojimbos but still waiting on answer.
Thank you in advance and best regards
Diego
@Ryan
I am using 10.5.8…
Thanks
@Terry
Ryan,
I reloaded everything again and it works perfect ( a little light on the blues but not bad). Thanks for your work.
Have a great 2010 !!
Terry
It works great on my first imac bought yesterday… on osx 10.6.2 snow leopard
I would like to translate in italian this page in my website if you agree, let me know.
Thank you
andrea
@andybi
Of course, translate away! Post a link here when you’re finished, and I’ll link to it at the top of this post.
I get to the point where it says ./getweb 1215 and nothing happens. I’ve just spend TEN hours trying to make this happen. I’m using a Mac Mini OS X 10.6.2 I’m really hurting here.. I bought this printer under the presumption that it worked for a Mac, but I’m not doing so well here.. It sees it under Bonjour.
Ryan, I’ve sent you the configtext.txt file couple of days before. Have you received it?
I do the translation into Italian here http://www.andybi.com/index.php?option=com_content&view=article&id=171:stampante-hp-laserjet-cp-1215-su-mac&catid=55:apple-mac&Itemid=69
I did 1st to 7th step, but when I type “make” (step 8), terminal said “no target” .
screenshot: http://img0.tar.hu/viktor5/img/63544707.png
thnx for help me !
… sorry, I did 1st to 8th, and at the 9th said an error.
Hello Ryan:I followed all you recommendations for installation of HPCP1215 in iMac and when send to print documents the logo show that the print was done, However, did not printed, could you know what happen?… thanks..
Hi Ryan-
I am having a problem with using Terminal- I am brand new to Mac so I’m not sure if I’m doing this right! When I go to configure ghostscript I get the following message:
checking for gcc… no
checking for cc… no
checking for cl.exe… no
configure: error: no acceptable C compiler found in $PATH
See `config.log’ for more details.
What should I do!
thanks
Hi i’m from India and i shall be eternally greatful for the help with the printer 1215 and for initiating me into the joys of working at the terminal. Great photographs too!
Hello, I keep getting an error on the ghostscript install: make: *** No targets. Stop. this is what Terminal Tells me, Any Suggestions?
@Katie
That looks like you haven’t installed the Developer Tools from the first step in the instructions. You should have a “Developer” folder on your Macintosh HD after you finish the first step.
@viktorius, @Dodge Murphy Investments
I’m trying to figure this one out. Are you both on OS X 10.6.2?
@gautam yadav
You’re welcome, and thanks!
Hi Ryan, I have followed your instruction for my mac running 10.4.11. I can see the printer , have the correct driver selected in the printer setup, but every time I try to print I get a Status 3 error and nothing prints -help!
Thanks
Ian
thanks for posting this information; it saved me a great deal of agony
thx Ryan .. great guide i was thinking to buy a new printer until i found this page
@Ryan
I don’t, I use 10.5.8. only.
I have to run the development tool while I follow the instuctions ?
thx!
@Ryan
I tried it again, and I recognised after typing “./configure” that there were some line at the and “no”, so not all of the lines were “yes”.
how do you now which xcode do you have?? thanks
I just love you mate, you saved my life. I’ll make a donation on my next paycheck. Best regards from Brazil.
Great tutorial – thanks!
One minor issue I have come across was that I still can’t print in colour, even when ‘colour’ is selected in the print menu. When trying to print, it looks like the mac is sending the request to the CP1215, but the print job never actually starts. B&W printing works fine.
Any help with this problem would be much appreciated.
P
With 10.4.11 PowerPC G4, logged in as administrator, (2 other profiles are defined), all is well till step [10]:
[David-Joys-Computer:~/desktop/ghostscript] davidjoy% sudo make install
gcc -DHAVE_MKSTEMP -DHAVE_HYPOT -O2 -Wall -Wstrict-prototypes -Wundef -Wmissing-declarations -Wmissing-prototypes -Wwrite-strings -fno-builtin -fno-common -DHAVE_STDINT_H -DGX_COLOR_INDEX_TYPE=”unsigned long long” -I./obj -I./src -o ./obj/gdevopvp.o -DGS_VERSION_MAJOR=8 -c ./contrib/opvp/gdevopvp.c
./contrib/opvp/gdevopvp.c:28: header file ‘iconv.h’ not found
./contrib/opvp/gdevopvp.c:29: header file ‘langinfo.h’ not found
./contrib/opvp/gdevopvp.c:30: header file ‘dlfcn.h’ not found
./contrib/opvp/gdevopvp.c:1374: undefined type, found `iconv_t’
cpp-precomp: warning: errors during smart preprocessing, retrying in basic mode
make: *** [obj/gdevopvp.o] Error 1
I tried just ignoring the error and ploughing on.
However the ‘ghostscript not found’ moan puts the final nail in the coffin. The .pico profile and restart does not re-find the path.
I suspect this process is NOT OK for 10.4, but will gladly be proven wrong.
The beast of a printer occasionally stirs in the corner, its whirring internals scoffing at my endeavours to free it from the shadows, into the sunshine of the Mac backyard.
Hi Ryan,
I bought my daughter a Mac with 10.6.2 snow leopard earlier this week then we quickly discovered that our home printer HP LJ CP1215 did work, (no Mac driver support). Fortunately we also happened upon your excellent work above. Anyway, after around 4 hours this morning, (I have no Unix skills, otherwise probably considerably quicker), I now have your fix working with excellent colour printing from my HP CP1215. All the answers I needed when I got confused also seem to be in the discussions that others have had. So message to other with the same problem, please persevere and read the whole blog. To Ryan, I thanks you sincerely, and all the best with your new life in Alaska.
regards, Ian S.
Ryan,
First thanks for providing this service!
When I paste in the remove command the system does not find the files, no matter what directory I paste it into). I am running OS x 10.5.8. the response to the command follows:
rm: /usr/local/bin/gs: No such file or directory
rm: /usr/local/bin/foo*: No such file or directory
rm: /usr/local/etc/foomatic: No such file or directory
rm: /usr/local/share/ghostscript: No such file or directory
rm: /usr/local/man/man1/foomatic*: No such file or directory
rm: /usr/bin/foo2*: No such file or directory
rm: /usr/share/foo2*: No such file or directory
Ryan,
Please disregard the previous post. I deleted the unzipped directories, unzipped them again, went through the install process from scratch, and then had to address the ‘path’ issue (required that I do this twice before it worked).
Now it prints in black and white only.
Will keep at it but making good progress.
Thanks
OK, I turned color on within the print drop down menu as described above.
Thanks Ryan.
Now I will look at your photos and/or show my appreciation in a more tangible way (i.e., Donation).
Cheers
@Ian Gear
Hi Ian G
[excuse my talking in your hallway Ryan, I will keep it hushed and maybe leave without needing to wake you]
See my posting below, how far did you get on 10.4.11, and did you surpass the ‘missing path’ challenge? Hope you resolved your error 3 by now, if I get beyond, I will let you know how I solved it. DJ