Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install etcd3.3 for go1.13

2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces "how to install etcd3.3 in go1.13". In daily operation, I believe many people have doubts about how to install etcd3.3 in go1.13. The editor consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the doubts about "how to install etcd3.3 in go1.13". Next, please follow the editor to study!

The problem of installing etcd3.3 in go1.13

Error when installing etcd:

Cannot find module providing package github.com/coreos/go-systemd/journal

An error was provided during go1.12, but the compilation passed.

Go1.13 error.

The solution is as follows:

1. Pull go-systemd from github and save it to $GOPATH src

Git clone github.com/coreos/go-systemd

two。 Use replace to replace go-systemd in go.mod

# # go.modreplace github.com/coreos/go-systemd = > / home/xingyys/Go/src/github.com/coreos/go-systemd

What we should pay attention to here is:

Do not use the path github.com/coreos/go-systemd/journal directly, because there is no go.mod file under that path.

The previous level of directory is required.

At this point, the study on "how to install etcd3.3 in go1.13" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report