2012-05-18 4 views
2

I가 내가 일어나려고 실행,하지만 난 DB를 마이그레이션 할 때라고하고 exsisting 루비 레일 프로젝트 :특정 보석을 설치할 수 없습니다

$ rake db:migrate 

Could not find json-1.6.5 in any of the sources 

그때 설치하려고 특정 보석, 실패!

$ gem install json -v '1.6.5' 

Fetching: json-1.6.5.gem (100%) 
Building native extensions. This could take a while... 
ERROR: Error installing json: 
     ERROR: Failed to build gem native extension. 

     /Users/dev/.rvm/rubies/ruby-1.9.2-p136/bin/ruby extconf.rb 
creating Makefile 

make 
sh: make: command not found 


Gem files will remain installed in /Users/dev/.rvm/gems/[email protected]/gems/json-1.6.5 for inspection. 
Results logged to /Users/dev/.rvm/gems/[email protected]/gems/json-1.6.5/ext/json/ext/parser/gem_make.out 

답변

0

난 당신이 루비의 시스템을 따라 패키지 libjson 루비를 설치해야합니다 생각합니다. 이 패키지를 설치하면이 오류가 해결됩니다.

+0

시도한 gem install libjson-ruby를 찾을 수 없습니다. 제가 Google로 데비안을위한 보석 인 것처럼 보입니다. 나는 Mac을 운영하고 있습니다. 그리고 보석 목록을 만들 때 - 원격 json에는 libjson-ruby – lmkk

2

일부 명령 줄 도구가 누락 된 것 같습니다.

GNU Make 3.81 
Copyright (C) 2006 Free Software Foundation, Inc. 
This is free software; see the source for copying conditions. 
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A 
PARTICULAR PURPOSE. 

This program built for i386-apple-darwin11.0 
: 비슷해야

/usr/bin/make 

$ make -v 

:

당신이 뭔가를 반환해야합니다

$ whereis make 

를 설치 만든다했는지 확인

이 문서가 보이지 않으면 https://stackoverflow.com/a/10217910/335523

관련 문제