Ruby extension in C, LoadError
On my own computer I compiled a Ruby extension writen in C. Then I added require 'mytest/mytest'
to my controller and it works. Then I moved the files to the server and when I start Mongrel I have the message that:
cannot open shared object file: No such file or directory - {path_to_file}/mytest.so (LoadError)
If I follow that path there is a file mytest.so
.
The permissions on mytest.so
are set to 0777 and full path is checked, still the same.
can not recompile becouse开发者_StackOverflow i don't have gcc on production serv.
Do you have any ideas?
It's probably different architecture, i.e. you had i386, and this is x86_64. Check with uname -a
and file mytest.so
yeah you're probably going to need to recompile that binary extension--you can check for dependencies with the ldd command
精彩评论