Comments (3)
cgo is required to build on darwin (see #66). I think this error is related to cgo. Could you check your installed go argument? Go should be build with cgo-enabled.
Could you try to build CGO_ENABLED=1
like
CGO_ENABLED=1 go test ./...
Thank you.
from gopsutil.
@shirou it's ok after i reinstall with sudo brew install go. Thank you very much
from gopsutil.
grad to hear that. if you meet other problem, feel free to open an issue.
from gopsutil.
Related Issues (20)
- Report a bare-meteral machine as KVM at host.Info HOT 1
- The host.Info() function is unable to correctly identify CentOS Stream 8. HOT 1
- Missing FQDN/hostname option for windows HOT 2
- stat.Rdev (variable of type uint32) as uint64 HOT 4
- Adopt a hierarchy for getting distro name/version on Linux
- Mac OS Apple M1 get cpu info failed "no such file or directory" HOT 3
- Using the gopsutil package causes the goland debugger to not work properly (random jumps)
- ProcTotal Inaccurate in `MiscStats` HOT 4
- : Optimization Request: Reducing the Number of windows.OpenProcess Calls When Gathering Name, CreateTime, and PPID HOT 1
- docker container monitor host resource and usage
- [invoker] set the `WaitDelay` to avoid getting indefinitely blocking wait() HOT 1
- Calling disk.Partitions(false) produces different list on Linux to "df" HOT 1
- `ExeWithContext` returns an error with a Go binary on newer versions of macOS HOT 6
- Inaccurate readings of cpu.Percent
- Allow path to net/dev to not be under HOST_PROC
- Windows interrupt signal errror HOT 1
- Crash in createTimeWithContext when run on FreeBSD arm64 HOT 18
- runtime: program exceeds 10000-thread limit HOT 1
- Builds for netbsd arm fail with `undefined: cpuTimes` HOT 4
- Get current working directory on openbsd 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 gopsutil.