10-22-2008, 11:41 AM | #1 | ||
Jack O' Apes
Posts: 227
Karma: 1939
Join Date: Dec 2007
Location: Oklahoma
Device: Ebookwise 1150, Nokia N810, EZ-Reader, HTC Droid Incredible, Archos 70
|
Imp scripts and wine linux related
Quote:
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 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:
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 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. 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 Last edited by derrell; 10-22-2008 at 11:53 AM. Reason: Added some links. |
||
10-22-2008, 12:00 PM | #2 | |
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Quote:
Thanks, a lot for this, derrell! I'll be trying it out soon, so I may return.... |
|
Advert | |
|
10-22-2008, 12:05 PM | #3 |
Jack O' Apes
Posts: 227
Karma: 1939
Join Date: Dec 2007
Location: Oklahoma
Device: Ebookwise 1150, Nokia N810, EZ-Reader, HTC Droid Incredible, Archos 70
|
Well at least it sounds as though you still have most of your hair. Mine sadly seems to have migrated elsewhere.
I'm off to bed so I'll check back before I head to work tonight and see if any questions came up. |
10-22-2008, 12:11 PM | #4 |
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
|
10-22-2008, 10:53 PM | #5 | ||
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Quote:
Quote:
But, I'll never know since I couldn't find a .exe to install, just a .msi that needs 'Windows Script Hosting' installed (WSH.exe) but it's not available anymore on the web!!! I tried: sh winetricks wsh56, but it aborted with an advpack.dll error popup! I'm really stuck here. Could you check to see if you did something else here? I know that this thing is hit-and-miss, but IF we can get it working consistently, then that may spark more .imp development for linux users. I mean two out of three developers in this forum use linux computers... Hey, ashkulz, any thoughts, thoughts, thoughts, ... |
||
Advert | |
|
10-23-2008, 01:30 AM | #6 |
Jack O' Apes
Posts: 227
Karma: 1939
Join Date: Dec 2007
Location: Oklahoma
Device: Ebookwise 1150, Nokia N810, EZ-Reader, HTC Droid Incredible, Archos 70
|
Sorry about the exe command. I used the msi as well just forgot about it. There is a command listed on the wine commands link above that might work. I think I used microsofts msi installer but dont remeber for sure. But then I installed a standard perl package. Sorry about the ambiguity in the commands. Wasnt sure of how comfortable you were with the linux command line. As far as the widows scripting goes Im sure it is still out there somewhere if you really need it. Posting from my phone sort of sucks so I'll look at this some more when I get home.
|
10-23-2008, 10:00 AM | #7 | |||
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Quote:
Quote:
Quote:
|
|||
10-23-2008, 12:24 PM | #8 |
Jack O' Apes
Posts: 227
Karma: 1939
Join Date: Dec 2007
Location: Oklahoma
Device: Ebookwise 1150, Nokia N810, EZ-Reader, HTC Droid Incredible, Archos 70
|
Haven't found an answer yet. But I did verify that perl 5.8.8-822 does install with
Code:
msiexec /i ActivePerl-5.8.8.822-MSWin32-x86-280952.msi I did find wsh at this link but it doesn't install complaining about not being able to find a place to extract. Tried installing wsh56 with winetricks but it doesn't install because of a problem with advpack.dll. Is there enough difference between the two versions of perl 820 and 822 to make a difference? I wouldn't think there would be but I've been wrong before. For reference if anyone is interested here is the link for the different versions of ActiveState perl for win32. Last edited by derrell; 10-23-2008 at 12:28 PM. Reason: Added perl link |
10-24-2008, 08:55 AM | #9 | ||
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Quote:
Here is what I've learnt works:
Quote:
I do get the Mobi2IMP-installer to properly setup the program, and can even launch the GUI, but the Mobi2IMP.exe built using pp (par) is broken under wine!!! So no go here! HOWEVER, perl scripts like your opf2imp.pl should now work as well as the many perl scripts I created earlier this year (see sticky Using perl scripts to produce .IMP ebooks and more) Round One, has been won! Last edited by nrapallo; 10-24-2008 at 09:00 AM. Reason: typos |
||
10-24-2008, 09:59 AM | #10 | |
Jack O' Apes
Posts: 227
Karma: 1939
Join Date: Dec 2007
Location: Oklahoma
Device: Ebookwise 1150, Nokia N810, EZ-Reader, HTC Droid Incredible, Archos 70
|
Quote:
|
|
10-26-2008, 03:47 PM | #11 | |
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Quote:
I cheated though. I realized that the ppm is broken when using ActivePerl for Windows (build 820) and wine, but I have that setup working on my WinXP computer. Sooooooo, I just copied the site/lib directory from my WinXP computer's Perl setup (as described by tompe on this mobiperl dev hub website) to the .winenew (I called it .wineimp) c:/Perl/site/lib and Presto, all works (sort of). See attached site-lib.zip below for MY local perl modules to make Mobi2IMP work. Just place the contents in the site/lib in C:\Perl of your wine installation of the ActivePerl 5.8.8 (build 820). While I did get a valid .imp, I did get some error messages that may or may not be important. I couldn't use the wine viewer for some strange reason, but I attach that .imp here for testing purposes. It displays fine on my WinXP computer. Round two has been won! Last edited by nrapallo; 10-31-2008 at 02:03 PM. Reason: replaced corrupt Space Encyclopedia.zip attachment |
|
10-31-2008, 02:08 PM | #12 |
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
I think I have corrupted my .imp viewer setup under wine as I cannot open the .imp attachment in the previous post.
Can anyone report if they can view that .imp generated in linux/ubuntu on a non-windows computer? |
10-31-2008, 04:53 PM | #13 |
Jack O' Apes
Posts: 227
Karma: 1939
Join Date: Dec 2007
Location: Oklahoma
Device: Ebookwise 1150, Nokia N810, EZ-Reader, HTC Droid Incredible, Archos 70
|
yep the imp opens. As a general rule of thumb though its usually easier not to put spaces in linux file names. Some apps handle them just fine escaping the spaces correctly and some just refuse to do anything with them.
I realize that doesn't really have much to do with this particular instance but thought I would throw it out there from my personal experience. ---- and one more edit ---- When I read your solution to the whole perl module thing all I could think was doh!!!!!! Should have thought of that myself nice job. Last edited by derrell; 10-31-2008 at 04:57 PM. Reason: thinking faster than I can type |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Calibre on Linux under Wine | tulsa | Calibre | 7 | 03-24-2010 05:17 AM |
Pocketbook SDK, Linux and Wine | mikmak | PocketBook | 10 | 12-09-2009 06:17 AM |
manga2pdf - Linux bash scripts for the Cybook, Sony Reader and iLiad | IceHand | 52 | 03-09-2009 06:36 PM | |
SunriseXP via wine on linux?? | zachofalltrades | Reading and Management | 3 | 09-19-2007 03:51 PM |
Connect software on Linux using Wine? | allovertheglobe | Sony Reader | 0 | 05-18-2007 03:21 PM |