I tried to use Nim standard installation on Manjaro and encountered a problem 
with _nimsuggest_. When running _nimsuggest --v3_ , I get an exception with the 
message _cannot open '/usr/lib/system.nim'_.

Manjaro installs Nim binary in /usr/bin and the library in /usr/lib/nim. 
Looking at the source, it appears that _nimsuggest_ looks for a directory named 
“lib” in the parent directory of /usr/bin and, of course, finds /usr/lib. Then 
it expects the library files to be present here, not in a subdirectory.

Should we consider that Manjaro installation of Nim is broken since it doesn’t 
follow this requirement or that there is a problem with the way _nimsuggest_ 
searches the standard library location?

In the first case, how the Manjaro installer should proceed? Installing the 
binary in /usr/bin is standard and installing the library files in a 
subdirectory of /usr/lib seems the right thing to do.

Of course, there are other ways to install Nim, but it is reasonable to expect 
a distribution to provide a standard way to install the compiler and the tools 
as it is the case for other languages.

Reply via email to