pprzetacznik / IElixir

Jupyter's kernel for Elixir programming language
Apache License 2.0
360 stars 42 forks source link

Mix test fails with esqlite #35

Closed ghoetker closed 6 years ago

ghoetker commented 6 years ago

Trying to install IElixer per the directions. All seems to go well. However, mix test emits the following error:

** (Mix) Could not compile dependency :esqlite, "/Users/ghoetker/.mix/rebar3 bare compile --paths "/Users/ghoetker/Elixer Projects/IElixir/_build/test/lib/*/ebin"" command failed. You can recompile this dependency with "mix deps.compile esqlite", update it with "mix deps.update esqlite" or clean it with "mix deps.clean esqlite"

I have tried mix deps.update esqlite, followed by mix deps.compile esqlite, which generates the same message. mix deps.clean, followed by mix deps.compile emits the same message too.

Please let me know what other debugging information I can provide. Thank you.

pprzetacznik commented 6 years ago

@ghoetker have you tried running mix deps.compile esqlite? Can you paste the output of this command?

ghoetker commented 6 years ago

Here is the result of running that command. Thank you!

ghoetker/Elixer Projects/IElixir% mix deps.compile esqlite
===> Compiling esqlite
===> Compiling /Users/ghoetker/Elixer Projects/IElixir/deps/esqlite/c_src/esqlite3_nif.c
===> clang: error: no such file or directory: '/Users/ghoetker/Elixer'
clang: error: no such file or directory: 'Projects/IElixir/deps/esqlite/c_src/esqlite3_nif.c'
clang: error: no such file or directory: 'Projects/IElixir/deps/esqlite/c_src/esqlite3_nif.o'
clang: error: no input files

** (Mix) Could not compile dependency :esqlite, "/Users/ghoetker/.mix/rebar3 bare compile --paths "/Users/ghoetker/Elixer Projects/IElixir/_build/dev/lib/*/ebin"" command failed. You can recompile this dependency with "mix deps.compile esqlite", update it with "mix deps.update esqlite" or clean it with "mix deps.clean esqlite"
ghoetker/Elixer Projects/IElixir%
pprzetacznik commented 6 years ago

@ghoetker my first guess would be to check if the problem is in directory name Elixer Projects because in further error lines you can see path which has trimmed first part of the whole path.

Secondly I would check if you have rebar and rebar3 available from the command line.

ghoetker commented 6 years ago

@pprzetacznik The space in the directory name was the issue. After that, all worked wonderfully. As a bonus, installing the kernel also allows using Elixir with the newer Jupyter Lab. Very cool and thank for you for such a great contribution to the ecosystem.