Rails mysql ELF 标头错误

Rails mysql ELF header error(Rails mysql ELF 标头错误)
本文介绍了Rails mysql ELF 标头错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

我试图在 ubuntu 11.10 上启动我的 rails 应用程序,但我遇到了以下错误:

Im trying to start my rails application on ubuntu 11.10, but im hitting the following error:

/vendor/cache/ruby/1.8/gems/mysql2-0.2.13/lib/mysql2/mysql2.so:无效的 ELF 头 - /vendor/cache/ruby/1.8/gems/mysql2-0.2.13/lib/mysql2/mysql2.so

如果这有所不同,我会在虚拟机(主机:Windows 7,来宾:Ubuntu 11.10)中运行它.

Im running this in a virtual machine (host: Windows 7, guest: Ubuntu 11.10) if that makes a difference.

我已经拔掉了头上的一半头发,任何帮助将不胜感激.

Ive pulled out half the hair on my head, any help would be much appreciated.

推荐答案

我很尴尬,但以防万一有人因为他/她的愚蠢而面临这样的事情,

Im quite embarrassed, but just in case there is someone else out there and faces something like this because of his/her stupidity,

该错误是因为该文件夹在 windows 和 linux 之间共享,并且 bundler 之前已在 windows 上运行.在 ubuntu 上,会选择较早安装的 Windows 库,而不是本机 linux 库.清理 vendor/cache 修复了问题

the error was because the folder was being shared between windows and linux, and bundler had been run on windows earlier. When on ubuntu, the earlier installed windows libraries were being picked up, instead of the native linux ones. Cleaning the vendor/cache fixed the issue

这篇关于Rails mysql ELF 标头错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

相关文档推荐

MySQL Subquery calculations(MySQL 子查询计算)
Can#39;t send fetched data to my socket.io stream?(无法将获取的数据发送到我的 socket.io 流?)
quot;Uncaught Error: Received packet in the wrong sequencequot; with devtools off - Electron + MySQL node driver + Webpack(“未捕获的错误:接收到的数据包顺序错误关闭 devtools - Electron + MySQL 节点驱动程序 + Webpack) - IT屋-程序员软件开发技
Web2py: pass parameters to db Connection()(Web2py:将参数传递给 db Connection())
MySQL warning: Incorrect string value: #39;\x96(MySQL 警告:不正确的字符串值:\x96)
mysqld working but wampmysqld not starting up(mysqld 工作但 wampmysqld 没有启动)