Deployment Architecture

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
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...