2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Mac Catalina で perl cpan が "EXTERN.h" が見つからなくて失敗するときの対処法

Last updated at Posted at 2020-01-21

Mac の Catalina (試したバージョンは10.15.2) 上の pre-install されている /usr/bin/cpan でいろんなモジュールをインストールしたとき、以下のようなエラーが発生してハマった。

XXXX.xs:XX:XX:fatal error: 'EXTERN.h' file not found
#include <EXTERN.h>
         ^~~~~~~~~~
1 error generated.

例えば、DBD::SQLite とか Text::CSV_XS とかでエラーが出る。

色々探し回ってたが解を見つけられずにいたが、ついに解決方法を見つけた。

結局、ExtUtils::MakeMaker を 7.36 以降にアップデートすれば良い。

cpan ExtUtils::MakeMaker

これで、上記のエラーは解消される。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?