LoginSignup
0
0

More than 1 year has passed since last update.

#Ruby の gem install xxx --verbose オプションでインストール先を確認する

Last updated at Posted at 2019-09-24

インストール先のファイルパス、ディレクトリが見たい

例えば付属のコマンドがインストールされないとか、そんな時に。

gem install wkhtmltopdf-binary --verbose

HEAD https://rubygems.org/api/v1/dependencies
200 OK
GET https://rubygems.org/api/v1/dependencies?gems=wkhtmltopdf-binary
200 OK
Downloading gem wkhtmltopdf-binary-0.12.4.gem
GET https://rubygems.org/gems/wkhtmltopdf-binary-0.12.4.gem
Fetching wkhtmltopdf-binary-0.12.4.gem
200 OK
/Users/yumainaura/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/wkhtmltopdf-binary-0.12.4/bin/wkhtmltopdf
/Users/yumainaura/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/wkhtmltopdf-binary-0.12.4/bin/wkhtmltopdf-binary.rb
/Users/yumainaura/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/wkhtmltopdf-binary-0.12.4/bin/wkhtmltopdf_darwin_x86
/Users/yumainaura/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/wkhtmltopdf-binary-0.12.4/bin/wkhtmltopdf_linux_amd64
/Users/yumainaura/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/wkhtmltopdf-binary-0.12.4/bin/wkhtmltopdf_linux_x86
/Users/yumainaura/.rbenv/versions/2.6.3/bin/wkhtmltopdf
Successfully installed wkhtmltopdf-binary-0.12.4
Parsing documentation for wkhtmltopdf-binary-0.12.4
Parsing sources...
100% [ 5/ 5]  bin/wkhtmltopdf_linux_x86
Installing ri documentation for wkhtmltopdf-binary-0.12.4
Done installing documentation for wkhtmltopdf-binary after 0 seconds
1 gem installed

Try

この場合はバイナリのコマンドの場所を確認して、叩きたい。

最悪、フルパスを直接叩けばコマンドを実行できるとか、そういうことがわかる。

/Users/yumainaura/.rbenv/versions/2.6.3/lib/ruby/gems/2.6.0/gems/wkhtmltopdf-binary-0.12.4/bin/wkhtmltopdf --version
wkhtmltopdf 0.12.4 (with patched qt)

Original by Github issue

チャットメンバー募集

何か質問、悩み事、相談などあればLINEオープンチャットもご利用ください。

Twitter

0
0
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
0
0