Archive

Cannot Execute Binary File Linux Virtual Machine

Jamshed
Explorer

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?

Thanks!

Tags (1)

sherm77
Path Finder

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 🙂

0 Karma

alanfinlay
Path Finder

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

alanfinlay
Path Finder

Hi Jamshed,

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).

Jamshed
Explorer

Hi alanfinlay!

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?

Thanks!

0 Karma

yannK
Splunk Employee
Splunk Employee

Make sure that you have the good binaries ( linux build and 64 or 32 bit).
Otherwise it may be a system dependancy. try ./splunk start --debug

Jamshed
Explorer

I am running linux mint 32. Everything seems to be fine on it, and --debug gives the same error.

I ran as sudo and got:

./splunk: 1: ./splunk: Syntax error: "(" unexpected

0 Karma
Take the 2021 Splunk Career Survey

Help us learn about how Splunk has
impacted your career by taking the 2021 Splunk Career Survey.

Earn $50 in Amazon cash!