I got this error when compiling on ubuntu (I have already all dependencies):
juan@Asus:~/dimecoin/src$ make -f makefile.unix
Building LevelDB ...
/bin/sh: 1: ./build_detect_platform: Permission denied
..
build_detect_platform needs to have its execute bit set. Try this:
chmod gou+x /home/juan/dimecoin/src/leveldb/build_detect_platform