2014-05-12 2 views
0

트위터의 twurl 명령을 사용해야합니다. 그렇게함으로써 나는 리눅스에서 Ruby와 Gem을 설치했다.gem 명령이 아무 것도하지 않습니다.

twurl의 최신 버전을 다운로드했지만 설치를 시도 할 때 자동으로 아무 것도하지 않습니다. 또한 oauth gem을 설치하려고 시도했지만 동일한 결과가 나타납니다. Gemspec 파일을 사용하여 빌드를 수행 할 수 있고 gem 파일을 생성하기 때문에 Gem이 작동해야합니다.

 
cam:~/twurl-master$ sudo gem build twurl.gemspec 
sh: git: command not found 
/usr/local/lib/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:55: command not found: git ls-files 
sh: git: command not found 
WARNING: description and summary are identical 
WARNING: See http://guides.rubygems.org/specification-reference/ for help 
    Successfully built RubyGem 
    Name: twurl 
    Version: 0.9.2 
    File: twurl-0.9.2.gem 

cam:~/twurl-master$ ls 
COPYING Gemfile INSTALL README Rakefile bin lib test twurl-0.9.2.gem twurl.gemspec 
cam:~/twurl-master$ sudo gem install twurl 
cam:~/twurl-master$ sudo gem install twurl --remote 
cam:~/twurl-master$ sudo gem list t 

*** LOCAL GEMS *** 


cam:~/twurl-master$ sudo gem env 
RubyGems Environment: 
    - RUBYGEMS VERSION: 2.2.2 
    - RUBY VERSION: 1.8.7 (2008-08-11 patchlevel 72) [i486-linux] 
    - INSTALLATION DIRECTORY: /usr/lib/ruby/gems/1.8 
    - RUBY EXECUTABLE: /usr/bin/ruby1.8 
    - EXECUTABLE DIRECTORY: /usr/bin 
    - SPEC CACHE DIRECTORY: /home/cam/.gem/specs 
    - RUBYGEMS PLATFORMS: 
    - ruby 
    - x86-linux 
    - GEM PATHS: 
    - /usr/lib/ruby/gems/1.8 
    - /home/cam/.gem/ruby/1.8 
    - GEM CONFIGURATION: 
    - :update_sources => true 
    - :verbose => true 
    - :backtrace => false 
    - :bulk_threshold => 1000 
    - REMOTE SOURCES: 
    - https://rubygems.org/ 
    - SHELL PATH: 
    - /usr/local/sbin 
    - /usr/local/bin 
    - /usr/sbin 
    - /usr/bin 
    - /sbin 
    - /bin 
    - /usr/X11R6/bin 
cam:~/twurl-master$ 

나는 무엇을 해야할지 알지 못합니다. Google에서 검색했지만 아무도이 특별한 문제가없는 것 같습니다. 오류 메시지가 매우 도움이되지 않습니다 ...

답변

0

문제가 무엇인지, 그와 관련되어 있는지는 확실하지 않지만, 경우에 따라 twurl gem에도 보석 oauth-0.4.7이 필요합니다.

관련 문제