ERROR during rebar3 dialyzer

#14 · closed · 1 comments

View on GitHub ↗

5HT

On Mojave one may experience the following problem: ``` $ rebar3 dialyzer ===> Verifying dependencies... ===> Fetching fs ({git,"git://github.com/synrc/fs",{tag,"master"}}) ===> Fetching pc ({pkg,<<"pc">>,<<"1.10.0">>}) ===> Version cached at /Users/maxim/.cache/rebar3/hex/hexpm/packages/pc-1.10.0.tar is up to date, reusing it ===> Compiling pc ===> Fetching rebar3_hex ({pkg,<<"rebar3_hex">>,<<"6.4.0">>}) ===> Version cached at /Users/maxim/.cache/rebar3/hex/hexpm/packages/rebar3_hex-6.4.0.tar is up to date, reusing it ===> Compiling rebar3_hex ===> Compiling fs ===> Compiling /Users/maxim/depot/synrc/active/_build/default/lib/fs/c_src/mac/cli.c ===> /Users/maxim/depot/synrc/active/_build/default/lib/fs/c_src/mac/cli.c:1:10: fatal error: 'getopt.h' file not found #include <getopt.h> ^~~~~~~~~~ 1 error generated. ```

Comments

5HT

FIX on Mojave is: ``` $ open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg ```