Tags:
create new tag
view all tags

Question

It may be necessary to install perl module to get an add on to work. For the novice perl person, me in this case, can be confusing.

Environment

TWiki version: TWikiRelease02Sep2004
TWiki plugins: PublshAddOn
Server OS: Linux
Web server: Apache
Perl version: 5.8.6
Client OS: Windows XP
Web Browser: Firefox
Categories:  

-- BradTaylor - 04 Feb 2005

Answer

This answer is for my specific environment, others may vary. I am the TWiki administrator and the linux administrator and have root access.

  1. I first found I needed the perl module Archive::Zip. So I went to http://search.cpan.org and entered Archive::Zip in the search box, found the module and downloaded it to my pc. In this case it was Archive-Zip-1.13.tar.gz which I will use in the description below. * On that same page there is a link CPAN Frequently Asked Questions from which you can find How do I install Perl modules? which is a generic description of the install process. I had to follow another link to one that was more specific to unix perlmodinstall
  2. My perl home is in /usr/lib/perl5/5.8.6
  3. I created a new directory for this and all subsequent downloaded perl modules, called installed
  4. I uploaded it to the installed directory
  5. I followed the directions on how to install from the faq above
    • The part that confused my was they did not say where, in the file system, I should place the downloaded module, which is after some experimentation, why I created the installed directory under PERL_HOME
    1. DECOMPRESS the file
      • gzip -d Archive-Zip-1.13.tar.gz
      • this creates the file Archive-Zip-1.13.tar
    2. UNPACK the file into a directory
      • tar -xof Archive-Zip-1.13.tar
      • the created a directory Archive-Zip-1.13
    3. BUILD the module (sometimes unnecessary)
      • Change to new directory by entering:
        • cd Archive-Zip-1.13
      • enter: perl Makefile.PL
      • enter: make test
    4. INSTALL the module.
      • still in the Archive-Zip-1.13 directory
      • enter make install * This requires write access to the perl libraries, in my case root

-- BradTaylor - 04 Feb 2005

Thanks Brad for sharing. I set the to status to answered.

This is exactly the reason why we have a relatively low TWikiSystemRequirements for the core TWiki. Not all folks have root access (I know there are ways to install Perl modules without root, but these are extra steps that can be avoided)

-- PeterThoeny - 04 Feb 2005

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2005-02-04 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.