Hi, I am trying to build Grafana through the source code on USS (Unix System Services) on z/OS version 2.04 (Version 2 Release 4). The following are the steps I followed.
Given that the error message you are getting is regarding building a nodejs
package, I think you might be better off asking about this on a nodejs forum /
list, because you don’t actually have any problem with Grafana at this stage.
I’m not asking this to be difficult; there are just plenty of other ways to run it. I would encourage you to evaluate whether one of those other ways might work for you/your client after all. Those other ways don’t require asking the developer of a package that was last updated 2 years ago, to add support for a system that was discontinued 20 years ago.
We need to build the Grafana 8.0 from source code on z/OS 2.04 and do customizations like Theme Changes, custom RACF/SAF Authentication, custom Datasources etc and many more. Hence I need to change the source code…my task is not just to install and run Grafana and do monitoring stuff…Hope I have explained you well enough. Pls feel free to ask.
If you’re going to be making code modifications anyway, I think it may be quite easy to remove the node-cachedir dependency and implement the functionality directly (what the package does is quite trivial). Though I suspect there will be other packages where you run into the same issue, so you might end up in a world of pain nonetheless.
I have gone past the node-cachedir error by setting the XDG_CACHE_HOME env variable as: export XDG_CACHE_HOME=~/software/cache-dir/
Then executed “make run all”. After that now I have hit an sqlite3 error that says “unable to find value of constant C.SQLITE_IOERR_NOMEM”. Pls refer attachment.
I’m afraid that I don’t think anyone on this forum will be able to help with this @sivauk.
As @pooh said in his first response, these aren’t really Grafana-specific issues - rather they’re specific to trying to get 3rd party packages to build in an exotic/obsolete environment. So you’d be better off seeking help in the communities/resources for those respective packages.
By the way, I’m afraid that it looks like you have quite a few other errors apart from the final sqlite one in the screenshot - not sure what those are about, but I wouldn’t expect quite so many “undefined” errors during a build.