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
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Accelerate Splunk App Development with AI

  Learn how to automate the repetitive parts of your build cycle.   Watch On-Demand   Replay the Accelerate ...

Splunk Agent Observability: Measuring AI Value with Splunk Tokenomics on AWS

The AI landscape is moving faster than ever, and our latest 2026 State of Observability report provides the ...

Enterprise Security Watch Party: What’s New in 8.8 - Recap

Splunk Community HQ hosted a Splunk Enterprise Security Watch Party: What’s New In ES 8.8 last Thursday. I had ...