# Moc / motoko installation troubles

**URL:** <https://forum.dfinity.org/t/moc-motoko-installation-troubles/15503>\
**Category:** Developers\
**Created:** [September 19, 2022, 11:30am UTC](https://forum.dfinity.org/t/moc-motoko-installation-troubles/15503 "2022-09-19T11:30:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![muharem](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/muharem/32/6577_2.png) [@muharem](https://forum.dfinity.org/u/muharem)\
**Post date:** [September 19, 2022, 11:30am UTC](https://forum.dfinity.org/t/moc-motoko-installation-troubles/15503/1 "2022-09-19T11:30:21Z")

</div>

Hello!

Is the dfx installer supposed to install `moc` as well? It’s not doing that on my linux laptop 😛

In any case, how do I install `moc` and the base libraries on a linux laptop (Fedora 36)?

---

<div class="post-metadata">

**Author:** ![Vivienne](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/vivienne/32/29170_2.png) [@Vivienne](https://forum.dfinity.org/u/Vivienne)\
**Post date:** [September 19, 2022, 11:48am UTC](https://forum.dfinity.org/t/moc-motoko-installation-troubles/15503/2 "2022-09-19T11:48:50Z")

</div>

Yes, the install script should download a lot of utilities. As of dfx 0.11.2 the full list should look like this:

```bash
❯ ls $(dfx cache show) 
base libgmp.10.dylib
canister_sandbox libsecp256k1.0.dylib
dfx libz.1.2.12.dylib
ic-btc-adapter mo-doc
ic-canister-http-adapter	mo-ide
ic-ref moc
ic-starter replica
icx-proxy sandbox_launcher
libffi.8.dylib

```

BUT the install script does not add this directory to `$PATH`, so `moc` won’t be accessible through she command line. If you want it in your path, you’ll have to do that on your own, but I’d recommend you add `$(dfx cache show)` so you get the latest one when you upgrade dfx.

---

<div class="post-metadata">

**Author:** ![muharem](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/muharem/32/6577_2.png) [@muharem](https://forum.dfinity.org/u/muharem)\
**Post date:** [September 19, 2022, 12:05pm UTC](https://forum.dfinity.org/t/moc-motoko-installation-troubles/15503/3 "2022-09-19T12:05:26Z")

</div>

hmm … that’s weird:

```auto
$ dfx cache show
/home/user/.cache/dfinity/versions/0.11.2
$ ls /home/user/.cache/dfinity/versions/0.11.2
ls: cannot access '/home/user/.cache/dfinity/versions/0.11.2': No such file or directory

```

it merely installs `dfx` under (my pre-existing) `$HOME/bin` directory.

---

<div class="post-metadata">

**Author:** ![Vivienne](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/vivienne/32/29170_2.png) [@Vivienne](https://forum.dfinity.org/u/Vivienne)\
**Post date:** [September 19, 2022, 12:07pm UTC](https://forum.dfinity.org/t/moc-motoko-installation-troubles/15503/4 "2022-09-19T12:07:35Z")

</div>

Ah, right, I forgot: It’s not the install script that fills the cache but dfx once it runs certain operations. `dfx new` does the trick.

---

<div class="post-metadata">

**Author:** ![muharem](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/muharem/32/6577_2.png) [@muharem](https://forum.dfinity.org/u/muharem)\
**Post date:** [September 19, 2022, 12:09pm UTC](https://forum.dfinity.org/t/moc-motoko-installation-troubles/15503/5 "2022-09-19T12:09:40Z")

</div>

Aaaaaaaaaaah, okay, that’s a bit “unusual” 😛

---

<div class="post-metadata">

**Author:** ![Ori](https://avatars.discourse-cdn.com/v4/letter/o/ecae2f/32.png) [@Ori](https://forum.dfinity.org/u/Ori)\
**Post date:** [September 20, 2022, 9:17am UTC](https://forum.dfinity.org/t/moc-motoko-installation-troubles/15503/6 "2022-09-20T09:17:13Z")

</div>

You could also run `dfx cache install` after upgrading to populate that directory ; )
