Giter VIP home page Giter VIP logo

Comments (6)

Random-Liu avatar Random-Liu commented on August 28, 2024 1

You need to install libsystemd-journal-dev or libsystemd-dev to build it for journald support.

In #39, we'll add an option to enable/disable journald support. After that you won't need the package if you disable the journald support when make.

In fact node problem detector can't work very well until #39 is merged. I'll try to get that PR merged soon.

from node-problem-detector.

Random-Liu avatar Random-Liu commented on August 28, 2024

This is a bug, and should be fixed in #39.

For temporary workaround, you can set CGO_ENABLED=1.

from node-problem-detector.

FANNG1 avatar FANNG1 commented on August 28, 2024

thanks Random-Liu, still see errors, even using Random-Liu:journald-support

CGO_ENABLED=1 GOOS=linux go build -o ./bin/node-problem-detector -a -ldflags '-w' -tags journald
# k8s.io/node-problem-detector/vendor/github.com/coreos/go-systemd/sdjournal
vendor/github.com/coreos/go-systemd/sdjournal/journal.go:27:33: fatal error: systemd/sd-journal.h: No such file or directory
 // #include <systemd/sd-journal.h>
                                 ^
compilation terminated.

now I build under linux env, am I miss something?

  • go version go1.6 linux/amd64
  • godep v74 (linux/amd64/go1.6)

from node-problem-detector.

FANNG1 avatar FANNG1 commented on August 28, 2024

thanks, it worked for me.

from node-problem-detector.

jfilak avatar jfilak commented on August 28, 2024

@Random-Liu Perhaps the build process can check if all the dependencies are available:

./bin/node-problem-detector: $(PKG_SOURCES) node_problem_detector.go
	pkg-config libsystemd --exists --print-errors
	CGO_ENABLED=0 GOOS=linux godep go build -a -installsuffix cgo -ldflags '-w' -o node-problem-detector

Or maybe node-problem-detector could start using Autotools to create the Makefile. Because these checks should be performed just once at ./configure time.

from node-problem-detector.

Random-Liu avatar Random-Liu commented on August 28, 2024

@jfilak Yeah, we should check the dependency.

But I'd prefer add the check in the makefile for now, because autotools seems to be a little complex and we don't have too much dependency now. :)

from node-problem-detector.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.