コレグレーデギネード

WindowsとかUbuntuとかRubyとかRailsとか

2019-09-01から1ヶ月間の記事一覧

rmagickをbundle installしようとしてエラー An error occurred while installing rmagick (4.0.0), and Bundler cannot continue. Make sure that `gem install rmagick -v '4.0.0' --source 'https://rubygems.org/'` succeeds before bundling.

$ sudo apt install imagemagickImageMagickをaptでインストールした後にGemfileに下記を追記 gem 'rmagick'bundle install でエラー $ bundle install --path vendor/bundle ... Gem::Ext::BuildError: ERROR: Failed to build gem native extension. curre…

Ubuntu16.04 ImageMagickでPDFをPNGに変換できない

PDFをPNGにconvertしようとしてもできませんでした $ convert sample.pdf sample.png convert: not authorized `sample.pdf' @ error/constitute.c/ReadImage/412. convert: no images defined `sample.png' @ error/convert.c/ConvertImageCommand/3210. デ…

既にgitリポジトリに登録されているディレクトリやフォルダを管理対象外にする

.gitignoreに記述し忘れてコミットしてしまった場合などファイルの場合 $ git rm [ファイル名]ディレクトリの場合 $ git rm -r [ディレクトリ名]ローカルにファイルを残す場合 $ git rm --cached [ファイル名]最後に削除したファイル名(ディレクトリ名)を.…