I'm triying to build local MB server using docker and while running docker-compose build, it's throwing below error.
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
/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
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.
is there something I am missing?
it complains about JSON module.
sublim20 joined the channel
darwin
please paste large pastes to a pastebin, like pastie.org, not to channel
you are, generally, asking your question in the correct place, however.
I, unfortunately, do not know the answer.
apiuser
ok np. I am trying to install those perl modules.
just was wondering it's with me or it's known issue.
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
apiuser
yes true. I have changed docker file to match my environment. but of course, it is not something that can affect perl modules.
bitmap
well, that is probably the issue then ^^
without eval "$(perl -Mlocal::lib)" perl will not be able to find "local::lib" installed modules
apiuser
above command already ran before the error is thrown.
bitmap
not in the same step, apparently
each RUN command is in its own shell, so it has to be in the same RUN command
as in the file I linked
apiuser
hmmmm. that I don't know due to veryyyyyy little knowledge about docker. sorry for that.