I would suggest that you try placing
PATH="/path of bin:$PATH"
Make sure that your .profile includes something to this affect:
# if running bash
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
No doubt Ubuntu has setup their login process to be different from Debian, but this should work. If not, and it's a single-user computer, try placing the path in /etc/profile. Mine is set up like the following, but you should pay attention to how Ubuntu has structured things.
if [ "`id -u`" -eq 0 ]; then
The reason your PATH change set through the cmd line didn't stay after restarting the terminal, is because changes made in that way will only stay in that session.
As for the make procedure, I haven't built Qt from source, so there you will have to check further into their documentation, but if there is a configure step, e.g.
$ configure --bin-directory=DIR --your-chosen switches
See whether you can utilise that method (Type
from the top-level source code directory.)
If I understand what you're trying to do with Qt, (You may be duplicating effort, but it's fun to experiment.
) you might also find the attached text file useful. It's info I compiled from various sources some time back. While it doesn't apply exactly to your situation, I suspect that the issue I had to overcome may be the same as what you're trying to do now. One thing I would add is, don't overwrite existing PATHs. Before making changes, check the output of
If nothing pops up, you're good. As you already know, otherwise be sure to add the original path in
$ export "$PATH:$NEW_PATH"