Running script in FreeBSD

10,663

Solution 1

Do you have bash installed? If not use FreeBSD Ports to install it. Use where bash to find out.

Solution 2

Use the force Luke :)

# pkg_add -r bash

Solution 3

May it be, that your's configure script doesn't have appropriate executions rights. Try to cast:

chmod 777 configure

If it works, fix it to

chmod 764 configure

Solution 4

configure scripts are ultra portable shell scripts. There is no need for bash here. The problem is somewhere else.

What's the first line in the configure script? Maybe a CR/LF snuck in, which is a common cause for a totally misleading error message saying that the script was not found, when it was the interpreter that was not found.

Please try /bin/sh ./configure

Solution 5

First line of this script (#!/usr/bin/bash, i suppose) should be changed to #!/usr/local/bin/bash. And of course, you should have shells/bash port installed.

Share:
10,663
Alex F
Author by

Alex F

Updated on June 04, 2022

Comments

  • Alex F
    Alex F almost 2 years

    First steps in FreeBSD: trying to run my installation script. Fast help needed:

    # ls
    configure
    # file configure
    configure: Bourne-Again shell script text executable
    # ./configure
    ./configure: Command not found
    # configure
    configure: Command not found
    

    What is wrong, how can I execute this script?

  • Alex F
    Alex F about 14 years
    Really, bash is not installed. I guess I need to ask in SuperUser for details. Thank you.