Comments (6)
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.
This is a bug, and should be fixed in #39.
For temporary workaround, you can set CGO_ENABLED=1
.
from node-problem-detector.
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.
thanks, it worked for me.
from node-problem-detector.
@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.
@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)
- go.mod vulnerabilities fixed in master; when 0.8.16 release HOT 4
- License Scan and Findings HOT 2
- after upgrading npd from v0.8.13 to v0.8.15, containers with unready status: [node-problem-detector] HOT 10
- v1.8.13 restart count is 1 in gce-master-scale-performance HOT 8
- New CVEs in 0.8.16 HOT 5
- Include automatic CVE scanning in build process HOT 3
- Improve release process HOT 6
- Release v0.8.17 images not done? HOT 3
- Missing test coverage for standalone mode configuration HOT 5
- High CVEs in v0.8.17 HOT 8
- Load rule from configmap HOT 5
- CVE-2022-37434: zlib1g version 1:1.2.11.dfsg-1 HOT 1
- High CVEs in v0.8.18 HOT 8
- draino HOT 1
- Migrate to Community CI By August 1st HOT 12
- Hooking up 3rd party problem daemons
- IF the types of "temporary" and "permanent" always begin to run?? or just choose one of them๏ผ HOT 1
- CVE found with v0.8.19 HOT 9
- Some included config files do not work HOT 1
- Unable to Install node-problem-detector version v0.8.19 on Rocky Linux version 8.10 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-problem-detector.