[Solved] Problem installing calibre

You have a problem with Salix? Post here and we'll do what we can to help.
User avatar
f.bluedevil
Posts: 91
Joined: 9. Jan 2011, 23:06

Re: Problem installing calibre

Post by f.bluedevil »

I'm not trying to be obtuse, really I'm not trying ...really

Here is what I've learned so far:

1. Fetch the read me file.
2. Read the README file.
3. Install all the dependencies
4. Don't assume that because you installed all the dependencies, you installed all the dependencies.
5. PyQt4 = PyQt
6. chm_lib = chmlib
7. What people mean when they talk about "dependency hell". ;) ok, it's not really that bad ...so far

Ok, I searched, then I installed chmlib, now I get:

Code: Select all

File "/usr/src/slapt-src/office/calibre/calibre/src/calibre/ebooks/pdb/ereader/writer.py", line 19, in <module>
    import Image
ImportError: No module named Image
fakeroot -- sh calibre.SlackBuild Failed
I tried searching image / Image which turned out to be useless, of course.

The good news is I think I'm about at the end of the build script. The bad news is I'm stuck again :evil:
User avatar
gapan
Salix Wizard
Posts: 6368
Joined: 6. Jun 2009, 17:40

Re: Problem installing calibre

Post by gapan »

Yes, that's not that obvious. You're looking for "pil", the python image library.
Image
Image
User avatar
f.bluedevil
Posts: 91
Joined: 9. Jan 2011, 23:06

Re: Problem installing calibre

Post by f.bluedevil »

Ok, that did it, calibre is now up and running! :D

Last question(s) for gapan.

Obviously, I got stuck several times trying to determine which package was required when reading the build error output.

Is it simply a matter of experience knowing that PyQt4 refers to PyQt. (although I get the 4 was a reference to a version #, now.) Or, that chm_lib was a call to chmlib and Image was a reference to pil? Or, was there something in the build script that I missed, that would have told me what I needed to know?

Is there a good reference to read on the subject of package building, or is (trial and error .... repeat until competent) the only real way to get there?

Thanks for your patience as well as all your help!
User avatar
gapan
Salix Wizard
Posts: 6368
Joined: 6. Jun 2009, 17:40

Re: Problem installing calibre

Post by gapan »

I don't think you missed anything. It's mostly a matter of experience and recognizing the error messages you receive.
Image
Image
User avatar
maximus
Posts: 141
Joined: 2. Sep 2009, 01:41

Re: [Solved] Problem installing calibre

Post by maximus »

One other thing that can help in determining required dependencies is to have a poke around at the software website. In the case of calibre, on their download_linux page, if you scroll to the bottom you'll find the dependencies listed in a handy table. Sorry I didn't mention it earlier... slipped my mind.
User avatar
laprjns
Salix Warrior
Posts: 1113
Joined: 28. Aug 2009, 01:30
Location: Connecticut USA

Re: [Solved] Problem installing calibre

Post by laprjns »

Yikes! Just went through all this to install calibre. Got up to the "pil" problem by doing search and installs with both slapt-get and slap-src before I got the brilliant idea to search the forum. Kinda reminded me when I first started using Linux with Red Hat 9.0 and discovered what dependency hell is all about.
“The past was erased, the erasure was forgotten, the lie became the truth.”
― George Orwell, 1984
Post Reply