업데이트 II 문제가 해결되었지만 왜? 이것은 가장 큰 두통입니다. 내 문제는 해결되었지만이 작업을 어떻게 수행했는지 전혀 모른다. 또한 다음 결과는 의미가 없습니다. 내 .profile 경로 (/ usr/local/bin)는 현재 작동중인 경로 (/ usr/bin /)와 다릅니다. OSX Snow Leopard의 터미널을 닫은 후 작업 경로가 갑자기 나타났습니다. 여기서 무슨 일이 일어나고있는거야?열차 사고. 레일즈가 필요합니다 RubyGems> = 1.3.2
$ rails -v
Rails 3.0.0.beta
$ ruby -v
ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0]
$ gem -v
1.3.6
$ whereis ruby
/usr/bin/ruby
$ whereis rails
/usr/bin/rails
$ whereis gem
/usr/bin/gem
$ which gem
/usr/bin/gem
$ which ruby
/usr/bin/ruby
$ which rails
/usr/bin/rails
$ mate ~/.profile
.profile 파일 : 여기
이 작업 경로와 혼란의 .profile 파일입니다export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH"
if [[ -s /Users/justinz/.rvm/scripts/rvm ]] ; then source /Users/justinz/.rvm/scripts/rvm ; fi
업데이트 나는 루비와 whereis 루비는 다른 위치가있는 것을 알
which ruby
/opt/local/bin/ruby
whereis ruby
/usr/bin/ruby
최근에 루비를 ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10]
그리고 나는 레일을 부러 뜨렸다 고 생각합니다. 레일을로드하려고 할 때. 나는 이상한 메시지를 받는다. 도와주세요!
$ ruby 스크립트/서버 레일에는 RubyGems 이상 = 1.3.2가 필요합니다. 젬을 설치하고 다시 시도하십시오 : http://rubygems.rubyforge.org
$ which ruby
/usr/local/bin/ruby
$ whereis ruby
/usr/bin/ruby
$ which rails
/usr/local/bin/rails
$ whereis rails
/usr/bin/rails
$ which gem
/usr/local/bin/gem
$ whereis gem
/usr/bin/gem
$ ruby -v
ruby 1.8.7 (2008-08-11 patchlevel 72) [i686-darwin10.2.0]
$ rails -v
Rails 2.3.5
$ gem list
*** LOCAL GEMS ***
actionmailer (2.3.5)
actionpack (2.3.5)
activerecord (2.3.5)
activeresource (2.3.5)
activesupport (2.3.5)
builder (2.1.2)
bundler (0.9.11)
columnize (0.3.1)
erubis (2.6.5)
fastercsv (1.5.1)
ffi (0.6.3)
gbarcode (0.98.16)
i18n (0.3.5)
linecache (0.43)
mail (2.1.3)
memcache-client (1.8.0)
prawn (0.8.4)
prawn-core (0.8.4)
prawn-layout (0.8.4)
prawn-security (0.8.4)
rack (1.1.0, 1.0.1)
rack-mount (0.6.1)
rack-test (0.5.3)
rails (2.3.5)
rake (0.8.7)
ruby-debug (0.10.3)
ruby-debug-base (0.10.3)
rubygems-update (1.3.6)
sqlite3 (0.0.8)
text-format (1.0.0)
thor (0.13.4)
tzinfo (0.3.17)
$ sudo gem install sqlite3-ruby
Password:
Building native extensions. This could take a while...
ERROR: Error installing sqlite3-ruby:
ERROR: Failed to build gem native extension.
/usr/local/bin/ruby extconf.rb
checking for fdatasync() in -lrt... no
checking for sqlite3.h... yes
checking for sqlite3_open() in -lsqlite3... no
*** 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.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/usr/local/bin/ruby
--with-sqlite3-dir
--without-sqlite3-dir
--with-sqlite3-include
--without-sqlite3-include=${sqlite3-dir}/include
--with-sqlite3-lib
--without-sqlite3-lib=${sqlite3-dir}/lib
--with-rtlib
--without-rtlib
--with-sqlite3lib
--without-sqlite3lib
Gem files will remain installed in /usr/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.5 for inspection.
Results logged to /usr/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.5/ext/sqlite3_api/gem_make.out
내가 sudo는 보석 업데이트를 시도했습니다 추가해야 --system –
당신은 현재 내가이 같은 문제로 내 머리 밖으로 당겨 오전 (보석 -v) –
나는 1.3.6 –