Last login: Thu Sep 13 14:09:07 on ttys001
liuyuelin@liuyuelindeMacBook-Pro ⮀ ~ ⮀ cd Documents/workspace/projekt
liuyuelin@liuyuelindeMacBook-Pro ⮀ ~/Documents/workspace/projekt ⮀ ⭠ master± ⮀
atom .
liuyuelin@liuyuelindeMacBook-Pro ⮀ ~/Documents/workspace/projekt ⮀ ⭠ master± ⮀
gem install mailcatcher
ERROR: Could not find a valid gem 'mailcatcher' (>= 0) in any repository
✘ liuyuelin@liuyuelindeMacBook-Pro ⮀ ~/Documents/workspace/projekt ⮀ ⭠ master± ⮀ gem sources --add http://rubygems.org/
https://rubygems.org is recommended for security over http://rubygems.org/
Do you want to add this insecure source? [yn] n
✘ liuyuelin@liuyuelindeMacBook-Pro ⮀ ~/Documents/workspace/projekt ⮀ ⭠ master± ⮀ gem sources --add http://rubygems.org
https://rubygems.org is recommended for security over http://rubygems.org
Do you want to add this insecure source? [yn] n
✘ liuyuelin@liuyuelindeMacBook-Pro ⮀ ~/Documents/workspace/projekt ⮀ ⭠ master± ⮀ gem list --local
*** LOCAL GEMS ***
aasm (4.12.3)
actioncable (5.2.1, 5.2.0, 5.1.5, 5.1.4, 5.0.7, 5.0.2, 5.0.0)
actionmailer (5.2.1, 5.2.0, 5.1.5, 5.1.4, 5.0.7, 5.0.2, 5.0.0)
actionpack (5.2.1, 5.2.0, 5.1.5, 5.1.4, 5.0.7, 5.0.2, 5.0.0)
actionview (5.2.1, 5.2.0, 5.1.5, 5.1.4, 5.0.7, 5.0.2, 5.0.0)
activejob (5.2.1, 5.2.0, 5.1.5, 5.1.4, 5.0.7, 5.0.2, 5.0.0)
activemodel (5.2.1, 5.2.0, 5.1.5, 5.1.4, 5.0.7, 5.0.2, 5.0.0)
activerecord (5.2.1, 5.2.0, 5.1.5, 5.1.4, 5.0.7, 5.0.2, 5.0.0)
activestorage (5.2.1, 5.2.0)
activesupport (5.2.1, 5.2.0, 5.1.5, 5.1.4, 5.0.7, 5.0.2, 5.0.0)
acts_as_votable (0.11.1)
addressable (2.5.2, 2.5.1)
airbrussh (1.3.0)
archive-zip (0.11.0)
arel (9.0.0, 8.0.0, 7.1.4, 7.1.1)
autoparse (0.3.3)
autoprefixer-rails (9.0.0, 8.6.5, 6.7.7.2)
bcrypt (3.1.12, 3.1.11)
better_errors (2.5.0, 2.4.0)
bigdecimal (default: 1.2.8)
bindex (0.5.0)
binding_of_caller (0.8.0)
bootsnap (1.3.2, 1.3.1)
bootstrap-sass (3.3.7)
braintree (2.74.0)
builder (3.2.3, 3.2.2)
bulma-rails (0.7.1, 0.6.2, 0.6.1)
bundler (default: 1.16.2)
bundler-unload (1.0.2)
byebug (10.0.2, 10.0.1, 9.1.0, 9.0.5)
capistrano (3.11.0)
capistrano-bundler (1.3.0)
capistrano-passenger (0.2.0)
capistrano-rails (1.4.0)
capybara (3.7.2, 3.6.0, 3.5.1, 3.5.0, 3.4.2, 3.4.0, 3.3.1, 2.18.0, 2.16.1, 2.16.0)
carrierwave (1.2.3, 1.2.1)
childprocess (0.9.0, 0.8.0)
chromedriver-helper (1.2.0)
chunky_png (1.3.10)
climate_control (0.1.0)
cocaine (0.5.8)
coderay (1.1.2)
coffee-rails (4.2.2, 4.2.1)
coffee-script (2.4.1)
coffee-script-source (1.12.2, 1.10.0, 1.8.0)
compass (1.0.3)
compass-core (1.0.3)
compass-import-once (1.0.5)
concurrent-ruby (1.0.5, 1.0.2)
connection_pool (2.2.2)
countries (2.0.8)
country_select (3.0.0)
crass (1.0.4, 1.0.3)
daemons (1.2.6)
debug_inspector (0.0.3, 0.0.2)
devise (4.5.0, 4.4.3, 4.3.0, 4.2.1)
did_you_mean (1.0.0)
diff-lcs (1.3)
em-websocket (0.5.1)
erubi (1.7.1, 1.7.0)
erubis (2.7.0)
eventmachine (1.2.7, 1.2.5)
execjs (2.7.0)
executable-hooks (1.5.0)
extlib (0.9.16)
faraday (0.15.2, 0.12.1)
ffi (1.9.25, 1.9.23, 1.9.18, 1.9.14)
figaro (1.1.1)
font-awesome-rails (4.7.0.4)
formatador (0.2.5)
gem-wrappers (1.4.0)
globalid (0.4.1, 0.3.7)
google-api-client (0.8.6)
googleauth (0.5.1)
gravatar_image_tag (1.2.0)
guard (2.14.2, 2.14.1)
guard-compat (1.2.1)
guard-livereload (2.5.2)
haml (5.0.4)
http_parser.rb (0.6.0)
i18n (1.1.0, 1.0.1, 0.9.5, 0.9.1, 0.8.1, 0.7.0)
i18n_data (0.7.0)
impressionist (1.6.1, 1.6.0)
io-console (default: 0.4.5)
io-like (0.3.0)
jbuilder (2.7.0, 2.6.3, 2.6.0)
jquery-rails (4.3.3, 4.3.1, 4.1.1)
json (2.1.0, default: 1.8.3)
jwt (1.5.6)
launchy (2.4.3)
letter_opener (1.6.0)
listen (3.1.5, 3.0.8)
little-plugger (1.1.4)
logging (2.2.2)
loofah (2.2.2, 2.1.1, 2.0.3)
lumberjack (1.0.13, 1.0.12)
mail (2.7.0, 2.6.4)
mailcatcher (0.2.4)
marcel (0.3.2)
memoist (0.15.0)
method_source (0.9.0, 0.8.2)
mime-types (3.2.2, 3.1)
mime-types-data (3.2018.0812, 3.2016.0521)
mimemagic (0.3.2)
mini_magick (4.8.0)
mini_mime (1.0.1, 1.0.0)
mini_portile2 (2.3.0, 2.1.0)
minitest (5.11.3, 5.10.3, 5.10.1, 5.9.0, 5.8.5)
money (6.8.3)
msgpack (1.2.4)
multi_json (1.13.1, 1.12.2, 1.12.1)
multipart-post (2.0.0)
mustermann (1.0.3)
mysql2 (0.5.2)
nenv (0.3.0)
net-scp (1.2.1)
net-ssh (5.0.2)
net-telnet (0.1.1)
nio4r (2.3.1, 2.3.0, 2.1.0, 2.0.0, 1.2.1)
nokogiri (1.8.4, 1.8.2, 1.8.1, 1.7.1, 1.6.8)
notiffany (0.1.1)
orm_adapter (0.5.0)
os (0.9.6)
paperclip (5.1.0)
pg (1.1.3, 1.0.0, 0.20.0)
pkg-config (1.1.7)
power_assert (0.2.6)
pry (0.11.3)
psych (default: 2.1.0)
public_activity (1.6.2)
public_suffix (3.0.3, 3.0.2, 3.0.1, 2.0.5)
puma (3.12.0, 3.11.4, 3.11.3, 3.11.0, 3.10.0, 3.8.2, 3.6.0)
rack (2.0.5, 2.0.4, 2.0.3, 2.0.1)
rack-protection (2.0.3)
rack-proxy (0.6.4)
rack-test (1.1.0, 1.0.0, 0.8.3, 0.8.2, 0.7.0, 0.6.3)
rails (5.2.1, 5.2.0, 5.1.5, 5.1.4, 5.0.7, 5.0.2, 5.0.0)
rails-dom-testing (2.0.3, 2.0.2, 2.0.1)
rails-html-sanitizer (1.0.4, 1.0.3)
rails-ujs (0.1.0)
railties (5.2.1, 5.2.0, 5.1.5, 5.1.4, 5.0.7, 5.0.2, 5.0.0)
rake (12.3.1, 12.3.0, 12.2.1, 12.0.0, 11.2.2, 10.4.2)
rb-fsevent (0.10.3, 0.10.2, 0.9.7)
rb-inotify (0.9.10, 0.9.7)
rdoc (default: 4.2.1)
redis (4.0.1)
responders (2.4.0, 2.3.0)
retriable (1.4.1)
rspec-core (3.7.1)
rspec-expectations (3.7.0)
rspec-mocks (3.7.0)
rspec-rails (3.7.2)
rspec-support (3.7.1)
ruby_dep (1.5.0)
rubygems-bundler (1.4.5)
rubyzip (1.2.2, 1.2.1)
rvm (1.11.3.9)
sass (3.5.7, 3.5.6, 3.5.4, 3.5.3, 3.4.23, 3.4.22)
sass-listen (4.0.0)
sass-rails (5.0.7, 5.0.6)
selenium-webdriver (3.14.0, 3.13.1, 3.13.0, 3.11.0, 3.8.0, 3.7.0)
shellany (0.0.1)
sidekiq (5.1.3)
signet (0.7.3)
simple_form (4.0.1, 3.5.1, 3.5.0)
sinatra (2.0.3)
sixarm_ruby_unaccent (1.1.1)
skinny (0.2.2)
sort_alphabetical (1.1.0)
spring (2.0.2, 1.7.2)
spring-watcher-listen (2.0.1, 2.0.0)
sprockets (3.7.2, 3.7.1, 3.7.0)
sprockets-rails (3.2.1, 3.2.0, 3.1.1)
sqlite3 (1.3.13, 1.3.11)
sqlite3-ruby (1.3.3)
sshkit (1.17.0)
stripe (3.17.2)
temple (0.8.0)
test-unit (3.1.5)
thin (1.7.2)
thor (0.20.0, 0.19.4, 0.19.1)
thread_safe (0.3.6, 0.3.5)
tilt (2.0.8, 2.0.7, 2.0.5)
trix (0.9.10)
turbolinks (5.2.0, 5.1.1, 5.1.0, 5.0.1, 5.0.0)
turbolinks-source (5.2.0, 5.1.0, 5.0.3, 5.0.0)
tzinfo (1.2.5, 1.2.4, 1.2.3, 1.2.2)
uglifier (4.1.19, 4.1.18, 4.1.17, 4.1.16, 4.1.15, 4.1.14, 4.1.8, 4.0.2, 3.2.0, 3.0.1)
unicode_utils (1.4.0)
warden (1.2.7)
web-console (3.7.0, 3.6.2, 3.5.1, 3.5.0, 3.3.1)
webpacker (3.5.5)
websocket-driver (0.7.0, 0.6.5, 0.6.4)
websocket-extensions (0.1.3, 0.1.2)
will_paginate (3.1.6)
wysiwyg-rails (2.8.5)
xpath (3.1.0, 3.0.0, 2.1.0)
liuyuelin@liuyuelindeMacBook-Pro ⮀ ~/Documents/workspace/projekt ⮀ ⭠ master± ⮀
gem update mailcatcher
Updating installed gems
Nothing to update
liuyuelin@liuyuelindeMacBook-Pro ⮀ ~/Documents/workspace/projekt ⮀ ⭠ master± ⮀
mailcatcher
Starting MailCatcher
==> smtp://127.0.0.1:1025
==> http://127.0.0.1:1080
/Users/liuyuelin/.rvm/gems/ruby-2.3.3/gems/eventmachine-1.2.7/lib/eventmachine.rb:531:in `start_tcp_server': no acceptor (port is in use or requires root privileges) (RuntimeError)
from /Users/liuyuelin/.rvm/gems/ruby-2.3.3/gems/eventmachine-1.2.7/lib/eventmachine.rb:531:in `start_server'
from /Users/liuyuelin/.rvm/gems/ruby-2.3.3/gems/thin-1.7.2/lib/thin/backends/tcp_server.rb:16:in `connect'
from /Users/liuyuelin/.rvm/gems/ruby-2.3.3/gems/thin-1.7.2/lib/thin/backends/base.rb:63:in `block in start'
from /Users/liuyuelin/.rvm/gems/ruby-2.3.3/gems/thin-1.7.2/lib/thin/backends/base.rb:70:in `start'
from /Users/liuyuelin/.rvm/gems/ruby-2.3.3/gems/thin-1.7.2/lib/thin/server.rb:162:in `start'
from /Users/liuyuelin/.rvm/gems/ruby-2.3.3/gems/thin-1.7.2/lib/thin/server.rb:148:in `start'
from /Users/liuyuelin/.rvm/gems/ruby-2.3.3/gems/mailcatcher-0.2.4/lib/mail_catcher.rb:23:in `block in run'
from /Users/liuyuelin/.rvm/gems/ruby-2.3.3/gems/eventmachine-1.2.7/lib/eventmachine.rb:195:in `run_machine'
from /Users/liuyuelin/.rvm/gems/ruby-2.3.3/gems/eventmachine-1.2.7/lib/eventmachine.rb:195:in `run'
from /Users/liuyuelin/.rvm/gems/ruby-2.3.3/gems/mailcatcher-0.2.4/lib/mail_catcher.rb:21:in `run'
from /Users/liuyuelin/.rvm/gems/ruby-2.3.3/gems/mailcatcher-0.2.4/bin/mailcatcher:44:in `<top (required)>'
from /Users/liuyuelin/.rvm/gems/ruby-2.3.3/bin/mailcatcher:23:in `load'
from /Users/liuyuelin/.rvm/gems/ruby-2.3.3/bin/mailcatcher:23:in `<main>'
from /Users/liuyuelin/.rvm/gems/ruby-2.3.3/bin/ruby_executable_hooks:24:in `eval'
from /Users/liuyuelin/.rvm/gems/ruby-2.3.3/bin/ruby_executable_hooks:24:in `<main>'
✘ liuyuelin@liuyuelindeMacBook-Pro ⮀ ~/Documents/workspace/projekt ⮀ ⭠ master± ⮀ sudo mailcatcher
Password:
/Users/liuyuelin/.rvm/rubies/ruby-2.3.3/lib/ruby/site_ruby/2.3.0/rubygems.rb:289:in `find_spec_for_exe': can't find gem mailcatcher (>= 0.a) with executable mailcatcher (Gem::GemNotFoundException)
from /Users/liuyuelin/.rvm/rubies/ruby-2.3.3/lib/ruby/site_ruby/2.3.0/rubygems.rb:308:in `activate_bin_path'
from /Users/liuyuelin/.rvm/gems/ruby-2.3.3/bin/mailcatcher:23:in `<main>'
from /Users/liuyuelin/.rvm/gems/ruby-2.3.3/bin/ruby_executable_hooks:24:in `eval'
from /Users/liuyuelin/.rvm/gems/ruby-2.3.3/bin/ruby_executable_hooks:24:in `<main>'
✘ liuyuelin@liuyuelindeMacBook-Pro ⮀ ~/Documents/workspace/projekt ⮀ ⭠ master± ⮀ gem uninstall mailcatcher
Remove executables:
mailcatcher
in addition to the gem? [Yn] y
Removing mailcatcher
Successfully uninstalled mailcatcher-0.2.4
liuyuelin@liuyuelindeMacBook-Pro ⮀ ~/Documents/workspace/projekt ⮀ ⭠ master± ⮀
gem install mailcatcher
ERROR: Could not find a valid gem 'mailcatcher' (>= 0) in any repository
✘ liuyuelin@liuyuelindeMacBook-Pro ⮀ ~/Documents/workspace/projekt ⮀ ⭠ master± ⮀ gem install mailcatcher
ERROR: Could not find a valid gem 'mailcatcher' (>= 0) in any repository
✘ liuyuelin@liuyuelindeMacBook-Pro ⮀ ~/Documents/workspace/projekt ⮀ ⭠ master± ⮀ gem source -add https://rubygems.org/
dd is not a URI
✘ liuyuelin@liuyuelindeMacBook-Pro ⮀ ~/Documents/workspace/projekt ⮀ ⭠ master± ⮀ gem sources --add https://rubygems.org/
https://rubygems.org/ added to sources
liuyuelin@liuyuelindeMacBook-Pro ⮀ ~/Documents/workspace/projekt ⮀ ⭠ master± ⮀
gem install mailcatcher
Fetching: eventmachine-1.0.9.1.gem (100%)
Building native extensions. This could take a while...
Successfully installed eventmachine-1.0.9.1
Fetching: rack-1.6.10.gem (100%)
Successfully installed rack-1.6.10
Fetching: rack-protection-1.5.5.gem (100%)
Successfully installed rack-protection-1.5.5
Fetching: sinatra-1.4.8.gem (100%)
Successfully installed sinatra-1.4.8
Fetching: thin-1.5.1.gem (100%)
Building native extensions. This could take a while...
Successfully installed thin-1.5.1
Fetching: skinny-0.2.4.gem (100%)
Successfully installed skinny-0.2.4
Fetching: mailcatcher-0.6.5.gem (100%)
Successfully installed mailcatcher-0.6.5
Parsing documentation for eventmachine-1.0.9.1
Installing ri documentation for eventmachine-1.0.9.1
Parsing documentation for rack-1.6.10
Installing ri documentation for rack-1.6.10
Parsing documentation for rack-protection-1.5.5
Installing ri documentation for rack-protection-1.5.5
Parsing documentation for sinatra-1.4.8
Installing ri documentation for sinatra-1.4.8
Parsing documentation for thin-1.5.1
Installing ri documentation for thin-1.5.1
Parsing documentation for skinny-0.2.4
Installing ri documentation for skinny-0.2.4
Parsing documentation for mailcatcher-0.6.5
Installing ri documentation for mailcatcher-0.6.5
Done installing documentation for eventmachine, rack, rack-protection, sinatra, thin, skinny, mailcatcher after 193 seconds
7 gems installed
流程总结:
gem list --local
检查本地 gem 是否含有 mailcatcher
*** LOCAL GEMS ***
mailcatcher (0.2.4)
手动更新 mailcatcher : gem updae mailcatcher
Updating installed gems
Nothing to update
删除本地 mailcatcher: gem uninstall mailcatcher
✘ liuyuelin@liuyuelindeMacBook-Pro ⮀ ~/Documents/workspace/projekt ⮀ ⭠ master± ⮀ gem uninstall mailcatcher
Remove executables:
mailcatcher
in addition to the gem? [Yn] y
Removing mailcatcher
Successfully uninstalled mailcatcher-0.2.4
安装 mailcatcher: gem install mailcatcher
liuyuelin@liuyuelindeMacBook-Pro ⮀ ~/Documents/workspace/projekt ⮀ ⭠ master± ⮀
gem install mailcatcher
ERROR: Could not find a valid gem 'mailcatcher' (>= 0) in any repository
检查 gem sources: gem sources
*** CURRENT SOURCES ***
添加 gem sources: gem sources --add https://rubygems.org/
liuyuelin@liuyuelindeMacBook-Pro ⮀ ~/Documents/workspace/projekt ⮀ ⭠ master± ⮀ gem sources --add https://rubygems.org/
https://rubygems.org/ added to sources
再次检查 gem sources: gem sources
*** CURRENT SOURCES ***
https://rubygems.org/
安装 mailcatcher: gem install mailcatcher
liuyuelin@liuyuelindeMacBook-Pro ⮀ ~/Documents/workspace/projekt ⮀ ⭠ master± ⮀
gem install mailcatcher
Fetching: eventmachine-1.0.9.1.gem (100%)
Building native extensions. This could take a while...
Successfully installed eventmachine-1.0.9.1
Fetching: rack-1.6.10.gem (100%)
Successfully installed rack-1.6.10
Fetching: rack-protection-1.5.5.gem (100%)
Successfully installed rack-protection-1.5.5
Fetching: sinatra-1.4.8.gem (100%)
Successfully installed sinatra-1.4.8
Fetching: thin-1.5.1.gem (100%)
Building native extensions. This could take a while...
Successfully installed thin-1.5.1
Fetching: skinny-0.2.4.gem (100%)
Successfully installed skinny-0.2.4
Fetching: mailcatcher-0.6.5.gem (100%)
Successfully installed mailcatcher-0.6.5
Parsing documentation for eventmachine-1.0.9.1
Installing ri documentation for eventmachine-1.0.9.1
Parsing documentation for rack-1.6.10
Installing ri documentation for rack-1.6.10
Parsing documentation for rack-protection-1.5.5
Installing ri documentation for rack-protection-1.5.5
Parsing documentation for sinatra-1.4.8
Installing ri documentation for sinatra-1.4.8
Parsing documentation for thin-1.5.1
Installing ri documentation for thin-1.5.1
Parsing documentation for skinny-0.2.4
Installing ri documentation for skinny-0.2.4
Parsing documentation for mailcatcher-0.6.5
Installing ri documentation for mailcatcher-0.6.5
Done installing documentation for eventmachine, rack, rack-protection, sinatra, thin, skinny, mailcatcher after 193 seconds
7 gems installed
检查本地是否安装成功: gem list --local
*** LOCAL GEMS ***
mailcatcher (0.6.5)
刘月林
写于浙江宁波
2018/09/14
网友评论