Cannot use 'kim_query' command

I am trying to test the code in LAMMPS, but there is a error:

ERROR: Cannot use ‘kim_query’ command when KIM package is compiled without support for libcurl (src/KIM/kim_query.cpp:189)
Last command: kim_query a0 get_lattice_constant_cubic crystal=[“diamond”] species=[“Si”] units=[“angstrom”]

but the kim_init/kim_interactions command can work.
Could you please help me to check the root cause?

Thanks in advance and regards,
Yanyan

Hello, Your LAMMPS build was crated without the curl library. So, LAMMPS is unable to make a web query to the openkim.org server.

How did you obtain the LAMMPS binary that you are using?

Hello, thank you very much. I get LAMMPS binary from https://github.com/lammps/lammps.git

OK, that is source code. Please provide more details about the system you are using (ubuntu?, windows?, etc.) and how you are building lammps.

Guessing…, you probably need to install the libcurl-dev pacakage before building lammps …

Yes, you are right. I don’t install the libcurl-dev in Ubuntu. But which libcurl-dev package should I install? My Ubuntu version is 16.04.5.

[email protected]:~$ sudo apt-get install libcurl-dev
[sudo] password for yy: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package libcurl-dev is a virtual package provided by:
  libcurl4-openssl-dev 7.47.0-1ubuntu2.18
  libcurl4-nss-dev 7.47.0-1ubuntu2.18
  libcurl4-gnutls-dev 7.47.0-1ubuntu2.18
You should explicitly select one to install.

E: Package 'libcurl-dev' has no installation candidate

OK, you need to select one of the alternatives that is listed. Probably libcurl4-openssl-dev is OK.

Thank you very much. The problem has been solved. :smiley: