holzschu / a-Shell-commands

shell commands, pre-compiled to webAssembly, ready to use in a-Shell
554 stars 21 forks source link

PerlPowerTools for some missing command line tools #20

Open normen opened 2 years ago

normen commented 2 years ago

Just wanted to mention that for some missing tools like col or which, uuencode etc. one can use the "PerlPowerTools" tools from their bin folder - didn't manage to install them via cpan PerlPowerTools though.

https://github.com/briandfoy/PerlPowerTools/tree/master/bin

normen commented 2 years ago

Just found out that they install fine to ~/Documents/perl5/ when using cpan and disabling tests:

cpan -Ti PerlPowerTools
holzschu commented 2 years ago

Ah, yes, testing fails (because it requires a compiler, IIRC). So it's always cpan -T.

holzschu commented 2 years ago

Wait! I remembered: I disabled testing by default (a-Shell sets CPAN_OPTS to -T). How did you get this bug? cpan PerlPowerTools should work, normally.

normen commented 2 years ago

I don't know, for some reason it doesn't get picked up. I also get a ghost error message Skipping -T because I couldn't find a matching namespace with most installs. Maybe that has something to do with it?

holzschu commented 2 years ago

I tried it; it doesn't work with either nothing or -Ti. But I can see that cpan also it tries to install App::a2p, which has C components, so it should not work. I'm glad it worked for you, but I don't understand why.

normen commented 2 years ago

No idea, most installs fail due to the perl interpreter count limitation but then I can compile them manually in th .cpan/builds folder.