LoginSignup
3
3

More than 5 years have passed since last update.

Windowsで、Padrinoのpluginがインストール出来ないとき

Posted at

WindowsでPadrinoのpluginをインストールしようとすると、
couldn't findとエラーが出てインストール出来ない。
bundle exec padrino g plugin -lで一覧はでるのに。

これは、どうもSSL関係が悪さをしているみたい。
なので、https://gist.github.com/fnichol/867550にある解決方法を
利用させていただく。

やり方はリンク先にあるけども、一応。


リンク先にあるファイルは本来RailsInstaller用で、C:\RailsInstallerがないとエラーが出るので、
最初にmkdir c:\RailsInstallerをコマンドプロンプトで実行。

次に、rubyスクリプトファイルをダウンロードする。

コマンドプロンプトで、ruby <ダウンロードしたディレクトリ>\win_fetch_cacerts.rbを実行

c:\RailsInstallerディレクトリにcacert.pemファイルができているので、あとは
set SSL_CERT_FILE=C:\RailsInstaller\cacert.pemとやるか、今後も使うなら
コントロールパネル→システム→詳細設定→環境変数にも設定する。

あとは、通常通り、bundle exec padrino g plugin <plugin名>でインストール出来る。

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3