Comments (6)
Hey guys. I have tried multiple times, but to no avail. Any help would be appreciated. Thanks
from monitor-core.
I was able to compile ganglia on MacOSX. If somebody else is looking, here is how you do it
- Download ganglia from the main website. My version is 3.6.0
- Extract and open file libmetrics/darwin/metrics.c
- You need to make two edits to this file. Just add the lines with the + at the start.
FIRST EDIT:
--- libmetrics/darwin/metrics.c.orig 2010-03-16 17:10:25.000000000 +0100
+++ libmetrics/darwin/metrics.c 2010-03-16 20:09:54.000000000 +0100
@@ -11,7 +11,12 @@
#include <stdlib.h>
#include "interface.h"
+/* kvm.h is no longer in /usr/include for Leopard */
+#include <AvailabilityMacros.h>
+#ifndef MAC_OS_X_VERSION_10_5
#include <kvm.h>
+#endif
+
#include <sys/sysctl.h>
#include <mach/mach_init.h>
SECOND EDIT:
diff --git a/libmetrics/darwin/metrics.c b/libmetrics/darwin/metrics.c
index 2259d84..7d285a0 100644
--- a/libmetrics/darwin/metrics.c
+++ b/libmetrics/darwin/metrics.c
-446,6 +446,17 cpu_intr_func ( void )
** FIXME
*/
g_val_t
+cpu_steal_func ( void )
+{
- g_val_t val;
- val.f = 0.0;
- return val;
+}
+/*
+* FIXME
+/
+g_val_t
cpu_sintr_func ( void )
{
g_val_t val;
- follow the rest of the guide here: https://www.deanspot.org/alex/2009/07/25/compiling-ganglia-gmond-and-gmetad-osx-105.html
from monitor-core.
How can I edit the second part? I think I did it wrong and it is still not working. Here is the line:
cpu_intr_func ( void )
{
g_val_t val;
val.f = 0.0;
return val;
}
/*
** FIXME
*/
g_val_t
cpu_sintr_func ( void )
{
g_val_t val;
val.f = 0.0;
return val;
}
####################
Thanks,
from monitor-core.
This bug report includes a diff that is probably a copy of this other one, also on Github. The problem is that here it was not formatted as verbatim
text, and therefore, the diff is incomplete (e.g. the included files are interpreted as HTML tags and not shown, and the deleted lines in the second are shown as a bullet list).
For the record, here is how it should look like, as far as I can guess:
--- libmetrics/darwin/metrics.c.orig 2010-12-08 08:29:45.000000000 -0600
+++ libmetrics/darwin/metrics.c 2010-12-08 08:30:53.000000000 -0600
@@ -11,7 +11,13 @@
#include <stdlib.h>
#include "interface.h"
+
+/* kvm.h is no longer in /usr/include as of osx 10.5 */
+#include "AvailabilityMacros.h"
+#ifndef MAC_OS_X_VERSION_10_5
#include <kvm.h>
+#endif
+
#include <sys/sysctl.h>
#include <mach/mach_init.h>
diff --git a/libmetrics/darwin/metrics.c b/libmetrics/darwin/metrics.c
index 2259d84..7d285a0 100644
--- a/libmetrics/darwin/metrics.c
+++ b/libmetrics/darwin/metrics.c
-446,6 +446,17 cpu_intr_func ( void )
** FIXME
*/
g_val_t
+cpu_steal_func ( void )
+{
-g_val_t val;
-val.f = 0.0;
-return val;
+}
+
+/*
+** FIXME
+*/
+g_val_t
cpu_sintr_func ( void )
{
g_val_t val;
from monitor-core.
... and yes, with those two changes, Ganglia (3.6.1) compiles on my machine (Darwin 14.0.0 with MacPorts toolchain)
from monitor-core.
This is present in the latest git version.
from monitor-core.
Related Issues (20)
- Does the gmond support dynamic python module updating?
- error on the wiki page for value_treshhold
- ganglia-config should not return *all* CFLAGS/Fully support alternate SunRPC implementation like libtirpc
- bus error is occuring on gmetad on RHEL7 (built from "master")
- Need unique names for many small clusters in unicast send-only configuration
- with gmond 3.7.1 ,cannot create udp client if band_hostname is on.
- Ganglia Missing Metrics for Some Nodes
- Links in Wiki broken
- Migrate LGTM.com installation from OAuth to GitHub App
- does it plan to have a new release?
- Anybody built a working RPM for CentOS 8? HOT 1
- Small values bytes_in/bytes_out after week work
- memory leak
- Questions about abnormalities in the passive close of gmond HOT 1
- gmetad 3.7.2 service causes IO hangs HOT 1
- gmond/ganglia not starting with systemd HOT 2
- python_modules not installed
- trouble,what can i do? thank you for help! HOT 1
- undeclared functions in libmetrics/darwin/metrics.c
- default conf file missing in ganglia-monitor 3.7.2-6 (in Ubuntu 22)
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 monitor-core.