Home > Tech > Getting an HP Color LaserJet CP1215 working on a Mac

Getting an HP Color LaserJet CP1215 working on a Mac

December 27th, 2008 Leave a comment Go to comments

Introduction
Installation
Color Management
Uninstall

Updates
11/30/2010: As of now, I no longer have the CP1215 and cannot do any further testing or troubleshooting beyond what is on this post and in the comments. The process works for most people, and should continue to do so into the future, at least for Tiger, Leopard and Snow Leopard. I can’t make any promises about Lion next year.

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!

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

  2. Download GhostScript, just click on the latest version I’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.
  3. Download foomatic-filters.
  4. 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.
  5. Compile the software you just downloaded. To do so, open Terminal in your /Applications/Utilities folder
  6. 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 Desktop or cd Downloads and hit Enter.
  7. 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.gz to unarchive them (replace nameofdownloadedfile.tar.gz with the names of the actual files you downloaded).
  8. Next, type: ./configure and hit enter. A lot of text will scroll by. It will eventually stop and hopefully there won’t be any errors.
  9. When you can type again, type in make and hit enter. More text, hopefully no errors.
  10. Finally, type sudo make install and 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.
  11. 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, then cd foomatic-filters-3.0.2 into 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 cd in the Terminal, then drag the folder icon to the Terminal window and it will fill in the correct path.

  12. Repeat the “./configure,” “make,” and “sudo make install” steps from before, hopefully receiving no errors!
  13. Now, navigate into the foo2zjs folder (cd .. then cd foo2zjs)
  14. 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.
  15. Next, you’ll need to download the actual drivers for your printer. Since I have a 1215, I typed ./getweb 1215 and it downloaded the drivers.
  16. sudo make install one last time, and you’re almost ready to go.
  17. Restart your printer software with sudo make cups. An alternative to this is to just restart your computer.
  18. 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!

Color Management

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):
Printer Dialog 1

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.
Printer Dialog 2

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…
Printer Dialog 3

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

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!).



    Adding To Your $PATH

    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
      1. In the Terminal, type cd /etc/paths.d
      2. Type sudo pico local and enter your password.
      3. 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/bin and do not hit Enter or any other extra keys.
      4. 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.
      5. Restart your computer
      6. 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
      1. In the Terminal, type cd (this puts the command line back in your home directory)
      2. Type pico .profile
      3. 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.
      4. Type export PATH=/usr/local/bin:$PATH and do not hit Enter or any other extra keys.
      5. 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.
      6. Restart your computer
      7. Return to Step 14 and try again. Be sure you navigate back into the foo2zjs folder with the Terminal first!

    Uninstalling

    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*

