I’ve a device, which is running with linux kernel version 2.6. I’ve copied Linux 32 bit binaries of mongodb into /usr/local/bin. When I run mongod I get following output
./mongod: line 1: syntax error: unexpected "("
The output for mongo is
/usr/local/bin # ./mongo
./mongo: line 1:ELFPª: not found
./mongo: line 2: syntax error: unexpected ")"
Can anyone tell me What could be the problem?
It appears the binary is corrupted or it is being interpreted by your shell rather than executing. I can achieve similar output if I force shell interpretation:
If you’re concerned that it may be a corrupted download, you could consult this list, which contain md5 hashes for each MongoDB binary release (for the 32bit i686 platform). Alternatively, you could attempt installing MongoDB via a package manager if possible.