by pmoriarty · 10y ago · 0 comments
Undefined subroutine &main::error called at /usr/bin/stow line 568, <DATA> line 18.
where line 568 of /usr/bin/stow is: error("Slashes are not permitted in package names");
What version of stow do you have? I'm using stow 2.2.0-r2 on Gentoo Linux.>A package directory is the root of a tree containing the installation image for a particular package. Each package directory must reside in a stow directory — e.g., the package directory /usr/local/stow/perl must reside in the stow directory /usr/local/stow. The name of a package is the name of its directory within the stow directory — e.g., perl.
https://www.gnu.org/software/stow/manual/stow.html
The article in the OP also doesn't use this format. Instead it's prefaced with a `cd` command, so you would need to do:
cd foo; stow bar