Quote:
Originally Posted by nrapallo
OK, I'm stuck here!
To use mobi2imp.pl, I started by first setting up eBook Publisher and the imp viewer as per your wiki writeup, and it's working just fine!
I downloaded and installed tompe's mobiperl and used cspan to get the required modules. I couldn't get GD to install, so I had to download and install libgd first (all done using sudo!).
Then I had to move the MobiPerl and Palm libs to /usr/local/lib/perl/5.8.8 for them to be recognized by my ubuntu 8.04 default perl setup! Mobiperl now also works!!!!
OK, how do I use just mobi2imp.pl? If I issue, perl mobi2imp.pl, I get that it couldn't find Win32/OLE.pm.
I think you said you have to install ActivePerl under wine to use your opf2imp.pl script above. Is that right, I have to download the windows version of ActivePerl and install under wine, even though I already have perl installed on this linux box?
I just want to get your script and my mobi2imp.pl working, but both are missing the OLE.pm. It's not possible to just copy OLE.PM to the linux installation, right?
I issued your wine command above, but it complained that perl.exe could not be found, hence the need for ActivePerl to be installed there using wine, right?
Sorry for all the basic questions, but I'm learning this as I go.
|
Oh where to start to help you become just another of the red haired step children of the linux world trying to run windows only apps....
OK, first you are right the windows version of perl needs to be installed using wine. But there are a couple of twists that you need to be aware of first. So if you look in your home directory there will be a hidden subdirectory named .wine That's where all of the settings and the fake C: drive are. So to get the command line scripts and impmake for that matter to work you will need to set up another hidden directory with some slightly different settings. This new directory is where you want to install perl. To get this new directory just change the WINEPREFIX environment variable to what you want the new directory called and start wine. Open a terminal and enter this.
Code:
WINEPREFIX=/home/yourname/.winenew
wine regedit
That will set the WINEPREFIX variable to .winenew the next line starts the regedit program but wine will see the new value for WINEPREFIX and create everything in there you need. You can just close regedit but its a useful command to remember as you can change the windows PATH variable with it and other things.
Anyway now that you have your second fake windows ready to go you can follow ashkulz's
instructions from the impmake thread except for the part about remove or backup your wine folder. As long as the WINEPREFIX var is set wine will know where to do what you want.
Quote:
To get it working in WINE, you'll need to perform the following:
Remove or backup your existing wine folder (e.g. using rm -fR ~/.wine)
Download winetricks and run "sh winetricks vcrun6"
Install eBook Publisher
run "sh winetricks dcom98" and click Yes twice.
|
Wine wiki winetricks page
Actual link for winetricks script
This will break the gui portion of eBook Publisher in the .winenew directory but will allow you to run the command line tools from here, you still have a working install in the old .wine directory. See where changing WINEPREFIX starts to come into play?
After that is setup then go ahead and install your copy of ActiveState perl for windows in the .winenew directory.
Code:
wine ActivePerl_blah.exe
Now you should be able to run perl and get it to cough up its version etc.
Code:
wine perl -v
This is perl, v5.8.8 built for MSWin32-x86-multi-thread
(with 18 registered patches, see perl -V for more detail)
Copyright 1987-2007, Larry Wall
Binary build 822 [280952] provided by ActiveState http://www.ActiveState.com
Built Jul 31 2007 19:34:48
Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.
Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.
Once you get that you are ready to run some windows perl scripts. If you can figure out how to get ActiveStates module installer to work under wine please share. That is what has stopped me from using any of these scripts from under wine and prompted me to write the short script that I did to create imps using the opf file.

I think I hit all of the high points if I missed something sorry just prod me and I will help with whatever I can.

:
Main Wine site
Wine Wiki
Wine Commands