I have downloaded sonar 3.5.1 from sonar using wget "http://dist.sonar.codehaus.org/sonar-3.5.1.zip" command. Then I unziped using unzip sonar-3.5.1.zip
command. But when I tried to start sonar using "sudo ./sonar.sh start", I got the error:
.../sonar-3.5.1/bin/linux-x86-64/./wrapper:Syntax error: "(" unexpected
Failed to start sonar.
May I know the reason by anyone.
edited: output of uname -a,
Linux ocrfrt 3.5.0-17-generic #28-Ubuntu SMP Tue Oct 9 19:32:08 UTC 2012 i686 i686 i686 GNU/Linux
The problem is you are running a 32 bit machine.
Just edit /etc/systemd/system/sonar.service file and change linux-x86-64 for linux-x86-32
I also have faced same issue and later identified that installer provided in bin/ directory was used other than the OS actual architecture.
First do check the OS architecture (x86-32 or else) and do use correct installer as per the OS architecture.