开发者

Ruby extension in C, LoadError

开发者 https://www.devze.com 2023-03-08 07:04 出处:网络
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 t

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

0

精彩评论

暂无评论...
验证码 换一张
取 消