tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: make php to multi packages



On Mon, Mar 24, 2025 at 09:55:28AM +0100, Thomas Klausner wrote:
> The php packages have ALTERNATIVES files, so installing
> pkgtools/pkg_alternatives should be enough. Is it?

It fails when php is used in shebang:

$  cat > test.php << EOT
> #!/usr/pkg/bin/php
> <?php printf("hello world\n"); ?>
> EOT
$ chmod uog+rx  test.php
$ ./test.php
./test.php: 2: Syntax error: "(" unexpected

Is there a trick for that?

-- 
Emmanuel Dreyfus
manu%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index