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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...