50
I need to install a program that is not available in the package manager. How do I compile from source?
Loading...
Q&A · Answered
I need to install a program that is not available in the package manager. How do I compile from source?
Accepted answer
# Install build dependencies
sudo apt install build-essential
# Download and extract source
wget https://example.com/software.tar.gz
tar -xzvf software.tar.gz
cd software
# Standard build process
./configure
make
sudo make install
# Or with cmake
mkdir build && cd build
cmake ..
make
sudo make installSay what you tried, not only what worked — the next person needs the reasoning. Code goes in a fenced block.