Welcome to LQ.
The usual way to do it goes like this, in a terminal window,
with the command :
and those new path's will replace the system PATH
( :/lib:/usr/lib:/usr/local/lib etc.)
until you close the terminal window.
( The above command should be done before running ./configure
and / or make in that terminal.)