crosstool-NG.sh: Permission denied


(Alejandro Visiedo) #1

I have installed the last version of crosstool-ng, and when I go to run the build of the crosstools I get the message below:

/bin/bash: /usr/local/Cellar/crosstool-ng/1.23.0_2/lib/crosstool-ng-1.23.0/scripts/crosstool-NG.sh: Permission denied

I have fixed giving execution permission on the script, and everything worked again properly.

Looks like the install process require to append the permission when installing the formula.


(Claudia) #2

@avisiedo This is deliberate. The formula installs an executable /usr/local/bin/ct-ng, which is a thin wrapper for crosstool-NG.sh. The latter is not intended to be run directly; if you still choose to do so, then the solution you already outlined should be perfectly fine.