From: Shu Cao Date: 2010-03-24T13:46:09+09:00 Subject: Re: how to install nokogiri $ sudo `which gem` install ... On Wed, Mar 24, 2010 at 11:34 AM, Pen Ttt wrote: > in my terminal > pt@pt-laptop:~$ gem > RubyGems is a sophisticated package manager for Ruby.  This is a > basic help message containing pointers to more information. > >  Usage: >    gem -h/--help >    gem -v/--version >    gem command [arguments...] [options...] > >  Examples: >    gem install rake >    gem list --local >    gem build package.gemspec >    gem help install > >  Further help: >    gem help commands            list all 'gem' commands >    gem help examples            show some examples of usage >    gem help platforms           show information about platforms >    gem help           show help on COMMAND >                                   (e.g. 'gem help install') >    gem server                   present a web page at >                                 http://localhost:8808/ >                                 with info about installed gems >  Further information: >    http://rubygems.rubyforge.org > pt@pt-laptop:~$ gem install nokogiri > ERROR:  While executing gem ... (Gem::FilePermissionError) >    You don't have write permissions into the > /usr/local/ruby/lib/ruby/gems/1.9.1 directory. > pt@pt-laptop:~$ sudo gem install nokogiri > sudo: gem: command not found > how can i install nokogiri in my computer?what's wrong with my computer? > -- > Posted via http://www.ruby-forum.com/. > >