[MacPorts] #22878: Erlang build looks for perl5 module in /usr/local instead of /opt/local
MacPorts
noreply at macports.org
Sun Dec 13 13:52:06 PST 2009
#22878: Erlang build looks for perl5 module in /usr/local instead of /opt/local
----------------------------------------+-----------------------------------
Reporter: macports-trac@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Low | Milestone:
Component: ports | Version: 1.8.1
Keywords: | Port: erlang
----------------------------------------+-----------------------------------
With /usr/local/lib/perl5 absent, an attempt to upgrade to erlang
@R13B03_0 on a Mac PPC G5 running Mac OS X 10.5.8 yields the following
build error, which indicates that the perl module strict.pm is being
sought in the /usr/local hierarchy rather than in the macports hierarchy
(I use the default, /opt/local).
Restoring /usr/local/lib/perl5 solves the problem.
This is unlikely to affect many users because it requires modification of
the default Mac platform to produce. However, it's probably better to
declare a build dependency on perl5 for future safety.
Error: Target org.macports.build returned: shell command " cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_erlang/work
/erlang-R13B03" && /usr/bin/make all " returned error 2
Command output: test X"$ERTS_SKIP_DEPEND" = X"true" || (cd erts/emulator
&&
ERL_TOP=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_erlang/work
/erlang-R13B03 make generate depend)
make -f powerpc-apple-darwin9.8.0/Makefile generate
/bin/mkdir -p powerpc-apple-darwin9.8.0/opt/plain
/bin/mkdir -p obj/powerpc-apple-darwin9.8.0/opt/plain
/bin/mkdir -p pcre/obj/powerpc-apple-darwin9.8.0/opt
/bin/mkdir -p zlib/obj/powerpc-apple-darwin9.8.0/opt
LANG=C /usr/local/bin/perl utils/beam_makeops -outdir powerpc-apple-
darwin9.8.0/opt/plain \
-emulator
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_erlang/work
/erlang-R13B03/lib/compiler/src/genop.tab beam/ops.tab
Can't locate strict.pm in @INC (@INC contains: /usr/local/lib/perl5/5.10.0
/darwin-2level /usr/local/lib/perl5/5.10.0
/usr/local/lib/perl5/site_perl/5.10.0/darwin-2level
/usr/local/lib/perl5/site_perl/5.10.0 /usr/local/lib/perl5/site_perl .) at
utils/beam_makeops line 20.
BEGIN failed--compilation aborted at utils/beam_makeops line 20.
make[2]: *** [powerpc-apple-darwin9.8.0/opt/plain/beam_opcodes.h] Error 2
make[1]: *** [generate] Error 2
make: *** [depend] Error 2
--
Ticket URL: <http://trac.macports.org/ticket/22878>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list