I am trying to run splunk as a non-root user, but every time i start splunk I get the error "splunkd: error while loading shared libraries: libxslt.so.1: cannot open shared object file: No such file or directory"
I have created a user and group named "splunk" to run the server as. I have given it rights to read/write /opt/splunk. Even if I do:
I still get that error. As long as i set the $SPLUNK_HOME using setSplunkEnv, ldd correctly finds all the libraries on the system or in the /opt/splunk/lib/ directory.
It does work fine when I start it as root.
To make things more complicated, my sysadmins tell me that having /opt/splunk/lib in /etc/ld.so.conf breaks their Red Hat Network update stuff so they removed it. So, I tried the following before starting splunk:
which also results in ldd finding all the libraries, but I still get the error when starting splunkd.
Splunk> All batbelt. No tights. Checking Prerequisites... Checking http port : open Checking mgmt port : open Checking configuration... Done. Checking index directory... Done. Checking databases... Validated databases: _audit, _blocksignature, _internal, _thefishbucket, history, main, sample, summary, test Checking for SELinux All Preliminary checks passed. splunkd: error while loading shared libraries: libxslt.so.1: cannot open shared object file: No such file or directory
asked 19 Mar '11, 06:20
You shouldn't need to do any of this stuff, much less mess with the system /etc/ld.so.conf. What I would do is:
There's not really very much more to it.