Developing and Distributing wxPerl Applications on Linux

From Perl Guilds - Getting Medieval with Perl
Jump to navigation Jump to search

Install wxPerl on Debian and Run wx::Demo

[edit | edit source]

This guide explains how to install **wxPerl** on **Debian** using the package available in the APT repository, install `Wx::Demo`, and run the demo.

Step 1: Update and Install wxPerl

[edit | edit source]

Open a terminal and run the following command:

sudo apt update
sudo apt install -y libwx-perl

This installs **wxPerl** and all necessary dependencies.

Step 2: Install cpanminus (cpanm)

[edit | edit source]

`cpanm` (CPAN Minus) is required to install additional Perl modules easily. Install it using:

sudo apt install -y cpanminus

Step 3: Install Wx::Demo

[edit | edit source]

Once `cpanm` is installed, install **Wx::Demo**:

cpanm Wx::Demo

Step 4: Run the wxPerl Demo

[edit | edit source]

After installation, you can run the wxPerl Demo by executing:

wxperl_demo.pl

If the command is not found, try running:

perl `which wxperl_demo.pl`

Or specify the full path:

/usr/local/bin/wxperl_demo.pl

Verification

[edit | edit source]

If the installation was successful, a **wxPerl Demo** window should open.

See Also