I'm running Linux Mint in a VM. When I run ./splunk start in splunk/bin, I get:
bash: ./splunk: cannot executre binary file.
Do I need to install a specific form of java? or something?
This was my problem and this had the answser. I forgot that I was working with a 'trial' Ubuntu 32 bit system and mistakenly installed the 64 bit UF. Easy fix, just download the right one and unzip the thing & startup. I'm thankful Splunk makes it this easy to fix my mistakes. Out of hundreds of Splunk forwarder installs, this has to be the one 32 bit one off.. bleh.
uname -a is your friend 🙂
It appears the splunk executable is not correct for this OS. Can you try "file ./splunk" ?
You should get something like this (this is 64bit, but similar):
# file ./splunk ./splunk: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.4.0, dynamically linked (uses shared libs), for GNU/Linux 2.4.0, stripped
Since you said earlier you are using 32bit Linux, you should have a 32 bit splunk executable, but yours is 64 bit. This could be your problem. (i.e. you need to download the 32 bit splunk install archive if you have 32 bit Linux).
Yes I did that and got
./splunk: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.4.0, stripped
This seems to be correct. Should I try a different distro of linux? If so, what?