Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > Kindle Formats

Notices

Reply
 
Thread Tools Search this Thread
Old 03-11-2009, 06:17 AM   #691
Ortep
Fanatic
Ortep has a complete set of Star Wars action figures.Ortep has a complete set of Star Wars action figures.Ortep has a complete set of Star Wars action figures.Ortep has a complete set of Star Wars action figures.Ortep has a complete set of Star Wars action figures.
 
Posts: 527
Karma: 470
Join Date: Sep 2007
Location: The Netherlands
Device: Kindle Oasis
Quote:
Originally Posted by Sweetpea View Post
Where are those exes anyway? I did download the html2mobi and mobi2mobi (apparently), but can't find an exe for mobi2html...

The are included in the complete package

https://dev.mobileread.com/dist/tompe/mobiperl/

Pickup the latest 9.4 Meg file and you'll find all of them
Ortep is offline   Reply With Quote
Old 03-11-2009, 06:52 AM   #692
Sweetpea
Grand Sorcerer
Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.Sweetpea ought to be getting tired of karma fortunes by now.
 
Sweetpea's Avatar
 
Posts: 9,707
Karma: 32763414
Join Date: Dec 2008
Location: Krewerd
Device: Pocketbook Inkpad 4 Color; Samsung Galaxy Tab S6
duh!

I thought those were the perl files...

I'll go sit in a corner now...
Sweetpea is offline   Reply With Quote
Advert
Old 03-11-2009, 10:31 PM   #693
Voracious
Junior Member
Voracious began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Mar 2009
Device: FBReader for Linux + Sony Clié
Missing file/dependency?

Hello, all.

Just got mobiperl-0.0.41 (seems to be the most current), and am trying to run it on my Debian "Etch" Linux system.

In the absence of documentation, I just tried running "lit2mobi" to see what would happen, and I got an error message about a dependency that I was able to resolve (Palm::PDB) by finding the file here.

Once I had that in place and tried again, however, a different problem arose, which I have not been able to resolve. Specifically, it fails while looking for Palm:Raw() and I haven't been able to find that anywhere.

Would someone please post whatever file it is that would contain that, or otherwise assist in solving this issue?

Thanks!
Voracious is offline   Reply With Quote
Old 03-12-2009, 12:13 AM   #694
pilotbob
Grand Sorcerer
pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.
 
pilotbob's Avatar
 
Posts: 19,832
Karma: 11844413
Join Date: Jan 2007
Location: Tampa, FL USA
Device: Kindle Touch
Quote:
Originally Posted by Sweetpea View Post
Where are those exes anyway? I did download the html2mobi and mobi2mobi (apparently), but can't find an exe for mobi2html...
Go to this page:

https://dev.mobileread.com/trac/mobiperl

Then you see in the Download area it says Windows Binaries which gives you anther link...from there d/l the latest ZIP file.

BOb
pilotbob is offline   Reply With Quote
Old 03-12-2009, 12:16 AM   #695
pilotbob
Grand Sorcerer
pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.
 
pilotbob's Avatar
 
Posts: 19,832
Karma: 11844413
Join Date: Jan 2007
Location: Tampa, FL USA
Device: Kindle Touch
Quote:
Originally Posted by Voracious View Post
In the absence of documentation, I just tried running "lit2mobi" to see what would happen, and I got an error message about a dependency that I was able to resolve (Palm::PDB) by finding the file here.
Did you read the directions on the web site on installing on Debian?

https://dev.mobileread.com/trac/mobiperl

You have to use CPAN to install the follow modules:

install Palm::PDB
install XML::Parser::Lite::Tree
install GD
install Image::BMP
install Image::Size
install HTML::TreeBuilder
install Getopt::Mixed
install Date::Parse
install Date::Format
BOb
pilotbob is offline   Reply With Quote
Advert
Old 03-12-2009, 02:46 AM   #696
Voracious
Junior Member
Voracious began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Mar 2009
Device: FBReader for Linux + Sony Clié
Quote:
Originally Posted by pilotbob View Post
Did you read the directions on the web site on installing on Debian?
...
You have to use CPAN to install the follow modules:
Well, that was the problem: I am not familiar with CPAN, so I had followed ONLY the instructions for Debian, and had ignored the rest, since they all appeared to be other systems or other distros.

This time, lit2mobi DID work, and DID convert a .LIT file properly, but only if I either had the .LIT file in the same directory with lit2mobi, or specified a full path.

Obviously, I'm missing something else. Otherwise, shouldn't this be able to be placed into /usr/bin or /usr/local/bin to make it usable from anywhere? The Makefile didn't seem to be of any help, since there was no "install" and all the individual rules appeared to be Windows related (e.g file names ending in .EXE and a reference to Win32) even though the package I downloaded was the tar file, NOT the zipped "win" file.

Thanks again. Progress!

