in reply to Re^2: Trying to use App::Fatpacker
in thread Trying to use App::Fatpacker

I think what would help us to help you better would be a complete terminal session with the exact commands you issued, the exact errors that the programs produced, and also whether any files were created and what their contents are. Without that, all we can do is guess based on your description, which I don't feel gets us further.

Replies are listed 'Best First'.
Re^4: Trying to use App::Fatpacker
by elef (Friar) on Nov 03, 2010 at 09:54 UTC
    I completely agree, if we are determined to troubleshoot this, that is the way to go. I don't have all the output saved from the last time I tried this, so I'd need to boot into Ubuntu and install all the modules again.

    As I said in the original post, I can live with not knowing why it failed for me because I suspect it's non-trivial and hopefully I won't need to use App::FatPacker much in the future. If someone could help me out with the final output (the 3 modules packed into a script), I'd be grateful. Otherwise, I can fire up Ubuntu again and give you the verbatim output to hopefully help more with the troubleshooting, but I don't think there will be any new info in it.
    The packlists file is created with no error messsage and it's fine, the folder structure is created with no error message, but it doesn't contain Spreadsheet::WriteExcel, and the fatpack file; cat myscript.pl) >myscript.packed.pl command throws the error about the missing lib folder. When I manually create an empty lib folder, I get an error message about missing .pm files. That's pretty specific, I'd think.

      Have you then, simply, tried to paste the modules at the beginning of your script, or at the end of it? You then just need to replace use Some::Module; with BEGIN{ Some::Module->import() } and that's it.

        I'm a perl beginner, so I didn't.
        I asked about how to do something like this manually in another thread but I got no reply there.
        Thanks for the suggestion, I'll try it later today and report back.

        Just to make sure, by module you mean the complete and unmodified content of the .pm file, right? I guess I need to wrap the content of each .pm in a block of some sort, right? Maybe a sub like so?
        sub HTML::Strip { #content of HTML::Strip's .pm goes here }