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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...