Generally, look at the readme and install files in the directory, which will tell you how to install the software
Now I know that there may be two situations:
1. When there is no configure in the directory, but there is configure.am or configure.in, you need to use Autoconf command to generate configure. The code is as follows:
$CD (software name) – (version number)
$Autoconf
2. This software or library is not installed in the following way
$CD (software name) – (version number)
$./configure
$make
$sudomakeinstall
You need to carefully read the relevant files under the folder, readme, and so on, according to the way written inside to install