This question about Using an extension: Closed unanswered
Windows Install, CPAN issues
See below for the latest feedback from configure:
- I started with the Windows Installer on Windows Server 2003.
- I had problems with CPAN - tracked down to missing PATH variables
- Of course I needed to install BerkeleyDB (which happens to be version 4.8.24)
- Tried updating Config.in in DB_File (e.g. INCLUDE = "C:\Progra~01\Oracle\Berkel~01\include"), but this did not seem to work successfully)
- Ended up copying db.h and libdb48.lib (as libdb.a) into
strawberry/c/include and strawberry/c/lib
- Make works with failed tests
- Forced install (apparently not good enough as error below)
- Found this link: http://rt.cpan.org/Public/Bug/Display.html?id=42167
- Installed alternative libs and include DB_File now OK. I'm now using BerkeleyDB 4.7 as a result
- Also note this other strawberry issue: http://rt.cpan.org/Public/Bug/Display.html?id=43305 which should mean that the
Can't locate Net/SSLeay.pm
issue is resolvable soon
- I've reported failure to install Unicode/Map8 to strawberry maintainers. Although I may also need to report to Unicode::Map8 maintainers as well.
- Resolution from Strawberry maintainers is to patch Map8.h as follows (maybe Win32 specific):
-
#ifdef PERL
#include "EXTERN.h"
-#include "XSUB.h"
#include "perl.h"
+#include "XSUB.h"
#else
A question I have with Net::SSLeay is how optional is optional? Presumably only optional unless I need to use SSL?
- Update 26 May 2010: This now installs OK
- Bug fix ref #10 above resolved in the October 2009 release of StrawberryPerl
- You also need to install OpenSSL (I happen to have installed 0.98m, presumably later versions are also OK)
- See here for details of Windows binaries, I used the full 8 MB download and the matching Visual C++ 2008 Redistributables
- Not tested (my LDAP set-up does not need SSL), but if you do I hope this gets you further
Apart from that I'm not sure I'm really left with a question, except something like "Isn't more documentation required here?". At least extra docs will point people in the right direction. I'm also aware that I wish to use
DBCacheContrib which may also cause me issues with
BerkeleyDB at some point in the future. How many plugins use some variant of
BerkeleyDB and couldn't this be rationalised?
-
- I've tried to use CPAN to install this but I get a lot of compile errors
- Resolved now with link above
I realise that this is Windows and strawberry perl specific, but I have no choice except to use Windows at my work place.
Running from configure, disabling CPAN
### LdapContrib Installer ###
This installer must be run from the root directory of your Foswiki
installation.
* You can abort the script at any point and re-run it later
* If you answer 'no' to any questions you can always re-run
the script again later
##########################################################
Checking dependency on Authen::SASL....
Authen::SASL v2.13 loaded
##########################################################
Checking dependency on DB_File....
DB_File v1.82 loaded
##########################################################
Checking dependency on Digest::MD5....
Digest::MD5 v2.39 loaded
##########################################################
Checking dependency on Net::LDAP....
Net::LDAP v0.39 loaded
##########################################################
Checking dependency on IO::Socket::SSL....
*** LdapContrib depends on cpan package IO::Socket::SSL >=1.0
which is described as "Optional"
But when I tried to find it I got this error:
Can't locate Net/SSLeay.pm
##########################################################
Checking dependency on Unicode::MapUTF8....
*** LdapContrib depends on cpan package Unicode::MapUTF8 >=1.11
which is described as "Required"
But when I tried to find it I got this error:
Can't locate Unicode/Map8.pm
Archive has already been unpacked.
### Installation finished ###
wow - that's pretty interesting - I've never had this much trouble with it :/ I'll have to do some testing next time i find my windows box - and update to 1.0.7 while I'm there.
I also don't remember having any trouble installing
LdapContrib - but it has been a somewhat long time since i did so on windows
wrt more docco - yup, wanna write it? You've experienced much more pain than I ever have with it - and because of this have a better understanding of what might help someone.
--
SvenDowideit - 13 Oct 2009
Sorry, there seems to be too few people using Foswiki under Windows to give you a sound answer on your support question.
--
MichaelDaum - 04 Jul 2014