All Apps and Add-ons

setup.sh syntax errors

darnelledwards
Engager

I am getting the following messages when trying to run setup on solaris 10 x86

./setup.sh: syntax error at line 18: `(' unexpected

1 Solution

itghelp
Path Finder

I had this same issue on Ubuntu 12.04. I fixed it by changing the first line of the setup.sh script to explicitly call /bin/bash and not /bin/sh.

View solution in original post

fab73
Path Finder

Thanks, it worked for me on Ubuntu 12.04.4 with Add-On version 5.2.3

0 Karma

itghelp
Path Finder

I had this same issue on Ubuntu 12.04. I fixed it by changing the first line of the setup.sh script to explicitly call /bin/bash and not /bin/sh.

itghelp
Path Finder

In Ubuntu this happens because calling /bin/sh actually calls /bin/dash.

itghelp@splunk:~$ file /bin/sh
/bin/sh: symbolic link to `dash'

araitz
Splunk Employee
Splunk Employee

Thanks, that's an interesting resolution. When I get a chance, I'll see if that is viable for all the platforms that we support with the TA.

0 Karma

araitz
Splunk Employee
Splunk Employee

Do you know what version of bash you have on that machine? Also, it would be great if you can open a support case so we can get a diag from you.

0 Karma
Get Updates on the Splunk Community!

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...

Tech Talk | Elevating Digital Service Excellence: The Synergy of Splunk RUM & APM

Elevating Digital Service Excellence: The Synergy of Real User Monitoring and Application Performance ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...