Mobileread
mobi2mobi install problems on mac
#1  chip 11-08-2009, 11:43 AM
Hi I also posted over in Kindle Troubleshooting. I hope this is okay, but my problem is with mobi2mobi installation. I'm on a mac running 10.6.1 and I've had trouble with installation of a couple of components. First, two things I notice and what I did about them:

1. In the jpeg lib install, the instructions say:
Now to make the library itself.
export MACOSX_DEPLOYMENT_TARGET=10.5
(use 10.4 if you have Tiger.)

So, I did:
export MACOSX_DEPLOYMENT_TARGET=10.6
I have since redone it with ..._TARGET=10.5, but nothing has changed.

2. The other thing I noticed and failed to remember last night was that /usr/share/libtool/ no longer contains config.sub. Rather, there it is in /usr/share/libtool/config/ ...I used the latter, rather than moving config.sub into the higher directory. I wonder if that causes a pointer problem?

The error message that I get when I try to run ./mobi2mobi bookname.azw (which I do inside of the ~/eBook/tools/ directory that I made according to the instructions as the links somehow did not take in the sequential ln -s commands. I put bookname.azw into ~/eBook/tools/) is:

[chipg5s-Computer-2...\ tools]$ ./mobi2mobi Parallel\ Worlds\ A\ Journey\ Throug-asin_B000GCFCL4-type_EBOK-v_0.azw
Can't locate GD.pm in @INC (@INC contains: /Users/chipg5/eBooks/tools /Library/Perl/Updates/5.10.0/darwin-thread-multi-2level /Library/Perl/Updates/5.10.0 /System/Library/Perl/5.10.0/darwin-thread-multi-2level /System/Library/Perl/5.10.0 /Library/Perl/5.10.0/darwin-thread-multi-2level /Library/Perl/5.10.0 /Network/Library/Perl/5.10.0/darwin-thread-multi-2level /Network/Library/Perl/5.10.0 /Network/Library/Perl /System/Library/Perl/Extras/5.10.0/darwin-thread-multi-2level /System/Library/Perl/Extras/5.10.0 .) at /Users/chipg5/eBooks/tools/MobiPerl/Util.pm line 23.
BEGIN failed--compilation aborted at /Users/chipg5/eBooks/tools/MobiPerl/Util.pm line 23.
Compilation failed in require at ./mobi2mobi line 54.
BEGIN failed--compilation aborted at ./mobi2mobi line 54.

And, indeed when I go back and look at the transcript from the first install attempt (I did it a second time and I have that transcript below) is:

