Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generate-characterinfo.php: /usr/bin/php: bad interpreter: No such file or directory #132

Open
ryandesign opened this issue Nov 28, 2021 · 1 comment

Comments

@ryandesign
Copy link
Contributor

A user reported to MacPorts that cliclick does not build on macOS 12 because:

generate-characterinfo.php: /usr/bin/php: bad interpreter: No such file or directory

It seems Apple has removed /usr/bin/php as of macOS 12, as they warned some time ago they would do:

  • Scripting language runtimes such as Python, Ruby, and Perl are included in macOS for compatibility with legacy software. In future versions of macOS, scripting language runtimes won’t be available by default, and may require you to install an additional package. If your software depends on scripting languages, it’s recommended that you bundle the runtime within the app. (49764202)

Would you accept a pull request to convert this script to a different language? /usr/bin/perl is still present on macOS 12 but given the warning above, it may be removed in the future. But perhaps using a shell language like /bin/zsh would be more likely to continue to work in the future, since Apple is likely to continue to ship a shell with the OS, and zsh is currently the default shell.

@BlueM
Copy link
Owner

BlueM commented Dec 22, 2021

@ryandesign: sure, thanks. Perl und zsh would be equally fine to me. Note: perl is also used in generate-action-classes-macro.sh, so if you decide to use zsh, Perl should probably also be replaced with sed in that script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants