# Unable to compile Mattermost

**URL:** <https://forum.mattermost.com/t/unable-to-compile-mattermost/260>\
**Category:** Troubleshooting\
**Created:** [September 28, 2015, 4:18pm UTC](https://forum.mattermost.com/t/unable-to-compile-mattermost/260 "2015-09-28T16:18:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![trashcan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/trashcan/32/125_2.png) [@trashcan](https://forum.mattermost.com/u/trashcan)\
**Post date:** [September 28, 2015, 4:18pm UTC](https://forum.mattermost.com/t/unable-to-compile-mattermost/260/1 "2015-09-28T16:18:33Z")

</div>

I followed the Mac instructions on here:

[https://githubcom/mattermost/platform/blob/master/doc/install/dev-setup.md](https://githubcom/mattermost/platform/blob/master/doc/install/dev-setup.md)

But I am unable to get it to compile.

```auto
~/g/s/g/m/platform> go build
api/server.go:12:2: code in directory /Users/pat/go/src/githubcom/throttled/throttled expects import "gopkgin/throttled/throttled.v2"
api/server.go:13:2: code in directory /Users/pat/go/src/githubcom/throttled/throttled/store expects import "gopkgin/throttled/throttled.v2/store"
~/g/s/g/m/platform>

```

Do I need to do something with godep to get it to use the bundled dependencies? `godep restore` complains of the same error. And if I fix those URLs manually, then there are other compile errors so it seems like I’m doing something wrong. I also tried the `release-0.7.0` branch and had the same issue.

Thanks in advance!

(I had to edit the links slightly since I’m a new user)

---

<div class="post-metadata">

**Author:** ![trashcan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/trashcan/32/125_2.png) [@trashcan](https://forum.mattermost.com/u/trashcan)\
**Post date:** [September 28, 2015, 5:12pm UTC](https://forum.mattermost.com/t/unable-to-compile-mattermost/260/2 "2015-09-28T17:12:50Z")

</div>

BTW, I’m using Go 1.5 if that is relevant.

---

<div class="post-metadata">

**Author:** ![trashcan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mattermost.com/trashcan/32/125_2.png) [@trashcan](https://forum.mattermost.com/u/trashcan)\
**Post date:** [September 28, 2015, 5:41pm UTC](https://forum.mattermost.com/t/unable-to-compile-mattermost/260/3 "2015-09-28T17:41:33Z")

</div>

Downgrading to go 1.4.2 has resolved the problem!
