I asked this question on perlmonks, and have made limited progress so I will ask here. I installed perl 5.16.0, threaded, on Mac OS X 10.7.5, using perlbrew. Now, when I try to transfer modules to the new install, it fails with a message that I don't understand. Below are commands I used and output.
$ perlbrew install --as perl-5.16.0t -Dusethreads perl-5.16.0
Then, following a post on perlmonks:
$ perldoc -t perllocal | perl -lane'/"Module"/ && print $F[-1]' | sort -u >/tmp/pms
$ perlbrew switch perl-5.16.0t
$ cpanm -v </tmp/pms &>>/tmp/inst.log & tail -f /tmp/inst.log
I then tried these commands as a simple check, and got output I can't begin to fathom:
$ perl -e 1 -MFile::Find
dyld: lazy symbol binding failed: Symbol not found: _Perl_Istack_sp_ptr
Referenced from: /Users/abualiga/perl5/lib/perl5/darwin-thread-multi-2level/auto/Cwd/Cwd.bundle
Expected in: flat namespace
dyld: Symbol not found: _Perl_Istack_sp_ptr
Referenced from: /Users/abualiga/perl5/lib/perl5/darwin-thread-multi-2level/auto/Cwd/Cwd.bundle
Expected in: flat namespace
Trace/BPT trap: 5
$ perldoc File::Find
dyld: lazy symbol binding failed: Symbol not found: _Perl_Istack_sp_ptr
Referenced from: /Users/abualiga/perl5/lib/perl5/darwin-thread-multi-2level/auto/Cwd/Cwd.bundle
Expected in: flat namespace
dyld: Symbol not found: _Perl_Istack_sp_ptr
Referenced from: /Users/abualiga/perl5/lib/perl5/darwin-thread-multi-2level/auto/Cwd/Cwd.bundle
Expected in: flat namespace
Trace/BPT trap: 5
I uninstalled perl-5.16.0t and removed folder perlbrew and the line from .bash_profile, so now I am back to system perl 5.12.3. I would like to know how to do this though, to have multiple perls in my home directory, and not have to use ActiveState.