問題描述
我試圖在 ubuntu 11.10 上啟動我的 rails 應用程序,但我遇到了以下錯誤:
Im trying to start my rails application on ubuntu 11.10, but im hitting the following error:
如果這有所不同,我會在虛擬機(主機:Windows 7,來賓:Ubuntu 11.10)中運行它.
Im running this in a virtual machine (host: Windows 7, guest: Ubuntu 11.10) if that makes a difference.
我已經(jīng)拔掉了頭上的一半頭發(fā),任何幫助將不勝感激.
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 標頭錯誤的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!