On Linux, Komodo requires the standard pthreads library to be installed. Some distributions have setup options that will omit this library. This article will briefly describe what threads are, why they’re important to Komodo, and how to install libpthread on the system.
Threads (also called lightweight processes by some) are a way of making a program appear to do two things at once. For example, one thread running as part of a web browser process might be fetching the page to display, and spawning other threads to fetch the images for the page so that it appears to be happening all at once.
Many modern programs use threads. Komodo is no exception. For example, syntax highlighting will use a thread to update the fonts and colours of the text, while still keeping editing responsive. As such, Komodo requires that libpthread be installed.
If Komodo fails because it cannot find libpthread, it can be installed as follows:
- Kubuntu/Ubuntu: Using Adept, install the libpth2 package
- Fedora Core 5 x64: Using rpm, install pth-2.0.5-1.fc5.x86_64.rpm
- Fedora Core 5 x86: Using rpm, install pth-2.0.5-1.fc5.i386.rpm
- Fedora Core 4 x64: Using rpm, install pth-2.0.4-3.x86_64.rpm
- Fedora Core 4 x86: Using rpm, install pth-2.0.4-3.i386.rpm
- Fedora Core 3 x64: Using rpm, install pth-2.0.4-1.x86_64.rpm
- Fedora Core 3 x86: Using rpm, install pth-2.0.4-1.i386.rpm
- Debian systems: apt-get install libpth2
- SuSE 9.0 x86: Using rpm, install libpth-2.0.0-35.i586.rpm
Title image courtesy of Karly Santiago on Unsplash.