I had written some instructions about installing couchdb on RHEL 4 - will convert it to a blog/wiki entry when I find some time.
http://markmail.org/message/eyexy4n6ttbk5crg#query:related%3Aeyexy4n6ttbk5crg+page:2+mid:l6x57ouf5jl6zacx+state:results Let me know if that helps. Your error seems to be related to the spidermonkey installation and if you build the rpm or do a proper installation of spider monkey - it might work.
