Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I noticed that the perl version (5.14) shipped with 12.10 does not include the module needed while building WebKiT-GTK.

Looking around on the internet I found few suggestions indicating that I should install something call p5-switch from ports. I have looked around and was not able to get this done. I am not a perl guy and have no idea where i can get this package.

Can someone please help me as to

  1. Where to download the package for ubuntu 12.10
  2. In case it is not a .deb, How do i install it.
share|improve this question
Do you have libswitch-perl installed? It's normally shipped with all of the images. There's also a version in perl-modules. – micahg Oct 23 '12 at 4:56
up vote 7 down vote accepted

If you want to install the Perl module into your system Perl config, there are two methods of installing it:

  1. Install it through the Ubuntu repositories.

  2. Install the .pm through CPAN.

At this time, both will provide the current version of this module(2.16).

Installing using the Ubuntu repositories:

  • From the command-line, the installation can be completed by running the following command from the terminal (Ctrl-Alt-t):

    sudo apt-get install libswitch-perl

    • Within Synaptic, right-click on the libswitch-perl package, select Mark for installation, then click on the Apply button.

    • Within the Ubuntu Software Center (USC), search for the phrase libswitch-perl, highlight the package and select install:

Installing using CPAN: If you would prefer to install this via cpan, follow these instructions:

  1. Open a terminal(Ctrl-Alt-t).

  2. Enter the command cpan.

  3. At the prompt cpan[1]>, type install Switch.

  4. Once completed, Type exit.

The Perl module will now be available for you to use in your scripts.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.