在Snow Leopard上安装Ruby 1.9.2

问题描述

| 我试图在SNow Leopard上安装Ruby 1.9.2,然后出现了臭名昭著的问题。我之所以说出名是因为我在网络上发现了很多类似的问题,但是还没有解决方案对我有用。 尝试从RVM安装或直接编译时,我收到很多这样的警告
tcltklib.c:8143: warning: implicit conversion shortens 64-bit value into a 32-bit value
最后这个错误
/usr/local/lib/libsqlite3.dylib,file was built for unsupported file format which is not the architecture being linked (x86_64) for architecture x86_64
collect2: ld returned 1 exit status
我尝试在.bash_profile文件中设置ARCHFLAGS = \“-arch x86_64 \”,然后重新安装sqlite3。 任何想法?     

解决方法

        尝试按此处所述将sqlite3安装为64位: http://www.markhneedham.com/blog/2010/07/08/installing-ruby-1-9-2-with-rvm-on-snow-leopard/