Linux

32/64 bit Ubuntu/Debian Distributions

32/64 bit Fedora / Cent OS


If you are installing OpenCPN for the first time on a computer with Ubuntu, or any other Linux flavor, you have to go through a few steps to make sure that all dependencies are met. Ubuntu uses “deb” packages and Fedora uses the “rpm” packages.

<downloaded_opencpn_file.deb>. The command “gdebi” will automatically install the dependencies for you.

sudo apt-get install libwxgtk2.8-0 libwxbase2.8-0 wx-common libglu1-mesa libgl1-mesa-glx zlib1g bzip2 gpsd gpsd-clients xcalib xdg-utils libportaudio2 libkml0 libtinyxml2.6.2 liburiparser1 zlib1g libexpat1

Then proceed with the commands below.

Using Linux repositories, an easier way to install and update.

Installing in a different, easy way.

Installing on Ubuntu

Add the OpenCPN ppa repository as explained in configuring Ubuntu PPA
- If you are using Synaptic, add the repository, reload the software sources as it suggests, search for and install opencpn
- No need to install anything manually

Other 32, 64bits, the armhf architecture, Linux Distributions and the BSD operating systems

openSUSE notes

Starting with openSUSE 11.4 and onwards, wxWidgets framework is shipped in several mutually exclusive flavors — “STL”, “noSTL” (“wxContainer”), “ANSI”, — of which OpenCPN is only compatible with “noSTL” (“wxContainer”) flavor.

To install the required wxWidgets 3.0, use the following command:

sudo zypper install wxWidgets-3_0-nostl-devel

For legacy OpenCPN builds against the older wxWidgets 2.8, some virtual wx libraries (with no real content) must also be installed in addition to real-deal wx libraries themselves:

sudo zypper install wxWidgets-wxcontainer-compat-lib-config libwx_baseu-2_8-0-compat-lib-wxcontainer libwx_baseu_net-2_8-0-compat-lib-wxcontainer libwx_baseu_xml-2_8-0-compat-lib-wxcontainer libwx_gtk2u_adv-2_8-0-compat-lib-wxcontainer libwx_gtk2u_aui-2_8-0-compat-lib-wxcontainer libwx_gtk2u_core-2_8-0-compat-lib-wxcontainer libwx_gtk2u_gl-2_8-0-compat-lib-wxcontainer libwx_gtk2u_html-2_8-0-compat-lib-wxcontainer

The above commands will also automatically trigger installation of underlying real-deal libraries and other dependencies if they were not present before.