Hi Sue,
Unlike a K-x and older models that can be forced into debug mode with certain files on an SD card, with a K5 you need to tether the camera to put it in debug mode. I'm not sure if there are other programs but I used PK-Tether found here:
www.pktether.com
Unfortunately, at the time when I converted my 16-50 PK-Tether only worked on Windows - (XP in my case). I don't know if anyone used it on Win-VIsta and up. The writer was working on a Mac version but I'm not sure if he got that working or not.
A few Options you might consider if PK Tether is not available for Mac:
1) The easiest and reasonable option would with be forum member Uncle Vanya as suggested by CSA above, although there is a turn-around time involved if that matters.
2) See if you can borrow a Windows PC/Laptop from friends or relatives and use PK Tether to put your K5 in debug mode. Then follow instructions here courtesy of forum member "mee":
Page-30 / Post 438.html
3) If you know anyone with an older body (K-x, K20, K7 and a few K100 family), you can use that to convert your lens without PK-Tether. Please Note: K-r and K-01 will not work. I don't know about K3.
Hope this helps.