P.S.: Unfortunately, I have never taken the time to lean Perl, since AWK was always my thing and then my career took a different turn, anyway (now I'm a missionary helping other missionaries with their computers, along with everything else I do). So, please forgive my complete unfamiliarity with some of these things.

Thank you for your help, AND your patience.
Voracious is offline   Reply With Quote
Old 03-12-2009, 11:43 AM   #697
Voracious
Junior Member
Voracious began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Mar 2009
Device: FBReader for Linux + Sony Clié
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.

Thanks, again, for your help, pilotbob!

Last edited by Voracious; 03-12-2009 at 11:48 AM.
Voracious is offline   Reply With Quote
Old 03-12-2009, 12:17 PM   #698
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
Well, that was the problem: I am not familiar with CPAN, so I had followed ONLY the instructions for Debian, and had ignored the rest, since they all appeared to be other systems or other distros.
The instructions for Debian says to search for a Debian module and if that did not exist use CPAN.

Quote:
This time, lit2mobi DID work, and DID convert a .LIT file properly, but only if I either had the .LIT file in the same directory with lit2mobi, or specified a full path.
Yes, of course it works that way. Like all other Unix programs. How would it find a file if it was not in the current directory or given by using full path?

Quote:
Obviously, I'm missing something else. Otherwise, shouldn't this be able to be placed into /usr/bin or /usr/local/bin to make it usable from anywhere?
Yes, place them in /usr/local/bin if you want. Just copy the files (including the MobiPerl directory) there and make sure the file permission is correct.

Quote:
The Makefile didn't seem to be of any help, since there was no "install" and all the individual rules appeared to be Windows related (e.g file names ending in .EXE and a reference to Win32) even though the package I downloaded was the tar file, NOT the zipped "win" file.
The Makefile is mostly for producing Windows binaries and is includes so other people can provide the binaries.

The instructions assumes some familiarity with a Unix based system.
tompe is offline   Reply With Quote
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
Old 03-13-2009, 12:56 PM   #700
pilotbob
Grand Sorcerer
pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.
 
pilotbob's Avatar
 
Posts: 19,832
Karma: 11844413
Join Date: Jan 2007
Location: Tampa, FL USA
Device: Kindle Touch
Quote:
Originally Posted by tompe View Post
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.
Yes, I think that would work as long as the shebang in the perl script was correct. And you set the execute permission on the script accordingly. I basically do the same thing on my Mac.

BOb
pilotbob is offline   Reply With Quote
Old 03-13-2009, 01:13 PM   #701
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 pilotbob View Post
Yes, I think that would work as long as the shebang in the perl script was correct.
It is on purpose made _correct_ and if it does not work it is you computer that has a problem:
Code:
#!/usr/bin/env perl
tompe is offline   Reply With Quote
Old 03-13-2009, 01:15 PM   #702
pilotbob
Grand Sorcerer
pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.
 
pilotbob's Avatar
 
Posts: 19,832
Karma: 11844413
Join Date: Jan 2007
Location: Tampa, FL USA
Device: Kindle Touch
Quote:
Originally Posted by tompe View Post
It is on purpose made _correct_ and if it does not work it is you computer that has a problem:
Code:
#!/usr/bin/env perl
You are right... that should work. On the mac it will only work if the line endings are LF only. I think I had to fix that on some of the scripts folks have provided.

Of course, if you have more than one version of perl on your machine you may need to make this a bit more specific.

BOb
pilotbob is offline   Reply With Quote
Old 03-13-2009, 06:24 PM   #703
bwaldron
Wizard
bwaldron ought to be getting tired of karma fortunes by now.bwaldron ought to be getting tired of karma fortunes by now.bwaldron ought to be getting tired of karma fortunes by now.bwaldron ought to be getting tired of karma fortunes by now.bwaldron ought to be getting tired of karma fortunes by now.bwaldron ought to be getting tired of karma fortunes by now.bwaldron ought to be getting tired of karma fortunes by now.bwaldron ought to be getting tired of karma fortunes by now.bwaldron ought to be getting tired of karma fortunes by now.bwaldron ought to be getting tired of karma fortunes by now.bwaldron ought to be getting tired of karma fortunes by now.
 
bwaldron's Avatar
 
Posts: 1,230
Karma: 543210
Join Date: Feb 2008
Location: Gatlinburg, Tennessee
Device: Kindles: Paperwhite Signature Ed., Oasis 2, Voyage
Quote:
Originally Posted by pilotbob View Post
Sure, but for someone that just wants to run the thing... the packaged EXEs can make it easier to get started.
Can't speak for anyone else, but the exe's are problematic on my system -- they have a tendency to hang indefinitely...and since I have perl installed anyway, it's just as easy to use that version.
bwaldron is offline   Reply With Quote
Old 03-15-2009, 05:10 PM   #704
kevindorsey
Evangelist
kevindorsey has a complete set of Star Wars action figures.kevindorsey has a complete set of Star Wars action figures.kevindorsey has a complete set of Star Wars action figures.
 
Posts: 488
Karma: 258
Join Date: Mar 2009
Device: kindle
Quote:
Originally Posted by bwaldron View Post
Can't speak for anyone else, but the exe's are problematic on my system -- they have a tendency to hang indefinitely...and since I have perl installed anyway, it's just as easy to use that version.
That's true.
kevindorsey is offline   Reply With Quote
Old 03-16-2009, 12:58 PM   #705
MoboHobo
Banned
MoboHobo began at the beginning.
 
Posts: 50
Karma: 10
Join Date: Mar 2009
Location: Canada
Device: Kindle 1
Quote:
Originally Posted by pilotbob View Post
Go to this page:

https://dev.mobileread.com/trac/mobiperl

Then you see in the Download area it says Windows Binaries which gives you anther link...from there d/l the latest ZIP file.

BOb
Thanks for the link.
MoboHobo is offline   Reply With Quote
Reply

Tags
mobi2mobi, mobils


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mobi2Mobi Mobi2Mobi v0.13 - GUI for Mobiperl tools Jad Kindle Formats 476 03-15-2015 05:51 PM
Tools for Editing Kindle .mobi Files? GJN Kindle Formats 33 12-26-2013 02:05 PM
Handy Perl Script to convert HTML0 files to smartquotes maggotb0y Sony Reader 0 04-12-2007 11:49 AM
PRS-500 Perl tools to generate Reader content TadW Sony Reader Dev Corner 0 01-08-2007 05:55 AM
gmail copy (gmcp) - Perl script to copy files to/from Gmail Colin Dunstan Lounge 0 09-04-2004 01:24 PM


All times are GMT -4. The time now is 11:12 AM.


MobileRead.com is a privately owned, operated and funded community.