cpan[3]> install GD
Running install for module 'GD'
Running make for L/LD/LDS/GD-2.44.tar.gz
Fetching with LWP:
ftp://cpan-du.viaverio.com/pub/CPAN/...GD-2.44.tar.gz
Fetching with LWP:
ftp://cpan-du.viaverio.com/pub/CPAN/.../LDS/CHECKSUMS
Checksum for /Users/chipg5/.cpan/sources/authors/id/L/LD/LDS/GD-2.44.tar.gz ok
Will not use Archive::Tar, need 1.00
GD-2.44/
GD-2.44/t/
GD-2.44/t/test.out.3.jpeg
GD-2.44/t/GD.t
GD-2.44/t/tile.jpeg
GD-2.44/t/test.out.4.jpeg
GD-2.44/t/test.out.5.jpeg
GD-2.44/t/test.out.6.jpeg
GD-2.44/t/test.out.7.jpeg
GD-2.44/t/test.out.8.jpeg
GD-2.44/t/test.out.9.jpeg
GD-2.44/t/test.out.3.png-1
GD-2.44/t/Polyline.t
GD-2.44/t/test.out.4.png-1
GD-2.44/t/test.out.4.png-2
GD-2.44/t/test.out.10.png-1
GD-2.44/t/test.out.10.png-2
GD-2.44/t/test.out.10.png-3
GD-2.44/t/test.out.1.png
GD-2.44/t/test.out.2.gif
GD-2.44/t/test.out.2.png
GD-2.44/t/test.out.3.gif
GD-2.44/t/test.out.3.png
GD-2.44/t/test.out.4.gif
GD-2.44/t/test.out.4.png
GD-2.44/t/test.out.5.gif
GD-2.44/t/test.out.5.png
GD-2.44/t/test.out.6.gif
GD-2.44/t/test.out.6.png
GD-2.44/t/test.out.7.gif
GD-2.44/t/test.out.7.png
GD-2.44/t/test.out.8.gif
GD-2.44/t/test.out.8.png
GD-2.44/t/test.out.9.gif
GD-2.44/t/test.out.9.png
GD-2.44/t/test.out.5.png-1
GD-2.44/t/Generic.ttf
GD-2.44/t/test.out.6.png-1
GD-2.44/t/test.out.7.png-1
GD-2.44/t/frog.jpg
GD-2.44/t/frog.xpm
GD-2.44/t/test.out.10.jpeg
GD-2.44/t/test.out.8.png-1
GD-2.44/t/test.out.8.png-2
GD-2.44/t/test.out.8.png-3
GD-2.44/t/test.out.8.png-4
GD-2.44/t/test.out.8.png-5
GD-2.44/t/test.out.8.png-6
GD-2.44/t/tile.gif
GD-2.44/t/tile.png
GD-2.44/t/test.out.2.png-1
GD-2.44/t/test.out.9.png-1
GD-2.44/t/test.out.9.png-2
GD-2.44/t/palettemap.png
GD-2.44/t/test.out.10.gif
GD-2.44/t/test.out.10.png
GD-2.44/t/test.out.2.jpeg
GD-2.44/GD/
GD-2.44/GD/Group.pm
GD-2.44/GD/Polygon.pm
GD-2.44/GD/Simple.pm
GD-2.44/GD/Image.pm.PLS
GD-2.44/GD/Polyline.pm
GD-2.44/GD.pm
GD-2.44/GD.xs
GD-2.44/demos/
GD-2.44/demos/brushes.pl
GD-2.44/demos/font_list.png
GD-2.44/demos/fonttest
GD-2.44/demos/polys.pl
GD-2.44/demos/fills.pl
GD-2.44/demos/truetype_test
GD-2.44/demos/shapes.pl
GD-2.44/demos/copies.pl
GD-2.44/demos/ttf.pl
GD-2.44/demos/gd_example.cgi
GD-2.44/demos/tile.png
GD-2.44/demos/polyline.pl
GD-2.44/demos/transform.pl
GD-2.44/qd.pl
GD-2.44/README
GD-2.44/Makefile.PL
GD-2.44/README.QUICKDRAW
GD-2.44/META.yml
GD-2.44/typemap
GD-2.44/bdf_scripts/
GD-2.44/bdf_scripts/README
GD-2.44/bdf_scripts/bdf2gdfont.PLS
GD-2.44/bdf_scripts/bdftogd
GD-2.44/bdf_scripts/bdf2gdfont.pl
GD-2.44/README.unix
GD-2.44/ChangeLog
GD-2.44/MANIFEST

CPAN.pm: Going to build L/LD/LDS/GD-2.44.tar.gz

Notice: Type perl Makefile.PL -h for command-line option summary.

**UNRECOVERABLE ERROR**
Could not find gdlib-config in the search path. Please install libgd 2.0.28 or higher.
If you want to try to compile anyway, please rerun this script with the option --ignore_missing_gd.
Warning: No success on command[/usr/bin/perl Makefile.PL]
LDS/GD-2.44.tar.gz
/usr/bin/perl Makefile.PL -- NOT OK
Running make test
Make had some problems, won't test
Running make install
Make had some problems, won't install
Failed during this command:
LDS/GD-2.44.tar.gz : writemakefile NO '/usr/bin/perl Makefile.PL' returned status 512


Obvously, that's an issue. I redid the ..._TARGET=10.5 and went back to the GD install and got:

[chipg5s-Computer-2...\ gd-2.0.35]$ sudo perl -MCPAN -e shell

cpan shell -- CPAN exploration and modules installation (v1.9402)
Enter 'h' for help.
cpan[2]> install Palm::PDB
Palm::PDB is up to date (1.011).

cpan[3]> install XML::Parser::Lite::Tree
XML::Parser::Lite::Tree is up to date (0.12).

cpan[4]> install GD
Running install for module 'GD'
Running make for L/LD/LDS/GD-2.44.tar.gz
Has already been unwrapped into directory /Users/chipg5/.cpan/build/GD-2.44-ea1oc2
'/usr/bin/perl Makefile.PL' returned status 512, won't make
Running make test
Make had some problems, won't test
Running make install
Make had some problems, won't install


