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!

Now Available: Cisco Talos Threat Intelligence Integrations for Splunk Security Cloud ...

At .conf24, we shared that we were in the process of integrating Cisco Talos threat intelligence into Splunk ...

Preparing your Splunk Environment for OpenSSL3

The Splunk platform will transition to OpenSSL version 3 in a future release. Actions are required to prepare ...

Easily Improve Agent Saturation with the Splunk Add-on for OpenTelemetry Collector

Agent Saturation What and Whys In application performance monitoring, saturation is defined as the total load ...