LoginSignup
3
1

brewでghostscriptのインストールが失敗する場合の対処

Last updated at Posted at 2024-04-07

現在(2024/04/03時点)brew install ghostscriptを実行すると以下のエラーで失敗する場合があります。

./pdf/pdf_sec.c:187:20: error: incompatible integer to pointer conversion assigning to 'int *' from 'int'; take the address with

このエラーは既に報告され、失敗する原因となっているコードは下記のリンクで修正されています。

しかし、まだこの修正を行ったバージョン(10.04)はまだリリースされておらず、新バージョンが出るまでは一工夫が必要です。

対処法

一番簡単なのは、--HEADオプションを使って最新のソースコードをインストールすることです。

brew install ghostscript --HEAD

--HEADオプションはリポジトリの最新のコードを取得するオプションです。
通常の開発ではあまり使わないオプションですが、頭の片隅に入れておくと今回のケースの場合などで役に立ちます。

3
1
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
1