# Missing Module deploying modules locally

**URL:** <https://forum.elixirforum.com/t/missing-module-deploying-modules-locally/12377>\
**Category:** Questions\
**Tags:** deployment\
**Created:** [February 9, 2018, 3:05pm UTC](https://forum.elixirforum.com/t/missing-module-deploying-modules-locally/12377 "2018-02-09T15:05:15Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![dkotrada](https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/d/cab0a1/32.png) [@dkotrada](https://forum.elixirforum.com/u/dkotrada)\
**Post date:** [February 9, 2018, 3:05pm UTC](https://forum.elixirforum.com/t/missing-module-deploying-modules-locally/12377/1 "2018-02-09T15:05:16Z")

</div>

I am trying the Blabber example. [GitHub - conradwt/blabber-using-elixir: The purpose of this repository is to provide a very simple example of hot code loading and communicating between Erlang processes using the Elixir Language. · GitHub](https://github.com/conradwt/blabber-using-elixir)

When I run

`nl(Blabber)`

it gives me an error message like described in documentation

> Returns {:error, :nofile} if the object code (i.e. “.beam” file) for the module could not be found locally.

My question is: How should I run the nl function to find my beam file?  
It is defenitely compiled but I think I should enter the absolute path to .beam file…

Maybe `nl(:"lib/Blabber")`

I don’t know.

---

<div class="post-metadata">

**Author:** ![OvermindDL1](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/overminddl1/32/2677_2.png) [@OvermindDL1](https://forum.elixirforum.com/u/OvermindDL1)\
**Post date:** [February 9, 2018, 4:07pm UTC](https://forum.elixirforum.com/t/missing-module-deploying-modules-locally/12377/2 "2018-02-09T16:07:46Z")

</div>

You are running `iex -S mix` yes?

---

<div class="post-metadata">

**Author:** ![dkotrada](https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/d/cab0a1/32.png) [@dkotrada](https://forum.elixirforum.com/u/dkotrada)\
**Post date:** [February 9, 2018, 4:31pm UTC](https://forum.elixirforum.com/t/missing-module-deploying-modules-locally/12377/3 "2018-02-09T16:31:54Z")

</div>

yes I am running iex -S mix

---

<div class="post-metadata">

**Author:** ![OvermindDL1](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/overminddl1/32/2677_2.png) [@OvermindDL1](https://forum.elixirforum.com/u/OvermindDL1)\
**Post date:** [February 9, 2018, 4:33pm UTC](https://forum.elixirforum.com/t/missing-module-deploying-modules-locally/12377/4 "2018-02-09T16:33:09Z")

</div>

> [@dkotrada](#):
>
> yes I am running iex -S mix

Hmm, in that case, from the commandline, what is the full results of `rm -r _build; mix compile`?

---

<div class="post-metadata">

**Author:** ![dkotrada](https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/d/cab0a1/32.png) [@dkotrada](https://forum.elixirforum.com/u/dkotrada)\
**Post date:** [February 9, 2018, 4:35pm UTC](https://forum.elixirforum.com/t/missing-module-deploying-modules-locally/12377/5 "2018-02-09T16:35:53Z")

</div>

```
Compiling 1 file (.ex)
Generated blabber app

```

this is full result

---

<div class="post-metadata">

**Author:** ![OvermindDL1](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/overminddl1/32/2677_2.png) [@OvermindDL1](https://forum.elixirforum.com/u/OvermindDL1)\
**Post date:** [February 9, 2018, 4:39pm UTC](https://forum.elixirforum.com/t/missing-module-deploying-modules-locally/12377/6 "2018-02-09T16:39:09Z")

</div>

Oh wow, no dependencies really? Huh, I guess it doesn’t.

Well let me try it:

```elixir
╰─➤ git clone https://github.com/conradwt/blabber-using-elixir.git
Cloning into 'blabber-using-elixir'...
remote: Counting objects: 39, done.
remote: Total 39 (delta 0), reused 0 (delta 0), pack-reused 39
Unpacking objects: 100% (39/39), done.
╰─➤ cd blabber-using-elixir 
╰─➤ mix compile
Compiling 1 file (.ex)
Generated blabber app
╰─➤ iex -S mix
Erlang/OTP 20 [erts-9.1] [source] [64-bit] [smp:2:2] [ds:2:2:10] [async-threads:10] [hipe] [kernel-poll:false]

Interactive Elixir (1.6.1) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> nl(Blabber)
{:ok, []}
iex(2)>

```

Seems to work, do you not get the same results? This is why it is generally good to show the entire commandline session that you are testing with. 🙂

---

<div class="post-metadata">

**Author:** ![dkotrada](https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/d/cab0a1/32.png) [@dkotrada](https://forum.elixirforum.com/u/dkotrada)\
**Post date:** [February 9, 2018, 4:45pm UTC](https://forum.elixirforum.com/t/missing-module-deploying-modules-locally/12377/7 "2018-02-09T16:45:44Z")

</div>

Hmm. I didn’t clone repo. I just typed in my editor the Blabber module. And then compiled it. I will try now with cloning and see how different it is.

---

<div class="post-metadata">

**Author:** ![dkotrada](https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/d/cab0a1/32.png) [@dkotrada](https://forum.elixirforum.com/u/dkotrada)\
**Post date:** [February 9, 2018, 4:48pm UTC](https://forum.elixirforum.com/t/missing-module-deploying-modules-locally/12377/8 "2018-02-09T16:48:23Z")

</div>

```
~/dev/elixir/FromGitDeployblabber
git clone https://github.com/conradwt/blabber-using-elixir.git
Klone nach 'blabber-using-elixir' ...
remote: Counting objects: 39, done.
remote: Total 39 (delta 0), reused 0 (delta 0), pack-reused 39
Entpacke Objekte: 100% (39/39), Fertig.
Prüfe Konnektivität ... Fertig.

~/dev/elixir/FromGitDeployblabber
cd blabber-using-elixir/
~/dev/elixir/FromGitDeployblabber/blabber-using-elixir(master)
mix compile
Compiling 1 file (.ex)
Generated blabber app

~/dev/elixir/FromGitDeployblabber/blabber-using-elixir(master)
iex -S mix
Erlang/OTP 20 [erts-9.2] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:10] [kernel-poll:false]

Interactive Elixir (1.6.0) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> nl(Blabber)
{:ok, []}
iex(2)> 

```

That is my output

---

<div class="post-metadata">

**Author:** ![OvermindDL1](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/overminddl1/32/2677_2.png) [@OvermindDL1](https://forum.elixirforum.com/u/OvermindDL1)\
**Post date:** [February 9, 2018, 4:50pm UTC](https://forum.elixirforum.com/t/missing-module-deploying-modules-locally/12377/9 "2018-02-09T16:50:31Z")

</div>

> [@dkotrada](#):
>
> Hmm. I didn’t clone repo. I just typed in my editor the Blabber module. And then compiled it. I will try now with cloning and see how different it is.

Uh, did you have no code to run then? How’d you get it?

> [@dkotrada](#):
>
> That is my output

Yep, that’s working then. 🙂

---

<div class="post-metadata">

**Author:** ![dkotrada](https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/d/cab0a1/32.png) [@dkotrada](https://forum.elixirforum.com/u/dkotrada)\
**Post date:** [February 9, 2018, 4:51pm UTC](https://forum.elixirforum.com/t/missing-module-deploying-modules-locally/12377/10 "2018-02-09T16:51:31Z")

</div>

Thank you. It works. indeed. I should now look what was different on my setup and setup from git repo.

---

<div class="post-metadata">

**Author:** ![OvermindDL1](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/overminddl1/32/2677_2.png) [@OvermindDL1](https://forum.elixirforum.com/u/OvermindDL1)\
**Post date:** [February 9, 2018, 4:52pm UTC](https://forum.elixirforum.com/t/missing-module-deploying-modules-locally/12377/11 "2018-02-09T16:52:12Z")

</div>

> [@dkotrada](#):
>
> Thank you. It works. indeed. I should now look what was different on my setup and setup from git repo.

I’m quite curious. ^.^

---

<div class="post-metadata">

**Author:** ![dkotrada](https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/d/cab0a1/32.png) [@dkotrada](https://forum.elixirforum.com/u/dkotrada)\
**Post date:** [February 9, 2018, 5:07pm UTC](https://forum.elixirforum.com/t/missing-module-deploying-modules-locally/12377/12 "2018-02-09T17:07:14Z")

</div>

The problem is. When you try to follow the tutorial in README.md step by step it does not work. Something is missing. There.

Step 18

Produce:

```
iex(dog@t420)4> :c.nl(Blabber)
:error

```

---

<div class="post-metadata">

**Author:** ![OvermindDL1](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/overminddl1/32/2677_2.png) [@OvermindDL1](https://forum.elixirforum.com/u/OvermindDL1)\
**Post date:** [February 9, 2018, 5:11pm UTC](https://forum.elixirforum.com/t/missing-module-deploying-modules-locally/12377/13 "2018-02-09T17:11:58Z")

</div>

> [@dkotrada](#):
>
> The problem is. When you try to follow the tutorial in README.md step by step it does not work. Something is missing. There.

Can you do a full [asciinema](https://asciinema.org/) session of it showing everything you did?

Oh also, you don’t need `:c.nl`, just `nl`, that repository is _years_ old. ^.^;  
I’m not even sure `:c.nl` would work actually…

---

<div class="post-metadata">

**Author:** ![dkotrada](https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/d/cab0a1/32.png) [@dkotrada](https://forum.elixirforum.com/u/dkotrada)\
**Post date:** [February 9, 2018, 5:21pm UTC](https://forum.elixirforum.com/t/missing-module-deploying-modules-locally/12377/14 "2018-02-09T17:21:25Z")

</div>

Dog Terminal [https://asciinema.org/a/rt8Fhlp2N6zXNLlzZzLeDnZDF](https://asciinema.org/a/rt8Fhlp2N6zXNLlzZzLeDnZDF)  
Bird Terminal [https://asciinema.org/a/0mxfE2A0yUQul1pAduEkFiPRb](https://asciinema.org/a/0mxfE2A0yUQul1pAduEkFiPRb)

---

<div class="post-metadata">

**Author:** ![OvermindDL1](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/overminddl1/32/2677_2.png) [@OvermindDL1](https://forum.elixirforum.com/u/OvermindDL1)\
**Post date:** [February 9, 2018, 5:37pm UTC](https://forum.elixirforum.com/t/missing-module-deploying-modules-locally/12377/15 "2018-02-09T17:37:06Z")

</div>

Your problem I’d bet is here (and similar on the bird one):

```elixir
alfa@t420:~/dev/elixir/FromGitDeployblabber/blabber-using-elixir(master)$ iex --sname dog 

```

It should instead be `iex --sname dog -S mix`. The `-S mix` will set up the environment so it knows the compilation directories and more. 🙂

---

<div class="post-metadata">

**Author:** ![dkotrada](https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/d/cab0a1/32.png) [@dkotrada](https://forum.elixirforum.com/u/dkotrada)\
**Post date:** [February 9, 2018, 6:35pm UTC](https://forum.elixirforum.com/t/missing-module-deploying-modules-locally/12377/16 "2018-02-09T18:35:59Z")

</div>

Yes! Thank You man. It works now. And instead of running `c("lib/blabber.ex")` just do` >iex recompile` and then `nl(Blabber)` and it deploys to bird and cat. 🙂
