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

erlcloud dependency #6

Closed
trinode opened this issue Sep 12, 2015 · 4 comments
Closed

erlcloud dependency #6

trinode opened this issue Sep 12, 2015 · 4 comments

Comments

@trinode
Copy link

trinode commented Sep 12, 2015

Hi there,

I plan on using arc_ecto (arc itself builds fine) with the local file system (not s3 etc) and I'm having difficult installing it due to erlcloud, somewhere something is missing on my install and dependency resolution is not resolving it.
Am I missing something obvious?

==> lhttpc (compile)
==> jsx (compile)
==> erlcloud (compile)
Compiling src/erlcloud_xml.erl failed:
src/erlcloud_xml.erl:5: can't find include lib "xmerl/include/xmerl.hrl"
src/erlcloud_xml.erl:72: variable 'Value' is unbound
src/erlcloud_xml.erl:72: record xmlText undefined
src/erlcloud_xml.erl:73: record xmlElement undefined
src/erlcloud_xml.erl:74: variable 'Content' is unbound
src/erlcloud_xml.erl:80: variable 'Value' is unbound
src/erlcloud_xml.erl:80: record xmlAttribute undefined
src/erlcloud_xml.erl:86: record xmlText undefined
ERROR: compile failed while processing /home/anthony/Projects/peoplematchr_elixir/deps/erlcloud: rebar_abort
** (Mix) Could not compile dependency erlcloud, /home/anthony/.mix/rebar command failed. If you want to recompile this dependency, please run: mix deps.compile erlcloud

here's my deps in case it's me:-

  defp deps do
    [{:phoenix, "~> 1.0.2"},
     {:phoenix_ecto, "~> 1.1"},
     {:postgrex, ">= 0.0.0"},
     {:phoenix_html, "~> 2.1"},
     {:phoenix_live_reload, "~> 1.0", only: :dev},
     {:cowboy, "~> 1.0"},
     {:factory_girl_elixir, "~> 0.1.1"},
     {:faker, "~> 0.5"},
     {:arc, "~> 0.1.2"},
     {:arc_ecto, "~> 0.2.0"}
     ]
  end
@stavro
Copy link
Owner

stavro commented Sep 14, 2015

Hmm.. which operating system and version of erlang are you using?

Can you open up an Elixir shell and show me the following:

:xmerl.module_info

@trinode
Copy link
Author

trinode commented Sep 14, 2015

It's ubuntu, and installed (elixir, erlang, phoenix) as per the guide on the Phoenix Framework website, including adding the repos from erlang solutions. I assume it's been extracted out if it's meant to be built in by default, perhaps an explicit requirement is in order?

Interactive Elixir (1.0.5) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> :xmerl.module_info
** (UndefinedFunctionError) undefined function: :xmerl.module_info/0 (module :xmerl is not available)
:xmerl.module_info()

@stavro
Copy link
Owner

stavro commented Sep 14, 2015

Odd - Using either homebrew or the erlang release builds (seen here: https://github.com/HashNuke/heroku-buildpack-elixir/blob/master/lib/erlang_funcs.sh) it should have xmerl included... I haven't seen this error before.

@trinode
Copy link
Author

trinode commented Sep 14, 2015

Ok, it seems I somehow managed to install (via apt-get) only part of erlang, not sure how it's possible but apt-get install erlang only got about half the libs, running it again installed a load more (including xmerl), I've been happily working away with half an erlang and almost everything worked! This should work now too... apologies,

@trinode trinode closed this as completed Sep 14, 2015
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

No branches or pull requests

2 participants