Troubleshooting Module Dependency And Installation Problems In Perl CPAN When Installing Kwiki![]() | The Wiki Way |
Best MySQL books:
![]() | The Definitive Guide to Mysql Second Edition |
![]() | Mysql 3rd Edition Developers Library |
![]() | Mysql Cookbook |
Best Perl books:
![]() | Writing Perl Modules for Cpan |
![]() | Programming Perl |
![]() | Learning Perl |
![]() | Perl Cookbook |
Subjects > Computers > Internet > Web > Tech Tips
The Kwiki requires very many other modules to be installed. While this lets Kwiki leverage off of other functionality, it creates a very high chance that it might not install on a fresh system. It is very possible that build problems in other modules will cause Kwiki install to fail.
When Cpan fails to install a module, often because the tests failed, it will talk about needing a forced install. Unfortunately, the cpan program when run with -e 'force install SomeModule?Create' will still often refuse to install the program.
If there is a failure in an early prerequisite, it may require a lot of detective work to find the failing prerequisite, and work through the failures one by one.
If the perl -MCPAN -e 'install Kwiki' command doesn't work at first try, you may need to go through it's prerequisites one by one.
Here is a list of manual commands to try running:
Perl -MCPAN -e 'install AppConfig?Create'
Perl -MCPAN -e 'install Spiffy'
(On Aug 30, 20045, one of it's tests, export4 fails because :XXX is not exported by Spiffy)
If this one failes, it must be forced:
This should work, but doesn't: Perl -MCPAN -e 'force install Spiffy'
If it doesn't work, you'll need to go to the .cpan directory to manually install. For example, if /.cpan/ is your cpan directory, then
cd /.cpan/build ls -al (look for the version number of Spiffy, for example 0.24) cd Spiffy-0.24 make install
Perl -MCPAN -e 'install IO::All'
Note: Template would like to work with all these, but you don't have to install them:
Perl -MCPAN -e 'install Text::Autoformat' Perl -MCPAN -e 'install GD' Perl -MCPAN -e 'install GD::Text' Perl -MCPAN -e 'install GD::Graph' Perl -MCPAN -e 'install GD::Graph3d' Perl -MCPAN -e 'install Image::Info' Perl -MCPAN -e 'install Image::Size' Perl -MCPAN -e 'install Date::Calc' Perl -MCPAN -e 'install Pod::POM' Perl -MCPAN -e 'install Tie::DBI' Perl -MCPAN -e 'install XML::DOM' Perl -MCPAN -e 'install XML::RSS' Perl -MCPAN -e 'install XML::XPath'
Before installing the template module, you might want to setup a test MySQL database, and a test user to access it. Be sure to grant the new test user rights on the test database, and then reload the MySQL database so that the rights changes take effect.
Be sure to test the access of the test user to the database, because if it fails, it will block installation of the Template module. When template setup asks you to specify a database name for use with the mysql driver, just specifying test will not work for the database name. You must fully qualify the database and host in the database connection string (DSN).
Here is a sample database string for a database named test on the local machine:
DBI:mysql:database=test;host=localhost
Perl -MCPAN -e 'install Template'
My first attempt to install Spoon failed, because CPAN wasn't told that DB_File was one of it's prerequisites.
Unfortunately Spoon doesn't list DB_File as one of it's prerequisites, so Spoon may die when testing compile with 'Can't locate DB_File.pm in @INC
If it does this you must:
Perl -MCPAN -e 'install DB_File'
Then you need to install the Spoon module:
Perl -MCPAN -e 'install Spoon'
After all the above steps complete successfully, (which took about 90 minutes to discover and work through) you'll finally be ready to:
Perl -MCPAN -e 'install Kwiki'
Now you are ready to go back to the documentation that promises installing Kwiki will be quick and painless.
The above problem sounds similar to the problems I had today installing Kwiki. With it needing to use do many other CPAN modules, odds are good that there will be a failure somewhere along the line.
I made a wiki page about my struggle with installing Kwiki:
They claimed: "You were blocked from editing because your ip address exists in one or more DNS blackhole lists. These lists contains ip addresses that are known to have open proxies or relay spam."
If this page solved your problem, please consider making a link to this page, and telling your friends about this website.
I spend a lot of time tracking down solutions to many problems and questions, and it takes a lot of time to write about the answers so you can benefit from them. But I hope this page helped you solve your problem, or answered your question, clearly and quickly. You can also contact me about your tech problems. If you can afford some donation to cover my time to look into your problem, please mention the amount you can contribute, and that will help me give proper priority to your request.
Please also consider making a link to this page from your website.
You can also reach me privately with your questions at [my contact page]!
- Garnet
|
Interested in Ana-Liofa On Toxicity Of Depleted Uranium And Firing Ranges?