Statocles icon indicating copy to clipboard operation
Statocles copied to clipboard

Failed to find share dir for dist 'Statocles'

Open kablamo opened this issue 10 years ago • 3 comments

$ perl -d:Confess local/bin/statocles create yourmom.com
...
What branch? [master] 
Failed to find share dir for dist 'Statocles' at /home/eric/.anyenv/envs/plenv/versions/5.19.11/lib/perl5/site_perl/5.19.11/File/ShareDir.pm line 173.
        File::ShareDir::dist_dir("Statocles") called at local/lib/perl5/File/Share.pm line 37
        File::Share::dist_dir("Statocles") called at local/lib/perl5/Statocles/Command.pm line 305
        Statocles::Command::bundle_theme(Statocles::Command=HASH(0x252c7b8), "default", "theme") called at local/lib/perl5/Statocles/Command.pm line 255
        Statocles::Command::create_site(Statocles::Command=HASH(0x252c7b8), ARRAY(0x3cb1a58), HASH(0x3cb22e0)) called at local/lib/perl5/Statocles/Command.pm line 48
        Statocles::Command::main("Statocles::Command", "create", "yourmom.com") called at local/bin/statocles line 16

kablamo avatar Jul 04 '15 21:07 kablamo

Hmm... but it found the modules just fine, and File::Share thought to use File::ShareDir to find it. Did you install from CPAN? Could you find what versions of Statocles, File::Share, and File::ShareDir you have? I'll see about setting up a plenv, maybe it's something with that. Oh, and does local/lib/perl5/auto/share/dist/Statocles exist?

preaction avatar Jul 04 '15 21:07 preaction

~/code ⚡ ls local/lib/perl5/auto/share/dist/Statocles/
create/  theme/  zsh/
~/code ⚡ pmvers File::Share
0.25
~/code ⚡ pmvers File::ShareDir
1.102
~/code ⚡ pmvers Statocles
0.050

kablamo avatar Jul 04 '15 21:07 kablamo

Thanks! I'll give it a go and see what I can come up with. Though that's even more puzzling since File::ShareDir should find that. It's right where it's supposed to be...

preaction avatar Jul 04 '15 21:07 preaction