Categories: Tech Tags: ,
  1. Theo
    October 29th, 2010 at 21:38 | #1

    To add:
    So it works (however with a workaround, when I use and select and I then use and then use from the top menu (under Archive or ⌘P).
    It does namely not work either when I use the bottom line right button in the PDF Preview screen.
    Hope this helps

  2. Theo
    October 29th, 2010 at 21:43 | #2

    sorry, some text was suddenly missing

    To add:
    So it works in Pages and in Numbers (however with a workaround), when I use “print” and select “pdf” and I then use “open preview” and then use “print” from the top menu (under Archive or ⌘P).
    It does namely not work either when I use in “Preview” the bottom line right “print” button in the PDF Preview screen.
    Hope this helps

  3. Charlie
    October 30th, 2010 at 21:12 | #3

    Hi Theo,
    Tried the PDF option, however still no print.

    Thanks for the feedback.
    Regards,
    Charlie

  4. Sascha
    November 4th, 2010 at 06:20 | #4

    Wonderfull, It works! Great job and thank you so much for sharing!!!

  5. ARTHUR
    November 9th, 2010 at 09:33 | #5

    Thank you. Now I can print! Great job.

  6. November 12th, 2010 at 03:51 | #6

    thanks for the detailed information that are good for our mac users.

  7. Alex
    November 20th, 2010 at 22:58 | #7

    I successfully installed the HP CP1215 printer in my imac, the instructions work perfecty. I am able to match good colors, however they look with a very low resolution. I´ve read the default printing is 600×600 pixels but the ImageREt from HP increases the resolution one wants for photos. I have a doubt if the ImagREt is installed in my imac and if the absence of this configuration is the cause for the low resolution pictures. What can I do?

    Thanks for the valuable help!!!

  8. November 22nd, 2010 at 22:57 | #8

    Hi, I am following the directions however I have never done anything like this before so I am alittle confused do I add 1 folder at a time Ghostscript etc. and with each folder after they are dragged and dropped into the terminal window do I enter ./configure or do I drag and drop them all at one time and then follow the scripts. I am not having any luck.
    Thank you!

  9. ferrn
    November 27th, 2010 at 08:12 | #9

    Hi,

    For a HP CP1215 on a mac 10.5.8 i had problems to install ghostscript. When i do make can not install. Error:

    make: *** No targets. Stop.

    Maybe i have to open ports??

    regards

  10. Ryan
    November 30th, 2010 at 20:59 | #10

    @Kristi

    Just follow the order of the instructions. First work in the ghostscript folder (./configure, then make, then sudo make install), then move into the foomatic-filters and do the same procession (./configure, make, sudo make install), and finally move into the foo2zjs folder and follow those steps (make, getweb 1215, sudo make install).

  11. Ryan
    November 30th, 2010 at 21:01 | #11

    @ferrn

    That means you aren’t in the ghostscript folder. You can type pwd in the Terminal and it will tell you where you are working. Use the cd command to move into the ghostscript folder and try the make command again.

  12. ferrn
    December 2nd, 2010 at 08:46 | #12

    Ryan!

    Thanks for replay.

    All u said i done. Perfect!

    1st. Ghostscript-8.63.pkg
    2nd. foomatic-filters-3.0.2.tar
    3rd foo2zjs
    4th getweb 1215 and installed

    Now the printer is reconigzed and add. But is inactived…..

    In cubs also in reconigzed to modify settings: http://localhost:631/printers/

  13. Tom
    December 3rd, 2010 at 08:53 | #13

    Thanks for posting this, boy did I feel like an idiot putting in the hp install disk and having nothing come up. I follow our instructions, I am running Mac OS 10.5.8 and did not get any errors. The printer showed up in the Printer/Fax utilities and when I print it doesn’t give any errors but says the job printed fine? But nothing comes out of the printer? Any ideas?

  14. Javier Peña
    December 4th, 2010 at 12:16 | #14

    Hi Ryan, thank you for your great and usefull post.
    It really helped me to run my printer on my mac. Early this morning I bought a HP CP1215 model and I found it didn’t work on mac and there were no drivers from the company.
    Just I followed your instructions and it run smoothly.
    Thank you from Spain!

  15. Claudio
    December 8th, 2010 at 06:03 | #15

    I arrived on step “8. Next, type: ./configure and hit enter. A lot of text will scroll by. It will eventually stop and hopefully there won’t be any errors.”. But Terminal said me:
    “configure: error: no acceptable C compiler found in $PATH
    See `config.log’ for more details.”
    What can I do to going on?

    Thank you.

  16. Emily
    December 9th, 2010 at 23:34 | #16

    IT WORKED!!! I really don’t know anything about computers but your guide was so step by step that I somehow got it to work. Thank you so much!!!

  17. Microlabrat
    December 18th, 2010 at 19:17 | #17

    @Claudio
    You Need to install xcode first

  18. December 22nd, 2010 at 18:02 | #18

    hey. i have a airport and share my printer on my network. i just got the cp1215 and found out.. NO MAC! i am working on your instructions now. will it work on airport as a network printer? ? ? ?? thanks!

  19. Vanessa
    December 24th, 2010 at 23:13 | #19

    To: Mr Ryan,

    Thank you very much for sharing your knowledge on how to make HP Color Laserjet 1215 work with Mac system.

    Thank you so much again as your help guide worked for my computer. :)

    Merry Christmas and a Happy New Year to you~!! :)

    Faithfully,

    Vanessa.

  20. Leonidas
    December 29th, 2010 at 14:55 | #20

    Hello Ryan,

    Thank you very much, mate! Works like a charm… :)
    Go figure them dudes at HP… ;P

    A very happy and prosperous new year to you, sir!

    @rob: I did the above instructions with my old CP1215 connected to my AirPort Extreme Base Station (1000Base-T+802.11n) and it works well.

  21. January 7th, 2011 at 12:20 | #21

    Hi Ryan, we have 5 mac computeres, we will need to make all this steps for any mac???????? can exists any solution to do one time and then user this solution in the other computers?

    Regards

  22. January 7th, 2011 at 21:43 | #22

    Thanks a lot! I was about to give it to someone with a PC.

    Happy new year!

  23. Kevin
    January 8th, 2011 at 10:01 | #23

    Ryan, thank you for publishing these notes!

    Do you know if these drivers would work when connecting to the CP1215 via a Windows 7 machine? i.e., the CP1215 is connected to and shared from the Windows 7 machine; would love for the Mac to able to print remotely to it using these drivers.

  24. January 8th, 2011 at 10:54 | #24

    @Pablo Ramirez

    You would have to use a package-maker program to take a snapshot of the system before and after doing the above steps and save all the changes and files to an installer package. If I were still doing systems administration work, I would have a tool like that, but I don’t now.

    @Kevin

    I think it should work. This process works for printers plugged into routers, so I believe a shared printer would be the same.

  25. Kevin
    January 10th, 2011 at 09:28 | #25

    Thanks again, Ryan. I just got the Mac connected via LPR/LPD to the Windows 7 machine and have color prints rolling off it!

    I’m still challenged in getting the Mac to connect and print via SMB, but LPR/LPD in the interim is sufficient. Makes me wonder if I could get Windows 7 to print using an Air Port Express; I could then relocate the printer altogether.

  26. Alexander
    January 13th, 2011 at 17:26 | #26

    Thanks from Russia! My printer works! Great job!

  27. billy
    January 18th, 2011 at 15:38 | #27

    I cant get any color to print at all, only black and white. HELP!!!

  28. January 20th, 2011 at 03:53 | #28

    is softwerare for HP cp 1215 for mac very laborious if you say to me how much to pay sends the ready packet to me to install?
    best regards
    giorgio

  29. lma13
    January 22nd, 2011 at 12:57 | #29

    Actually works perfectly!!

  30. Niels
    January 27th, 2011 at 07:19 | #30

    HELP!
    I’ve got the famous cp 1215 with mac problem.
    I did the step by step guide Thanks for sharing BTW

    Driver can be found by mac but I can’t install it.
    message Client-error-not-possible
    Someone please help.
    I am a noob with terminal!!!

  31. niels
    January 28th, 2011 at 00:11 | #31

    Problem solved!
    I reinstalled the computer!
    after this I installed the printer with the guide above and now it works fine!
    Thanks

  32. Jorge
    January 31st, 2011 at 20:57 | #32

    QUESTION: When writing down “make” on the ghostscript I get a message saying “make: *** No targets. Stop.” I have tried to do it several times with no success. What can I do? Thanks!!

  33. Daniel from Switzerland
    February 2nd, 2011 at 11:47 | #33

    Many thanks, it was very helpful. Less than 30 minutes and it works fine. Thank You very much;-)

  34. February 7th, 2011 at 08:26 | #34

    I set this up for a friend and I am happy to report…..

    Worked great on Mac OS 10.5.8.

    Later shared printer with Ubuntu 10.04 PPC and that worked well too (using same foomatic printer driver found in Ubuntu)

    Have yet to try to set it up as a LPR/LPD printer via a NAS and see if the driver works that way as well but I do not see why it would not.

    What would the Mac OS do without its poorer but smarter cousin Linux to borrow from?

    Kind of reminds me of the days of when many drivers were not available for Mac OS, or there were hardware hurdles to get around.

    Recommendations…..
    Avoid the long Apple downloads . The Xcode for 10.5 and earlier is no longer available there anyway. Look on the OSX installation disks and you will find the Xtools there.

    Someone should repackage this as a native MAC OS X install!

  35. February 9th, 2011 at 23:21 | #35

    Update….. This also worked printing through an Airlink101 AirNAS. Many say that these kinds of GDL printers will not work on something like a print server however I have had very good luck on the Airlink101 AirNAS, and can confirm that this printer will work this way printing from Ubuntu Linuix and MacOS X with the driver instructions here. In this way the printer becomes a LPR/LPD printer via the IP address of the NAS and using lpusb0 as the queue lpd:///lpusb0

  36. Rafael
    February 11th, 2011 at 00:30 | #36

    @Kevin

    Hi Kevin

    Do I have to follow this tutorial and install this drivers to use a CP1215 with windows, even through LPD?

  37. Hermes
    March 3rd, 2011 at 06:12 | #37

    Thanks a lot! I´m very glad, that I found your tutorial – worked really fine and without any complications. So now I can print on my CP 1217 directly from my Mac Book.

  38. Jair
    March 13th, 2011 at 07:06 | #38

    Thanks, mate!
    It helped a lot. Now my CP1215 is working smoothly on my MacBook.

  39. Gonzalo
    April 4th, 2011 at 18:21 | #39

    Hi everywhere!

    I have installed all as Ryan clearly explained. I could found and add the HP 1215, but there is no way to I can print (it doesn’t work pdf workaround).

    Please post some alternatives for whom still cannot print anything.

    Regards,

    Gonzalo.

  40. Jim
    April 4th, 2011 at 21:51 | #40

    Hey Ryan,
    Exactly what the Doctor ordered. Too easy to follow. Works like a charm. I struggled with the Standard preset until I saw that I can set the defaults through http://localhost:631. Can only express my appreciation for your sharing of this tip.
    Best regards
    Jim

  41. April 9th, 2011 at 19:49 | #41

    Hi Ryan,

    It works like a charm, thank you very much!

    Best regards,

    Tony Navarro

  42. Amanda
    July 18th, 2011 at 02:09 | #42

    thank you so much!

  43. Ben
    July 22nd, 2011 at 19:12 | #43

    Thanks for this,

    Worked like a charm.
    I just installed lion (10.7) so I can confirm it works on the new OS. (unlike Flash)
    I tried the various colour schemes, and found the HP 1215 to work the best for me!

    Only thing that caught me out, was installing the developer tools. After downloading the Xcode for lion and installing, I found that I still did not have a gcc complier installed. I found that I had to do an extra installation of Xcode from the Applications folder.

    Cheers
    Ben

  44. August 4th, 2011 at 19:51 | #44

    I have installed everything, and it works, but only print in Graysacel, I cannot print colors…why?????

  45. August 4th, 2011 at 19:51 | #45

    I´m using Snow Leopard

  46. August 4th, 2011 at 19:53 | #46

    @billy So do i…what do we have to do, help us!!!!

  47. August 4th, 2011 at 20:06 | #47

    Now is printing with color…if somebody wants to know, can send me a mail to alexmarrufo87@hotmail.com…greetings!!!..by the way, Thank So Much!!!!

  48. Steven
    August 22nd, 2011 at 18:55 | #48

    Worked for me with Lion. The only glitch was due to my placing everything in a directory initially named “hp cp-1215″. The space in the directory caused an error in the first make, so I renamed it hp_cp-1215 and all went well after that. Many thanks.

    Here’s the output line that showed me the error of my way:
    ./configure: line 8735: cd: /Users/steven/hp: No such file or directory

    Thanks again.

  49. August 26th, 2011 at 01:26 | #49

    I’ve tried all the steps several times but it still stops at ./configure and brings some text:

    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.

    i downloaded GCC D Compiler but this hasen’t work cause i dont even know how to check for any compilers. Please help

  50. August 28th, 2011 at 00:46 | #50

    Good work! It works under Lion.

    If you upgraded from Snow Leopard to Lion, FIRST remove XCode, then install the new version (3 -> 4). Otherwise GCC cannot be found.

    From there, follow the guide, it will do the trick :)

Comment pages
1 ... 6 7 8 9 1064
  1. No trackbacks yet.