[Cin] Update on Blend Algebra / Blend Program plugins
Georgy Salnikov
sge at nmr.nioch.nsc.ru
Fri Mar 14 11:58:51 CET 2025
On Fri, 14 Mar 2025, Andrew Randrianasulu wrote:
> > Tried to compile on NetBSD and found that here perl located at
> > /usr/pkg/bin/perl
> > so default chebang in perl file does not work ....
Andrew, try to read `perldoc perlrun`
Near the 60-th line several shamanic tricks are suggested to execute a Perl
script if it is not known a priori where the executable is located:
#!/bin/sh
#! -*-perl-*-
eval 'exec perl -x -wS $0 ${1+"$@"}'
if 0;
or
#!/usr/bin/env perl
Of course, the second will not work if NetBSD has no /usr/bin/env, and the
first if `sh' under NetBSD is not in /bin.
Although I personally would prefer a recommendation to either manually
symlink /usr/pkg/bin/perl to /usr/bin on such systems, or manually edit
shebang in all the *.pl scripts (ContextManual.pl as well) when building
CinGG under exotic OS. I am afraid of too shamanic techniques.
> to fix -ldl LDFLAGS on netBSD
> Does it still work on Linux ? :)
I inserted -ldl just because `man dlopen` instructs to do it. May be, it can
work without it (for example, if some other shared library linked to plugins
by default requires it already), I just did not test.
_______________________________________________________________________________
Georgy Salnikov
NMR Group
Novosibirsk Institute of Organic Chemistry
Lavrentjeva, 9, 630090 Novosibirsk, Russia
Phone +7-383-3307864
Email sge at nmr.nioch.nsc.ru
_______________________________________________________________________________
More information about the Cin
mailing list