質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Ruby on Rails 4

Ruby on Rails4はRubyによって書かれたオープンソースのウェブフレームワークです。 Ruby on Railsは「設定より規約」の原則に従っており、効率的に作業を行うために再開発を行う必要をなくしてくれます。

Q&A

解決済

1回答

373閲覧

gemでpayjpをインストールできない状態になっています。

avicii

総合スコア49

Ruby on Rails 4

Ruby on Rails4はRubyによって書かれたオープンソースのウェブフレームワークです。 Ruby on Railsは「設定より規約」の原則に従っており、効率的に作業を行うために再開発を行う必要をなくしてくれます。

0グッド

0クリップ

投稿2019/08/26 08:10

今、私は、決済代行サービスpayjpを導入しようと考えているのですが、エラーによってインストールできない状態になっています。もしわかる方がいらしたら教えて頂きたいです。

error

1$ bundle install 2 3Fetching source index from https://rubygems.org/ 4 5Retrying fetcher due to error (2/4): Bundler::HTTPError Could not fetch specs from https://rubygems.org/ 6Retrying fetcher due to error (3/4): Bundler::HTTPError Could not fetch specs from https://rubygems.org/ 7Retrying fetcher due to error (4/4): Bundler::HTTPError Could not fetch specs from https://rubygems.org/ 8Could not fetch specs from https://rubygems.org/

実行したこと

try

1$ gem update --system 2Latest version currently installed. Aborting. 3 4$ bundle install 5 6Fetching source index from https://rubygems.org/ 7 8Retrying fetcher due to error (2/4): Bundler::HTTPError Could not fetch specs from https://rubygems.org/ 9Retrying fetcher due to error (3/4): Bundler::HTTPError Could not fetch specs from https://rubygems.org/ 10Retrying fetcher due to error (4/4): Bundler::HTTPError Could not fetch specs from https://rubygems.org/ 11Could not fetch specs from https://rubygems.org/

Gemfile

1source 'https://rubygems.org' 2 3# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' 4gem 'rails', '4.2.11' 5# Use mysql as the database for Active Record 6gem 'mysql2', '0.3.18' 7# Use SCSS for stylesheets 8gem 'sass-rails', '~> 4.0.2' 9# Use Uglifier as compressor for JavaScript assets 10gem 'uglifier', '>= 1.3.0' 11# Use CoffeeScript for .coffee assets and views 12gem 'coffee-rails', '~> 4.1.0' 13# See https://github.com/rails/execjs#readme for more supported runtimes 14# gem 'therubyracer', platforms: :ruby 15 16# Use jquery as the JavaScript library 17gem 'jquery-rails' 18# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks 19gem 'turbolinks' 20# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder 21gem 'jbuilder', '~> 2.0' 22# bundle exec rake doc:rails generates the API under doc/api. 23gem 'sdoc', '~> 0.4.0', group: :doc 24 25# Use ActiveModel has_secure_password 26# gem 'bcrypt', '~> 3.1.7' 27 28# Use Unicorn as the app server 29# gem 'unicorn' 30 31# Use Capistrano for deployment 32# gem 'capistrano-rails', group: :development 33 34group :development, :test do 35 # Call 'byebug' anywhere in the code to stop execution and get a debugger console 36 gem 'byebug' 37end 38 39group :development do 40 # Access an IRB console on exception pages or by using <%= console %> in views 41 gem 'web-console', '~> 2.0' 42 43 # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring 44 gem 'spring' 45end 46 47gem 'payjp' 48gem 'pry-rails' 49gem 'compass-rails','~> 2.0' 50gem 'sprockets', '2.11.0' 51gem 'websocket-rails' 52 53#pagenation 54gem 'kaminari' 55 56#login_logout 57gem 'devise' 58gem 'paperclip' 59 60#For Heroku 61gem 'rails_12factor', group: :production 62gem 'therubyracer', platforms: :ruby 63 64#画像 65gem 'carrierwave' 66gem 'rmagick' 67

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

ベストアンサー

「コマンドを入力している環境からインターネットに接続できない」という可能性が考えられます。

エラーの内容は、「https://rubygems.org/と通信できないため、gemのメタデータが取得できません(大意)」というものです。

投稿2019/08/26 08:12

maisumakun

総合スコア145183

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問