Does anyone know how to install perl's Apache2::Ajax on windows when there isn't a ppm? I have perl5.10. I can download the source tar file but can't use the makefile.pl or build.pl in it to build Apache2::Ajax.
I assume you have ActivePerl. You will need to install mod_perl first, there are additional repositories you can enable in ppm manager options. Then run "cpan Apache2::Ajax" from command line.
Related
I have downloaded and installed Strawberry Perl on a Windows 2012 R2 server to run Bugzilla. I have everything installed and configured fine, and Bugzilla is running, but I have a requirement to use LDAP integration. So I tried to install the Net::LDAP module using perl install-module Net::LDAP, but it fails to install because it needs GSSAPI which requires krb5_config.
After working with the people at Bugzilla, I have installed the MIT Kerberos for Windows with the SDK, and ran perl install-module GSSAPI --shell to get to CPAN. Then I ran look GSSAPI so I could download everything and try making the file, but this is where it is failing. I can't figure out what command to run next. I tried MakeFile.pl --gssapi_inc as well as MakeFile.pl --gssapi_libs, but both give me this error:
run "perl Makefile.PL --help" to see further installation options if options gssapi_libs or gssapi_lddlflags are provided, then gssapi_inc must be as well at C:\STRAWB~1\cpan\build\GSSAPI-0.28-JPLEEE\Makefile.PL line 89.
I am now completely lost as to what I need to do to install the Net::LDAP module.
Note: I am using Strawberry Perl and not ActiveState perl so installing via PPM is not an option.
Second NOTE: I know this might be off topic for Stackoverflow but as it does relate to programming I thought it might fit here, if it is a better fit somewhere else please just flag to move.
Actually, Strawberry Perl does come with the PPM module installed, so you can use ppm to install modules. Personally, I have never used ppm to install modules with Strawberry Perl.
To install a module, you just type 'cpan install [module]'. So for the Net::LDAP module, that command becomes: cpan install Net::LDAP
I just tried to install Net::LDAP using portable Strawberry Perl 5.22.1.2 32-bit on Windows 8 and it installed without any issues.
I do not have the MIT Kerberos installed, but I also tried to install the GSSAPI module and that failed. Part of the output from that attempt showed Linux paths. And the CPAN Testers matrix for that module does not show any tests done on Windows. It's possible that you don't really need to have that module installed and might not be able to install that module on Windows.
When I'm trying to build Apache Thrift source in cygwin, I'm getting error saying "Couldn't find libtoolize!". How can I install libtoolize in cygwin?
You will need GNU M4 1.4.6 or later to install LibTool (which includes libtoolize).
Good news is that you can easily do it if you run the Cygwin installer (no worries, it will keep your Cygwin installation and add new packages if you select them). So all you need to do is to click on the following buttons:
GNU M4 installation
LibTool installation
'libtoolize' is a part of libtool. You can dowload latest version of libtool from http://ftp.gnu.org/gnu/libtool/, extract it, then run ./configure and make install from cygwin terminal.
Use this:
python -mpip get-install libtoolize
I have a standard installation of ActivePerl. I need to install the package that is not included to the installation.
Is there any way to install the package without using ppm / CPAN? (it is supposed to be installed as part of other program)
NOTE: It supposed to work under Windows
A Perl package is an ephemeral store of subroutines and package variables in memory. Perhaps you mean a Perl distribution?
First, install cpanm if you don't already have it.
cpan App::cpanminus
Yes, this works on Windows. No, you don't have to install a compiler. cpan will do that for you if necessary.
Then, install the distribution by passing its file name to cpanm. For example,
cpanm IPC-System-Simple-1.21.tar.gz
This will perform the required configuration, install the indicated prerequisites, prepare the distribution's content for installation (e.g. by building any files that need building), run the distribution's tests and install the distribution.
I'm pretty rusty with Perl and I don't think it's helping that I'm running it in Windows.
I'd like to install this module. I tried the instructions here to install a CPAN module, but it fails trying to install App::cpanminus (the very first step.) I tried just running cpan Config::Simple and it didn't work either. In both situations, it fails with this error message:
Unwrapping had some problem, won't try again without force
Had problems unarchiving. Please build manually
Running make test
Make had some problems, won't test
Running make install
Make had some problems, won't install
Does CPAN just not work from the version of Perl that's installed with XAMPP? If so, how do I upgrade it without breaking anything?
manually download and unpack the distro archive
change into the unpacked directory
run cpanm . or cpan .
XAMPP also ships with PPM in C:\xampp\perl\bin\ppm.bat which is often a more Windows friendly way to get modules for perl.
There's a step by step example of using ppm with XAMPP here: http://www.apachefriends.org/f/viewtopic.php?t=26407
Many modules are already installed in C:\xampp\perl\lib and C:\xampp\perl\site\lib
Until now I used ActiveState's ActivePerl, and used the ppm for installing modules.
Last week I moved to Strawberry Perl, but I don't know how I should install modules using Strawberry Perl. What is some information on how module installation is done using Strawberry Perl or is there some link on how to install new modules?
You can still use ppm, but it is not recommended. Run CPAN client from the Strawberry Perl or Strawberry Perl (64-bit), sub folder Tools, entry in the Start menu.
Type install Module::Name there.
As Alexandr says, you can use the CPAN client via the start menu. You can also install modules just as you would on Unix from the DOS window:
perl -MCPAN -e shell
install Quantum::Entanglement
You can also download the .tar.gz from CPAN, unzip it and install as you would in Unix:
cd Module-Name-1.23
perl Makefile.PL
dmake
dmake test
dmake install
You may need to make sure your %PATH% environment variable has the right entry to get to Strawberry Perl, and does not contain other copies of dmake or gcc, which will sometimes lead to headaches.
Change the directory:
cd C:\Strawberry\perl\bin
Then
C:\Strawberry\perl\bin>cpan Lingua::EN::Sentence
and the module will install automatically.
CPAN is the easiest installation method.
As Alex has noted, you may have to download a .tar.gz and unzip it. Since he wrote his answer, Strawberry Perl has deprecated dmake, and you should use gmake instead.