Samba com Erro: “Processing ../heimdal/lib/asn1/der-protos.h:…Can’t locate JSON.pm…”

Problema

Ao tentar compilar o samba 4.16  o erro abaixo acontece

[295/300] Processing ../heimdal/lib/asn1/der-protos.h: third_party/heimdal/lib/asn1/der_get.c third_party/heimdal/lib/asn1/der_put.c third_party/heimdal/lib/asn1/der_free.c third_party/heimdal/lib/asn1/der_format.c third_party/heimdal/lib/asn1/der_length.c third_party/heimdal/lib/asn1/der_copy.c third_party/heimdal/lib/asn1/der_cmp.c third_party/heimdal/lib/asn1/der_print.c third_party/heimdal/lib/asn1/extra.c third_party/heimdal/lib/asn1/timegm.c third_party/heimdal/lib/asn1/template.c third_party/heimdal/lib/asn1/oid_resolution.c -> bin/default/third_party/heimdal/lib/asn1/der-protos.h
Can't locate JSON.pm in @INC (you may need to install the JSON module) (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at /home/elder/download/samba-4.16.1/third_party/heimdal/cf/make-proto.pl line 7.
BEGIN failed--compilation aborted at /home/elder/download/samba-4.16.1/third_party/heimdal/cf/make-proto.pl line 7.

Waf: Leaving directory `/home/elder/download/samba-4.16.1/bin/default'
Build failed
 -> task in '../heimdal/lib/asn1/der-protos.h' failed with exit status 2 (run with -v to display more information)

 

Solução

basta instalar a biblioteca perl-json.

Em distros Red Hat ou CentOS, Oracle Linux, Rocky Linux e deriavados:

sudo yum install perl-JSON

Debian, Ubuntu e derivados:

sudo apt-get install libjson-perl

One Comment to “Samba com Erro: “Processing ../heimdal/lib/asn1/der-protos.h:…Can’t locate JSON.pm…””

Deixe um comentário

O seu endereço de e-mail não será publicado.