Subject: | Unable to use after installation on Mac OS X |
Hi
I cannot get YAML::XS to work. Did install by cpan and hand:
% perl Makefile.PL
% make
% make test
% make install
See attached log.
But, ...
use YAML:XS; # produces this:
Can't load
'/opt/local/lib/perl5/site_perl/5.8.9/darwin-2level//auto/YAML/XS/LibYAML/LibYAML.bundle'
for module YAML::XS::LibYAML:
dlopen(/opt/local/lib/perl5/site_perl/5.8.9/darwin-2level//auto/YAML/XS/LibYAML/LibYAML.bundle,
1): Symbol not found: _PL_curcop
Referenced from:
/opt/local/lib/perl5/site_perl/5.8.9/darwin-2level//auto/YAML/XS/LibYAML/LibYAML.bundle
Expected in: dynamic lookup
at
/opt/local/lib/perl5/site_perl/5.8.9/darwin-2level//YAML/XS/LibYAML.pm
line 7
Compilation failed in require at
/opt/local/lib/perl5/site_perl/5.8.9/darwin-2level//YAML/XS.pm line 18.
BEGIN failed--compilation aborted at
/opt/local/lib/perl5/site_perl/5.8.9/darwin-2level//YAML/XS.pm line 18.
Compilation failed in require at ./t.pl line 3.
BEGIN failed--compilation aborted at ./t.pl line 3.
Subject: | installationLog.txt |
# Arthur Goldberg: bash log for installing YAML::XS on Mac OS X
$ perl Makefile.PL
Checking if your kit is complete...
Looks good
Prototype mismatch: sub main::prompt: none vs ($;$) at /opt/local/lib/perl5/5.8.9/ExtUtils/MakeMaker.pm line 187
Writing Makefile for YAML::XS::LibYAML
Writing Makefile for YAML::LibYAML
$ make
cp lib/YAML/LibYAML.pm blib/lib/YAML/LibYAML.pm
cp lib/YAML/XS.pm blib/lib/YAML/XS.pm
cp lib/YAML/XS/LibYAML.pm ../blib/lib/YAML/XS/LibYAML.pm
/usr/bin/gcc-4.2 -c -I. -pipe -O2 -arch x86_64 -fno-common -DPERL_DARWIN -I/opt/local/include -no-cpp-precomp -fno-strict-aliasing -I/opt/local/include -O3 -DVERSION=\"\" -DXS_VERSION=\"\" "-I/opt/local/lib/perl5/5.8.9/darwin-2level/CORE" -DHAVE_CONFIG_H api.c
/usr/bin/gcc-4.2 -c -I. -pipe -O2 -arch x86_64 -fno-common -DPERL_DARWIN -I/opt/local/include -no-cpp-precomp -fno-strict-aliasing -I/opt/local/include -O3 -DVERSION=\"\" -DXS_VERSION=\"\" "-I/opt/local/lib/perl5/5.8.9/darwin-2level/CORE" -DHAVE_CONFIG_H dumper.c
/usr/bin/gcc-4.2 -c -I. -pipe -O2 -arch x86_64 -fno-common -DPERL_DARWIN -I/opt/local/include -no-cpp-precomp -fno-strict-aliasing -I/opt/local/include -O3 -DVERSION=\"\" -DXS_VERSION=\"\" "-I/opt/local/lib/perl5/5.8.9/darwin-2level/CORE" -DHAVE_CONFIG_H emitter.c
/usr/bin/gcc-4.2 -c -I. -pipe -O2 -arch x86_64 -fno-common -DPERL_DARWIN -I/opt/local/include -no-cpp-precomp -fno-strict-aliasing -I/opt/local/include -O3 -DVERSION=\"\" -DXS_VERSION=\"\" "-I/opt/local/lib/perl5/5.8.9/darwin-2level/CORE" -DHAVE_CONFIG_H loader.c
/usr/bin/gcc-4.2 -c -I. -pipe -O2 -arch x86_64 -fno-common -DPERL_DARWIN -I/opt/local/include -no-cpp-precomp -fno-strict-aliasing -I/opt/local/include -O3 -DVERSION=\"\" -DXS_VERSION=\"\" "-I/opt/local/lib/perl5/5.8.9/darwin-2level/CORE" -DHAVE_CONFIG_H parser.c
/usr/bin/gcc-4.2 -c -I. -pipe -O2 -arch x86_64 -fno-common -DPERL_DARWIN -I/opt/local/include -no-cpp-precomp -fno-strict-aliasing -I/opt/local/include -O3 -DVERSION=\"\" -DXS_VERSION=\"\" "-I/opt/local/lib/perl5/5.8.9/darwin-2level/CORE" -DHAVE_CONFIG_H perl_libyaml.c
/usr/bin/gcc-4.2 -c -I. -pipe -O2 -arch x86_64 -fno-common -DPERL_DARWIN -I/opt/local/include -no-cpp-precomp -fno-strict-aliasing -I/opt/local/include -O3 -DVERSION=\"\" -DXS_VERSION=\"\" "-I/opt/local/lib/perl5/5.8.9/darwin-2level/CORE" -DHAVE_CONFIG_H reader.c
/usr/bin/gcc-4.2 -c -I. -pipe -O2 -arch x86_64 -fno-common -DPERL_DARWIN -I/opt/local/include -no-cpp-precomp -fno-strict-aliasing -I/opt/local/include -O3 -DVERSION=\"\" -DXS_VERSION=\"\" "-I/opt/local/lib/perl5/5.8.9/darwin-2level/CORE" -DHAVE_CONFIG_H scanner.c
/usr/bin/gcc-4.2 -c -I. -pipe -O2 -arch x86_64 -fno-common -DPERL_DARWIN -I/opt/local/include -no-cpp-precomp -fno-strict-aliasing -I/opt/local/include -O3 -DVERSION=\"\" -DXS_VERSION=\"\" "-I/opt/local/lib/perl5/5.8.9/darwin-2level/CORE" -DHAVE_CONFIG_H writer.c
/opt/local/bin/perl /opt/local/lib/perl5/5.8.9/ExtUtils/xsubpp -typemap /opt/local/lib/perl5/5.8.9/ExtUtils/typemap LibYAML.xs > LibYAML.xsc && mv LibYAML.xsc LibYAML.c
/usr/bin/gcc-4.2 -c -I. -pipe -O2 -arch x86_64 -fno-common -DPERL_DARWIN -I/opt/local/include -no-cpp-precomp -fno-strict-aliasing -I/opt/local/include -O3 -DVERSION=\"\" -DXS_VERSION=\"\" "-I/opt/local/lib/perl5/5.8.9/darwin-2level/CORE" -DHAVE_CONFIG_H LibYAML.c
Running Mkbootstrap for YAML::XS::LibYAML ()
chmod 644 LibYAML.bs
rm -f ../blib/arch/auto/YAML/XS/LibYAML/LibYAML.bundle
env MACOSX_DEPLOYMENT_TARGET=10.3 /usr/bin/gcc-4.2 -L/opt/local/lib -arch x86_64 -bundle -undefined dynamic_lookup -L/usr/local/lib api.o dumper.o emitter.o loader.o parser.o perl_libyaml.o reader.o scanner.o writer.o LibYAML.o -o ../blib/arch/auto/YAML/XS/LibYAML/LibYAML.bundle \
\
chmod 755 ../blib/arch/auto/YAML/XS/LibYAML/LibYAML.bundle
cp LibYAML.bs ../blib/arch/auto/YAML/XS/LibYAML/LibYAML.bs
chmod 644 ../blib/arch/auto/YAML/XS/LibYAML/LibYAML.bs
Manifying ../blib/man3/YAML::XS::LibYAML.3pm
Manifying blib/man3/YAML::XS.3pm
lib/YAML/XS.pm:131: Unknown command paragraph "=encoding utf8"
$ make test
PERL_DL_NONLAZY=1 /opt/local/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/*.t
t/alias...........ok
t/api.............ok
t/ascii...........ok
t/blessed.........ok
t/boolean.........ok
t/bug-pvf.........ok
t/bug-stack.......ok
t/changes.........ok
t/code............ok
t/dump............ok
t/empty...........ok
t/error...........ok
t/file............ok
t/glob............ok
t/leak............ok
t/load............ok
t/magic...........ok
t/native..........ok
t/null............ok
t/numbers.........ok
t/pl_sv_undef.....ok
t/private.........ok
t/quote...........ok
t/ref-scalar......ok
t/regexp..........ok
t/string_nulls....ok
t/tags............ok
t/tied............skipped
all skipped: needs perl 5.10 or higher
t/utf8............ok
All tests successful, 1 test skipped.
Files=29, Tests=267, 3 wallclock secs ( 2.39 cusr + 0.49 csys = 2.88 CPU)
PERL_DL_NONLAZY=1 /opt/local/bin/perl "-I../blib/lib" "-I../blib/arch" test.pl
1..1
ok 1 - Tests for libyaml extension are all defined at the top level
$ sudo make install
Password:
Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
Writing /opt/local/lib/perl5/site_perl/5.8.9/darwin-2level/auto/YAML/LibYAML/.packlist
Appending installation info to /opt/local/lib/perl5/5.8.9/darwin-2level/perllocal.pod