On 10/23/2017 9:11 PM, Dane Terrell wrote:
> Hi I'm new to apache solr. I'm looking to install apache solr 7.1.0 on my 
> localhost computer. I downloaded and extracted the tar file in my tmp folder. 
> But when I try to run the script... sudo: 
> solr-7.1.0/solr/bin/install_solr_service.sh: command not found
> or
> solr-7.1.0/solr/bin/install_solr_service.sh --strip-components=2
> I get the same error message. Can anyone help?

It looks like install_solr_service.sh is not executable.

I created a file named 'fff' in my current directory, with this content:

#!/bin/sh
echo yay

Then I proceeded to try to run it with sudo.  It gave the same message
you got.  Then I made it executable, tried it again, and it worked:

root@smeagol:~# sudo ./fff
sudo: ./fff: command not found
root@smeagol:~# chmod +x fff
root@smeagol:~# sudo ./fff
yay

You have two choices to fix this problem.  You can make the script
executable, or you can add "bash" right after sudo and before the script
path.

Thanks,
Shawn

Reply via email to