Help to fix strange sqlite3 error - dyld: Library not loaded: /usr/lib/libsqlite3.0.dylib

有些话、适合烂在心里 提交于 2019-12-03 21:17:36

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:

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

Step2: expand file and cd into the resultant directory

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

Step4: sudo make install

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.

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

Thank you so much, in my case I had to rearrange the parameters and I didn't use sudo to configure nor to make:

make clean

./configure --disable-dependency-tracking --prefix=/usr CFLAGS='-arch i686 -arch x86_64' LDFLAGS='-arch i686 -arch x86_64'

make

sudo make install

I didn't have to modify the path, I specified in the --prefix="my path"

Environment Mac OS X v.10.5.8 2GHz Intel Core 2 Duo

Exactly same problem but the solutions here didn't work for me. Instead reinstalling sqlite3 gem fixed the problem for me.

Environment: Mac OS X v. 10.6.8, iMac

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!