Skip to content

Instantly share code, notes, and snippets.

@dougm
Created May 12, 2010 22:59
Show Gist options
  • Save dougm/399241 to your computer and use it in GitHub Desktop.
Save dougm/399241 to your computer and use it in GitHub Desktop.
example ohai languages::c output
//darwin:
"languages": {
"c": {
"gcc": {
"version": "4.2.1",
"description": "gcc version 4.2.1 (Apple Inc. build 5659)"
}
},
//windows:
"languages": {
"c": {
"vs": {
"description": "Microsoft (R) Visual Studio Version 8.0.50727.762.",
"version": "8.0.50727.762"
},
"cl": {
"description": "Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 14.00.50727.762 for 80x86",
"version": "14.00.50727.762"
}
},
//linux:
"languages": {
"c": {
"glibc": {
"version": "2.3.4",
"description": "GNU C Library stable release version 2.3.4, by Roland McGrath et al."
},
"gcc": {
"version": "3.4.6",
"description": "gcc version 3.4.6 20060404 (Red Hat 3.4.6-11)"
}
},
//hpux:
"languages": {
"c": {
"gcc": {
"version": "3.4.5",
"description": "gcc version 3.4.5"
},
"hpcc": {
"version": "B.11.11.16",
"description": "HP92453-01 B.11.11.16 HP C Compiler"
}
},
//aix:
"languages": {
"c": {
"xlc": {
"version": "09.00.0000.0000",
"description": "IBM XL C/C++ Enterprise Edition for AIX, V9.0"
}
},
//solaris:
"languages": {
"c": {
"sunpro": {
"version": "5.8",
"description": "cc: Sun C 5.8 2005/10/13"
},
"gcc": {
"version": "3.4.6",
"description": "gcc version 3.4.6"
}
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment