2011-04-03 33 views
0

因爲sqlite3mysql2不會在Leopard上編譯,所以我試過升級到雪豹,然後安裝的XCode 3.2.6,並升級到新的RVM 1.5.2,但是當我做升級到Snow Leopard後,現在「rvm install 1.9.2」會說「文件是爲i386建立的,而不是被鏈接的架構(x86_64)」

rvm install 1.9.2 

它會說

ld: warning: in dmyext.o, file was built for i386 which is not the architecture 
    being linked (x86_64) 

另外,如果我做了bundle install ,它會說

/Users/peter/.rvm/rubies/ruby-1.9.2-p180/bin/ruby extconf.rb 
checking for sqlite3.h... *** extconf.rb failed *** 
Could not create Makefile due to some reason, probably lack of 
necessary libraries and/or headers. Check the mkmf.log file for more 
details. You may need configuration options. 

有沒有一種公民的方式來處理這個問題?

回答

0

我試圖

rvm install 1.9.2-head 

,它是確定的,所以我懷疑可能是由於系統上的某些對象文件......反正,後來我做了

rvm remove 1.9.2-p0 
rvm remove 1.9.2-p180 

等。 ..只是刪除所有的1.9.2,並做一個rvm install 1.9.2,現在是成功的,rvm list將顯示:

ruby-1.8.6-p399 [ i386 ] 
    ruby-1.8.7-p302 [ i386 ] 
    ruby-1.8.7-p330 [ i386 ] 
=> ruby-1.9.2-p180 [ x86_64 ] 

請注意1.8.7i386,而1.9.2x86_64

相關問題