今天在安装gem安装Ruote的过程中遇到问题,改用bundle安装:
1 steven@steven-Latitude-D630:/usr$ sudo mkdir bundel 2 [sudo] password for steven: 3 Sorry, try again. 4 [sudo] password for steven: 5 steven@steven-Latitude-D630:/usr$ cd bundel/ 6 steven@steven-Latitude-D630:/usr/bundel$ vi Gemfile 7 steven@steven-Latitude-D630:/usr/bundel$ sudo vi Gemfile 8 steven@steven-Latitude-D630:/usr/bundel$ bun 9 bundle bunzip2 10 steven@steven-Latitude-D630:/usr/bundel$ bundle install 11 The source :rubygems is deprecated because HTTP requests are insecure. 12 Please change your source to 'https://rubygems.org' if possible, or 'http://rubygems.org' if not. 13 Fetching gem metadata from http://rubygems.org/......... 14 Resolving dependencies... 15 Using atomic (1.1.14) 16 Installing blankslate (2.1.2.4) 17 Installing tins (0.13.1) 18 Installing file-tail (1.0.12) 19 Installing parslet (1.4.0) 20 Installing sexp_processor (3.2.0) 21 Installing ruby_parser (2.3.1) 22 Installing ruby2ruby (1.3.1) 23 Installing rufus-json (1.0.6) 24 Installing rufus-cloche (1.0.4) 25 Installing rufus-dollar (1.0.4) 26 Installing rufus-mnemo (1.2.3) 27 Using thread_safe (0.1.3) 28 Installing tzinfo (1.1.0) 29 Installing rufus-scheduler (3.0.2) 30 Installing rufus-treechecker (1.0.8) 31 Installing sourcify (0.5.0) 32 Using ruote (2.3.1) from source at .. 33 Errno::EACCES: Permission denied - ruote-2.3.1.gem 34 An error occurred while installing ruote (2.3.1), and Bundler cannot continue. 35 Make sure that `gem install ruote -v '2.3.1'` succeeds before bundling. 36 steven@steven-Latitude-D630:/usr/bundel$ gem install ruote -v '2.3.1' 37 ERROR: Could not find a valid gem 'ruote' (= 2.3.1) in any repository 38 ^CERROR: Interrupted 39 steven@steven-Latitude-D630:/usr/bundel$ gem install ruote -v '2.3.0' 40 Fetching: ruote-2.3.0.gem (100%) 41 Successfully installed ruote-2.3.0 42 Parsing documentation for ruote-2.3.0 43 Installing ri documentation for ruote-2.3.0 44 1 gem installed 45 steven@steven-Latitude-D630:/usr/bundel$
其中在Gemfile中写的加入的内容是:
1 source :rubygems 2 3 gem 'yajl-ruby', '1.1.0', :require => 'yajl' 4 5 #gem 'ruote', '>= 2.3.0' 6 #gem 'ruote', :git => 'git://github.com/jmettraux/ruote.git' 7 gem 'ruote', :path => '..'
1 steven@ubuntu:~/ruote/quickstart$ ruby -v 2 ruby 2.0.0p247 (2013-06-27 revision 41674) [i686-linux]
1 steven@ubuntu:~/ruote/quickstart$ gem -v 2 2.1.11