again, obviously a problem.

Any ideas?

thanks.
Reply 

#2  fugazied 11-08-2009, 06:35 PM
Perhaps a silly question, did you try it with sudo (don't flame me hehe)?
sudo install GD
Reply 

#3  pilotbob 11-08-2009, 11:56 PM
I wrote the directions for a Leopard machine. I haven't tried them on Snow Leopard. It looks like some dependencies have been changed. Perhaps tomorrow if I have some time I will look to see if I can get this working on 10.6....

BOb
Reply 

#4  pilotbob 11-09-2009, 12:30 AM
I haven't tried this yet, but rather than using CPAN try using macports. Not sure if you are familiar with it... but there is a GD2 port that I think would meet the requirement of mobiperl.

It looks like you would need to install the following macports to get mobiperl working.

gd2
p5-palm
p5-timedate
p5-getopt-mixed
p5-image-size
p5-xml-parser-lite-tree
p5-encode

BOb
Reply 

#5  pdurrant 11-09-2009, 04:31 AM
Quote chip
**UNRECOVERABLE ERROR**
Could not find gdlib-config in the search path. Please install libgd 2.0.28 or higher.
Did Step 5, the libgd install go OK? Because that's what it is complaining about.
Reply 

#6  pilotbob 11-09-2009, 10:25 PM
Ok,

I got it working on Snow Leopard. Here is what I did.

1. Install MacPorts... this will make it a whole lot easier. http://www.macports.org

2. Once you get ports installed use macports to install the gd lib stuff:
sudo port install gd2

This will also install perl 5.8.9... perl 5.10 comes with Snow Leopard. Not sure it any mac stuff requires that... but you can always go back, macports puts stuff in a separate location.

I also installed the following macports:

p5-gd
p5-palm
p5-timedate
p5-getopt-mixed
p5-image-size
p5-xml-parser-lite-tree
p5-encode

Then, I use CPAN to install the following... there didn't seem to be any macports for them:

HTML::TreeBuilder
Image::BMP

After that mobi2mobi ran... well it gave me the command line options. I didn't actually try it. But, it doesn't seem to run unless all the dependencies are there.

I expect that if you just use MacPorts to install the gd2 stuff... which install all those dependencies like zlib, libtool, libjpeg, libpng, freetype, etc... then you can just use CPAN for the rest.

Good luck to you.

BOb
Reply 

#7  chip 11-13-2009, 08:45 AM
Thanks...I'll try that when I dig out of my current work. I hadn't known about macports, actually!
Chip
Reply 

#8  chip 12-19-2009, 06:35 PM
Quote pilotbob
Ok,

I got it working on Snow Leopard. Here is what I did.

1. Install MacPorts... this will make it a whole lot easier. http://www.macports.org

2. Once you get ports installed use macports to install the gd lib stuff:
sudo port install gd2

This will also install perl 5.8.9... perl 5.10 comes with Snow Leopard. Not sure it any mac stuff requires that... but you can always go back, macports puts stuff in a separate location.


BOb
I finally got a moment to go back to this. Here is what I've done:

1. installed Xtools from the snow leopard disk
2. installed macports - checked with an update command to be sure that it was functioning at that level.
3. tried to install gd2. That failed...with the following error:

[chiplocal-3...\ ~]$ sudo port install gd2
---> Computing dependencies for gd2
---> Verifying checksum(s) for expat
Error: Checksum (md5) mismatch for expat-2.0.1.tar.gz
Error: Checksum (sha1) mismatch for expat-2.0.1.tar.gz
Error: Checksum (rmd160) mismatch for expat-2.0.1.tar.gz
Error: Target org.macports.checksum returned: Unable to verify file checksums
Error: The following dependencies failed to build: autoconf help2man gettext expat libiconv gperf ncurses ncursesw p5-locale-gettext perl5 perl5.8 m4 automake fontconfig freetype zlib jpeg libpng libtool xpm pkgconfig xorg-libX11 groff xorg-bigreqsproto xorg-inputproto xorg-kbproto xorg-libXau xorg-xproto xorg-libXdmcp xorg-util-macros xorg-xcmiscproto xorg-xextproto xorg-xf86bigfontproto xorg-xtrans
Error: Status 1 encountered during processing.

At first, I thought maybe the fetching of the expat tarball failed, so I manually downloaded it into my home directory. But, the above repeated itself. Any ideas?

thanks,
Ray
Reply 

#9  pilotbob 12-19-2009, 10:22 PM
Quote chip
I finally got a moment to go back to this. Here is what I've done:

1. installed Xtools from the snow leopard disk
2. installed macports - checked with an update command to be sure that it was functioning at that level.
3. tried to install gd2. That failed...with the following error:

[chiplocal-3...\ ~]$ sudo port install gd2
---> Computing dependencies for gd2
---> Verifying checksum(s) for expat
Error: Checksum (md5) mismatch for expat-2.0.1.tar.gz
Error: Checksum (sha1) mismatch for expat-2.0.1.tar.gz
Error: Checksum (rmd160) mismatch for expat-2.0.1.tar.gz
Error: Target org.macports.checksum returned: Unable to verify file checksums
Error: The following dependencies failed to build: autoconf help2man gettext expat libiconv gperf ncurses ncursesw p5-locale-gettext perl5 perl5.8 m4 automake fontconfig freetype zlib jpeg libpng libtool xpm pkgconfig xorg-libX11 groff xorg-bigreqsproto xorg-inputproto xorg-kbproto xorg-libXau xorg-xproto xorg-libXdmcp xorg-util-macros xorg-xcmiscproto xorg-xextproto xorg-xf86bigfontproto xorg-xtrans
Error: Status 1 encountered during processing.

At first, I thought maybe the fetching of the expat tarball failed, so I manually downloaded it into my home directory. But, the above repeated itself. Any ideas?

thanks,
Ray
Hmm... I'm not 100% sure but I can think of two things.

1. Did you install the XCode that comes on the Snow Leopard CD? Older versions don't work.

2. Did you install X11 also?

3. run
sudo port selfupdate

How did you install macports? Did you use the install package? That is the easiest way to do it.

BOb
Reply 

#10  chip 12-19-2009, 11:50 PM
Quote pilotbob
Hmm... I'm not 100% sure but I can think of two things.

1. Did you install the XCode that comes on the Snow Leopard CD? Older versions don't work.

2. Did you install X11 also?

3. run
sudo port selfupdate

How did you install macports? Did you use the install package? That is the easiest way to do it.

BOb
Thanks for helping. By the way, this is on a different computer from the one that I tried a month ago. So, that by way of noting that there would be no incompatibilities were this to get going.

1. Yes, I used the snow leopard DVD
2. Yes, I already had X11 installed.

I installed macports from the install package, yes.

3. Here's the result of the selfupdate, followed by another attempt at installing gd2. By the way, anything I try to install of the list you suggested above gives the same checksum error. (which sounds like an unpacking problem of some sort?)

[chiplocal-3...\ ~]$ sudo port selfupdate
Password:
---> Updating the ports tree
---> Updating MacPorts base sources using rsync
MacPorts base version 1.8.1 installed,
MacPorts base version 1.8.1 downloaded.
---> MacPorts base is already the latest version

The ports tree has been updated. To upgrade your installed ports, you should run
port upgrade outdated
[chiplocal-3...\ ~]$ sudo port install gd2
---> Computing dependencies for gd2
---> Verifying checksum(s) for expat
Error: Checksum (md5) mismatch for expat-2.0.1.tar.gz
Error: Checksum (sha1) mismatch for expat-2.0.1.tar.gz
Error: Checksum (rmd160) mismatch for expat-2.0.1.tar.gz
Error: Target org.macports.checksum returned: Unable to verify file checksums
Error: The following dependencies failed to build: autoconf help2man gettext expat libiconv gperf ncurses ncursesw p5-locale-gettext perl5 perl5.8 m4 automake fontconfig freetype zlib jpeg libpng libtool xpm pkgconfig xorg-libX11 groff xorg-bigreqsproto xorg-inputproto xorg-kbproto xorg-libXau xorg-xproto xorg-libXdmcp xorg-util-macros xorg-xcmiscproto xorg-xextproto xorg-xf86bigfontproto xorg-xtrans
Error: Status 1 encountered during processing.
[chiplocal-3...\ ~]$

Did you already have expat installed sometime earlier? Could there be a problem with it?

Ray
Reply 

  Next »  Last »  (1/3)
Today's Posts | Search this Thread | Login | Register