You are right. If the compiler used the same logic as that of _nimsuggest_ to find the library location, it should not work. This is strange.
To understand what going on, I looked at the compiler source. In the module “options.nim” of the compiler, the procedure _getPrefixDir_ has a special case for Posix platform. If the parent is /usr, then the prefix directory is set to usr/lib/nim. For some reason, _nimsuggest_ doesn’t call _getPrefixDir_ but uses a simplified rule. And, so, the library path is set to /usr/lib which is wrong. Now, there may be a good reason to not use _getPrefixDir_ in _nimsuggest.nim_. So there should be no problem to install Nim on Linux in the standard locations since the case has been foreseen . But, actually, there is a problem with _nimsuggest_.