uni에서 무언가를 개발하고 집에 계속 머물고 자하는 Dropbox에 저장했습니다. 그러나rvm에서 분할 오류가 발생했습니다. RSpec을 실행할 때 Mac에서 Ruby를 사용합니다.
$ spec graph_spec.rb
/Users/amadan/.rvm/gems/ruby-1.9.2-rc1/gems/PriorityQueue-0.1.2/ext/priority_queue/CPriorityQueue.bundle: [BUG] Segmentation fault
ruby 1.8.7 (2009-06-12 patchlevel 174) [universal-darwin10.0]
,
$ `which spec` graph_spec.rb
...........................................................................
Finished in 0.046973 seconds
75 examples, 0 failures
는 도대체 여기 무슨 일이 나를 환영 메시지인가? 참고로
:
$ which spec
/Users/amadan/.rvm/gems/ruby-1.9.2-rc1/bin/spec
업데이트 : 난 그냥 거기 1.8.7를 발견 ... 어떻게 거기에 도착 했습니까? 사양 파일의 상단에는 다음과 같이 표시됩니다.
$ head `which spec`
#!/Users/amadan/.rvm/rubies/ruby-1.9.2-rc1/bin/ruby
#
# This file was generated by RubyGems.
#
# The application 'rspec' is installed as part of a gem, and
# this file is here to facilitate running it.
#
require 'rubygems'
"run 1.8.7"
답을 얻으려면 $ PATH를 보여줘야합니다. –
'which'는'$ PATH'에 첫번째 파일을줍니다. 그 후, 루비는 해시 뱅 라인의 절대 경로로로드되어야합니다. 따라서'$ PATH'가 관련성이 있다고 생각할 수있는 유일한 곳에서'which spec' 명령의 출력으로 충분한 정보를 제공합니다. – Amadan