Like others have said, be discreet about it and you'll be good to go. I know there is liquid chalk, but I've never used it so I can't comment on its effectiveness.
My gym allows it, but I make sure to mop up my chalk mess and clean the equipment down when I'm done, to not stir the pot. If I wasn't allowed to use chalk, I would change gyms, period.