If you want to FIX the problem both Lee and I have pointed you in the right direction based on the information you've given.
If you want to LEARN Linux then nothing beats doing an LFS installation.
I did it many years ago and it answered a ton of 'Why? Questions' that I benefit from even today.
It will give you names for patterns you've seen but never knew and give you the reasons why it is that way.
It will give you a new appreciation for package management, and the hard work packagers contribute.
It will give you a new appreciation for the excellent mature distributions we have available to us now.
I guarantee you won't be afraid to compile apps from source anymore.
If you want to learn more after doing LFS, install the following distributions in different vms and get used to them and their differences.
Try setting up your application on each one of them.
net-bsd or free-bsd
Redhat or fedora
Debian or Ubuntu
Gentoo
Gentoo is a lot of fun but I don't use it in production nor would I use LFS, but as learning tools they are excellent.
Good luck.