Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I try start splunk without sudo (or even logged in as root), I get a "no such file or directory" error. The file's definitely there though, it's not even a symlink. It works with sudo, but then ps shows nothing's running and I can't access it through the web portal.

$ /opt/splunk/bin/splunk start
-bash: /opt/splunk/bin/splunk: No such file or directory
$ sudo /opt/splunk/bin/splunk start
$ ps aux | grep splunk
marco    25963  0.0  0.1   7972   900 pts/0    S+   22:58   0:00 grep splunk

Any ideas what's up? I've accepted the license (sudo splunk start --accept-license) and changed the port to 8001 (sudo ./splunk set web-port 8001).

share|improve this question
up vote 2 down vote accepted

Solved it! I had installed the 32 bit deb on a 64 bit server, which caused this.

share|improve this answer
    
If this solves your question, please mark it with a check mark when you can. – soandos Jun 12 '12 at 19:44
    
@soandos You can't accept your own answer within 2 days. – marcog Jun 12 '12 at 21:31

That error is a classic symptom of a script for which the program named in the first line (the line starting with #! — the so-called "shebang" line) does not exist. Type head -5 /opt/splunk/bin/splunk and see what shell is named in the shebang line (e.g., Python, Perl, Ruby, etc.). That file either doesn't exist or is not executable by you.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .