I've made an application under Ubuntu 11.04 32-bit and am trying to upload it to an Ubuntu 10.04 64-bit server. I can't get it running, because it's buggin about sqlite:
rake aborted!
<my rails dir>/vendor/ruby/1.8/gems/sqlite3-1.3.3/lib/sqlite3/sqlite3_native.so: wrong ELF class: ELFCLASS32
Apparently, I did something wrong. My guess is the 64-bit is causing problems. Can it be fixed?? and 开发者_Go百科HOW?
Thanks in advance!
You're trying to run a 32-bit native (ie, compiled) gem on a 64-bit OS.
Un-vendor your gems and re-install/compile them on your production server.
Your path the sqlite3 on your server is incorrect.
/gems/sqlite3-1.3.3./lib/sqlite3/sqlite3_native.so:
That is what's causing the error. Can you ssh into your server and see what's going on? Try to find out where sqlite3 is and replace the path above with the correct one on your server.
精彩评论