freebsd - Can't locate nginx.pm
Sergey Kandaurov
pluknet at nginx.com
Mon Jul 8 13:02:32 UTC 2013
On Jul 8, 2013, at 4:55 PM, denis <denis at webmaster.spb.ru> wrote:
> /usr/local/etc/rc.d/nginx reload
> Performing sanity check on nginx configuration:
> Can't locate nginx.pm in @INC (@INC contains: /usr/local/lib/perl5/5.10.1/BSDPAN /usr/local/lib/perl5/site_perl/5.10.1/mach /usr/local/lib/perl5/site_perl/5.10.1 /usr/local/lib/perl5/5.10.1/mach /usr/local/lib/perl5/5.10.1 .).
> BEGIN failed--compilation aborted.
> nginx: [alert] perl_parse() failed: 2
> nginx: configuration file /usr/local/etc/nginx/nginx.conf test failed
>
> Недавно перезапуск работал нормально, и сейчас в памяти висит старая версия.
> # ls -la /usr/local/lib/perl5/site_perl/5.10/mach/nginx.pm
> -r--r--r-- 1 root wheel 3302 Jul 8 16:51 /usr/local/lib/perl5/site_perl/5.10/mach/nginx.pm
>
> то, что там 5.10 и 5.10.1 - чей баг, сборщика фри или нгинха?
> nginx-1.4.1_1,1
>
> # uname -a
> FreeBSD cs3990 8.3-STABLE FreeBSD 8.3-STABLE #0: Thu Aug 30 23:26:18 MSK 2012 root at cs3990:/usr/obj/usr/src/sys/GENERIC i386
>
> # cat /etc/make.conf|grep VERS
> PERL_VERSION=5.10.1
Вам наверное сюда:
http://svnweb.freebsd.org/changeset/ports/320679
20130612:
AFFECTS: users of lang/perl* and any port that depends on it
AUTHOR: az at FreeBSD.org
lang/perl5.12 has been upgraded from version 5.12.4 to 5.12.5
lang/perl5.14 has been upgraded from version 5.14.2 to 5.14.4
lang/perl5.16 has been upgraded from version 5.16.2 to 5.16.3
The directory structure where Perl is installed has also been modified:
"major.minor" is now used instead of "major.minor.patchlevel".
[…]
Если придерживаться этой версии причины, то видимо вы чего-то недообновили.
--
Sergey Kandaurov
pluknet at nginx.com
Подробная информация о списке рассылки nginx-ru