/opt/csw/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:It took me a while to figure-out what was wrong because `gem install mongrel' shows a false success message:
in `require__': no such file to load -- http11 (LoadError)
Successfully installed mongrel, version 1.0.1
Searching around, some threads pointed to a problem with rbconfig.rb, but this was not my problem; there was a library missing:
# ls -alThis box doesn't have make, a C compiler or other build tools so, obviously, the installation wasn't able to create http11.so. I just wish it had failed instead of giving me false hope.
/opt/coolstack/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/http11.so
/opt/coolstack/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib/http11.so: No such file or directory
I got around it by building it on another machine with the same architecture (sparc, in my case) and compiling tools:
- Copy to your build host the directory /opt/coolstack/lib/ruby/gems/1.8/gems/mongrel-1.0.1/ext/http11
- To the same destination, copy /opt/coolstack/lib/ruby/1.8/sparc-solaris2.10/*.h and /opt/coolstack/lib/libruby.so
- On the build host, under the http11 directory, run `make'.
- You should now have a http11.so on the build host. Copy it to the original machine under /opt/coolstack/lib/ruby/gems/1.8/gems/mongrel-1.0.1/lib
This guy has a neat guide to installing Mongrel on a shared host. It may also help you. G'luck.
No comments:
Post a Comment