Reputation: 1
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 i don't have gcc on production serv.
Do you have any ideas?
Upvotes: 0
Views: 200
Reputation: 66721
yeah you're probably going to need to recompile that binary extension--you can check for dependencies with the ldd command
Upvotes: 0
Reputation: 13058
It's probably different architecture, i.e. you had i386, and this is x86_64. Check with uname -a
and file mytest.so
Upvotes: 1