Tuesday, October 3, 2017

A workflow for compiling software in Linux


autoreconf --install
./configure
make
make check
sudo checkinstall 
sudo make install

In most instances autoreconfig will not be required.

requires the following to be installed:

gcc
make
autoconfig
checkinstall

Please note you may need to change permissions of the checkinstall .deb package after compile time.


[Updated Oct 15, 2017]
Additionally: 

Running ldconfig after will reload any .so libraries you may have generated. Simply type:

sudo ldconfig -v

Some variations have been noted such as use of auto tools and cmake. For example:

mkdir build
cd build
cmake ../
make
sudo make install
sudo ldconfig