Say I’ve got a C extension with two rake tasks - ‘build’ and
‘install’. For the build task, if currently being run as root, I would
like it to drop down to, say, the ‘nobody’ user. Obviously, I’m only
talking about Unix here.
I thought I could use Process::UID.switch, but I couldn’t make it work
right. Any ideas?
As to why, building as root can causing linkage problems . This
question was originally brought up on the rubygems tracker, btw. 
 Just google for “root” + “linkage problems” if you want details