Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Surround ERTS_INCLUDE_DIR, ERL_INTERFACE_INCLUDE_DIR, ERL_INTERFACE_LIB_DIR with double quote char in order to be able support path with space char #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

okaprinarjaya
Copy link

Hi,

I get error:

Oka-Prinarjaya:okadaserve okaprinarjaya$ rebar3 compile
===> Fetching rebar3_run v0.2.0
===> Version cached at /Users/okaprinarjaya/.cache/rebar3/hex/hexpm/packages/rebar3_run-0.2.0.tar is up to date, reusing it
===> Compiling rebar3_run
cc -O3 -std=c99 -arch x86_64 -finline-functions -Wall -Wmissing-prototypes -fPIC -I /Users/okaprinarjaya/Library/Application Support/ErlangInstaller/21.2/erts-10.2/include/ -I /Users/okaprinarjaya/Library/Application Support/ErlangInstaller/21.2/lib/erl_interface-3.10.4/include  -c -o /Users/okaprinarjaya/Oprek/Erlang-Oprek-Dua/okadaserve/_build/default/plugins/rebar3_run/c_src/rebar3_run.o /Users/okaprinarjaya/Oprek/Erlang-Oprek-Dua/okadaserve/_build/default/plugins/rebar3_run/c_src/rebar3_run.c
clang: error: no such file or directory: 'Support/ErlangInstaller/21.2/erts-10.2/include/'
clang: error: no such file or directory: 'Support/ErlangInstaller/21.2/lib/erl_interface-3.10.4/include'
make: *** [/Users/okaprinarjaya/Oprek/Erlang-Oprek-Dua/okadaserve/_build/default/plugins/rebar3_run/c_src/rebar3_run.o] Error 1
===> Hook for compile failed!

===> Plugin rebar3_run not available. It will not be used.

It turns out the problem is linker cannot read path name with space char.

clang: error: no such file or directory: 'Support/ErlangInstaller/21.2/erts-10.2/include/'
clang: error: no such file or directory: 'Support/ErlangInstaller/21.2/lib/erl_interface-3.10.4/include'

My full path of erlang is /Users/okaprinarjaya/Library/Application Support/ErlangInstaller/.
It fixed by adding double quote char by surround it in ERTS_INCLUDE_DIR, ERL_INTERFACE_INCLUDE_DIR, ERL_INTERFACE_LIB_DIR variables.

…IB_DIR with double quote char in order to be able support path with space char
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant