帮助修复奇怪的 sqlite3 错误 - dyld:库未加载:/usr/lib/libsqlite3.0.dylib [英] Help to fix strange sqlite3 error - dyld: Library not loaded: /usr/lib/libsqlite3.0.dylib

查看:74
本文介绍了帮助修复奇怪的 sqlite3 错误 - dyld:库未加载:/usr/lib/libsqlite3.0.dylib的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我突然收到一个 sqlite3 错误:

I am suddenly getting an sqlite3 error:

ActionView::Template::Error (dyld: Library not loaded: /usr/lib/libsqlite3.0.dylib
Referenced from: /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork
Reason: no suitable image found.  Did find:
        /usr/lib/libsqlite3.0.dylib: mach-o, but wrong architecture
        /usr/local/lib/libsqlite3.0.dylib: mach-o, but wrong architecture
        /usr/lib/libsqlite3.0.dylib: mach-o, but wrong architecture

我不知道为什么我突然收到这个错误.Rails 3.1.0 和 Ruby 1.9.2 Mac OSX 10.5.8

I have no idea why I am suddenly getting this error. Rails 3.1.0 and Ruby 1.9.2 Mac OSX 10.5.8

推荐答案

好吧,这是一个混乱的 sqlite3 安装,似乎很多人都遇到了这个问题,但解决方案有点难.经过大量谷歌搜索后,我做了以下事情:

Okay so this is a messed up sqlite3 install and it seems that lots of people run into this problem but solutions are a little hard to come by. After a lot of googling I did the following:

步骤 1:转到 http://www.sqlite.org/download.html 和下载源码下的sqlite-autoconf-3070800.tar.gz

Step1: went to http://www.sqlite.org/download.html and downloaded sqlite-autoconf-3070800.tar.gz under source code

Step2:展开文件并cd到结果目录

Step2: expand file and cd into the resultant directory

第 3 步:sudo CFLAGS='-arch i686 -arch x86_64' LDFLAGS='-arch i686 -arch x86_64' ./configure --disable-dependency-tracking

Step3: sudo CFLAGS='-arch i686 -arch x86_64' LDFLAGS='-arch i686 -arch x86_64' ./configure --disable-dependency-tracking

第四步:sudo make install

Step4: sudo make install

Step5:在路径中添加/usr/local/lib

Step5: added /usr/local/lib to the path

在此期间,我做了大量的修补工作.有可能我在此过程中做了一些其他的事情而没有意识到,也没有将其包括在此处.但这些步骤似乎为我解决了这个问题.

I was doing an awful lot of tinkering during this time. It's possible that I have done something else along the way and not realized and not included it here. But these steps seemed to fix the problem for me.

我的环境:Mac OSX 10.5.8 MacBookPro4,Intel Core 2 Duo,2.5 GHz

My environment: Mac OSX 10.5.8 MacBookPro4, Intel Core 2 Duo, 2.5 GHz

这篇关于帮助修复奇怪的 sqlite3 错误 - dyld:库未加载:/usr/lib/libsqlite3.0.dylib的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