# Hosting a public IPFS gateway compile ipfs dependency problem

**URL:** <https://discuss.ipfs.tech/t/hosting-a-public-ipfs-gateway-compile-ipfs-dependency-problem/16678>\
**Category:** Help\
**Tags:** go-ipfs\
**Created:** [July 11, 2023, 1:31pm UTC](https://discuss.ipfs.tech/t/hosting-a-public-ipfs-gateway-compile-ipfs-dependency-problem/16678 "2023-07-11T13:31:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![vivekshah92](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/vivekshah92/32/7797_2.png) [@vivekshah92](https://discuss.ipfs.tech/u/vivekshah92)\
**Post date:** [July 11, 2023, 1:31pm UTC](https://discuss.ipfs.tech/t/hosting-a-public-ipfs-gateway-compile-ipfs-dependency-problem/16678/1 "2023-07-11T13:31:08Z")

</div>

When we run the **GOTAGS=openssl make install** command it ask to run **go mod tidy** command. When we run **go mod tidy** command it returns below error. Can you please help me to resolve below error. If we use lower version of libp2p library go mod tidy works but still openssl command not working.

module [github.com/libp2p/go-libp2p-core@latest](http://github.com/libp2p/go-libp2p-core@latest) found (v0.20.1), but does not contain package [github.com/libp2p/go-libp2p-core/mux](http://github.com/libp2p/go-libp2p-core/mux)

---

<div class="post-metadata">

**Author:** ![Jorropo](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/jorropo/32/3230_2.png) [@Jorropo](https://discuss.ipfs.tech/u/Jorropo)\
**Post date:** [July 11, 2023, 1:37pm UTC](https://discuss.ipfs.tech/t/hosting-a-public-ipfs-gateway-compile-ipfs-dependency-problem/16678/2 "2023-07-11T13:37:41Z")

</div>

How did you get this code / can you try using with Kubo’s v0.21 source ?  
Your source of kubo is wrong `github.com/libp2p/go-libp2p-core` has been moved and shouldn’t be used anymore.

---

<div class="post-metadata">

**Author:** ![vivekshah92](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/vivekshah92/32/7797_2.png) [@vivekshah92](https://discuss.ipfs.tech/u/vivekshah92)\
**Post date:** [July 11, 2023, 1:53pm UTC](https://discuss.ipfs.tech/t/hosting-a-public-ipfs-gateway-compile-ipfs-dependency-problem/16678/3 "2023-07-11T13:53:07Z")

</div>

I have followed below tutorial to hosting public IPFS gateway

> <https://gist.github.com/NatoBoram/09d244ab02af16fecb62b917f7bee3c0>

---

<div class="post-metadata">

**Author:** ![Jorropo](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/jorropo/32/3230_2.png) [@Jorropo](https://discuss.ipfs.tech/u/Jorropo)\
**Post date:** [July 11, 2023, 2:12pm UTC](https://discuss.ipfs.tech/t/hosting-a-public-ipfs-gateway-compile-ipfs-dependency-problem/16678/4 "2023-07-11T14:12:10Z")

</div>

This is outdated information. You can follow the official installations instructions: [Get Started | IPFS Docs](https://docs.ipfs.tech/install/)
