I'm triying to build local MB server using docker and while running docker-compose build, it's throwing below error.
2020-10-01 27501, 2020
apiuser
Step 31/31 : RUN /musicbrainz-server/script/compile_resources.sh ---> Running in e78c1bb243a2Can't locate JSON.pm in @INC (you may need to install the JSON module) (@INC contains: /musicbrainz-server/script/../lib /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.22.1 /usr/local/share/perl/5.22.1 /usr/lib/x86_64-linux-gnu/perl5/5.22 /usr/share/perl5
2020-10-01 27502, 2020
apiuser
/usr/lib/x86_64-linux-gnu/perl/5.22 /usr/share/perl/5.22 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base .) at /musicbrainz-server/script/../lib/DBDefs/Default.pm line 32.BEGIN failed--compilation aborted at /musicbrainz-server/script/../lib/DBDefs/Default.pm line 32.Compilation failed in require at /usr/share/perl/5.22/parent.pm line
2020-10-01 27502, 2020
apiuser
20.BEGIN failed--compilation aborted at /musicbrainz-server/script/../lib/DBDefs.pm line 29.Compilation failed in require at ./script/dbdefs_to_js.pl line 7.BEGIN failed--compilation aborted at ./script/dbdefs_to_js.pl line 7.
2020-10-01 27517, 2020
apiuser
is there something I am missing?
2020-10-01 27537, 2020
apiuser
it complains about JSON module.
2020-10-01 27502, 2020
sublim20 joined the channel
2020-10-01 27526, 2020
darwin
please paste large pastes to a pastebin, like pastie.org, not to channel
2020-10-01 27555, 2020
darwin
you are, generally, asking your question in the correct place, however.
2020-10-01 27516, 2020
darwin
I, unfortunately, do not know the answer.
2020-10-01 27506, 2020
apiuser
ok np. I am trying to install those perl modules.
2020-10-01 27530, 2020
apiuser
just was wondering it's with me or it's known issue.
2020-10-01 27555, 2020
darwin
everyone is pretty asleep who might know the answer, but they should be waking up within the next few hours.
the Dockerfile I linked has eval "$(perl -Mlocal::lib)" in the compile_resources step too, which I think would fix it, but it's not in yours for some reason
2020-10-01 27523, 2020
apiuser
yes true. I have changed docker file to match my environment. but of course, it is not something that can affect perl modules.
2020-10-01 27540, 2020
bitmap
well, that is probably the issue then ^^
2020-10-01 27518, 2020
bitmap
without eval "$(perl -Mlocal::lib)" perl will not be able to find "local::lib" installed modules
2020-10-01 27559, 2020
apiuser
above command already ran before the error is thrown.
2020-10-01 27516, 2020
bitmap
not in the same step, apparently
2020-10-01 27530, 2020
bitmap
each RUN command is in its own shell, so it has to be in the same RUN command
2020-10-01 27548, 2020
bitmap
as in the file I linked
2020-10-01 27523, 2020
apiuser
hmmmm. that I don't know due to veryyyyyy little knowledge about docker. sorry for that.