artemeff / redis

Redis commands for Elixir
MIT License
358 stars 63 forks source link

undefined function: :eredis.start_link/5 #13

Closed efatsi closed 10 years ago

efatsi commented 10 years ago

getting this when trying to follow things straight from the README:

iex(2)> Pi.set
** (UndefinedFunctionError) undefined function: :eredis.start_link/5
    :eredis.start_link('127.0.0.1', 6379, 0, [], :no_reconnect)
    lib/exredis.ex:39: Exredis.start/5
    iex:5: Pi.set/0

solved it by adding the dependency for eredis in my own mix.exs file ({ :eredis, "1.0.6", github: "wooga/eredis", ref: "471dd" }) ... not sure if that's an issue with exredis or with me, sorry if it's the latter.

edgurgel commented 10 years ago

I think the problem is that hex.pm does not handle git dependencies. As eredis is not available on hex.pm, you can't just use hex packages alone. More on "Dependencies" section here: https://hex.pm/docs/publish