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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...