View Single Post
Old 03-12-2009, 12:22 PM   #699
tompe
Grand Sorcerer
tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.tompe ought to be getting tired of karma fortunes by now.
 
Posts: 7,452
Karma: 7185064
Join Date: Oct 2007
Location: Linköpng, Sweden
Device: Kindle Voyage, Nexus 5, Kindle PW
Quote:
Originally Posted by Voracious View Post
Aha! I found the answer. Even though the Makefile had mentioned .EXE files, as I described above, it really was constructing things for Linux.

In addition, the Makefile wanted to use a command that I couldn't find, at first: pp.

After a lot of digging around, I found out what pp was and, after many more gyrations, managed to install PAR::Packer through CPAN.

Once that was there, when I tried "make lm" from the command line, it DID make lit2mobi.exe successfully, and it WAS a Linux binary.

By moving that to /usr/local/bin and renaming it to "lit2mobi" I was able to get it to work the way one would usually expect in a UNIX environment.
I actually think you are the first one that have tested this. I am glad that the Makefile did not contain any Windows specific things so it worked on Linux also.

I think the following would have worked:
Code:
    cp -r lit2mobi Palm MobiPerl /usr/local/bin
The scripts like lit2mobi is written so that they include the directory containing the script in the search path for additional perl modules.
tompe is offline   Reply With Quote