Dr. Relliott,
I did research to understand the reason of the error.
I don’t think, the error is because of the version of wget.
Again, on my server machine, when I try to install MDs or PMs, I failed just like below;
./kim-api-collections-management install user Morse_Shifted_Jelinek_1972_Ar__MO_831902330215_003
*** ERROR *** Unable to successfully contact openkim.org to check Morse_Shifted_Jelinek_1972_Ar__MO_831902330215_003 compatibility.
'wget' returned error code 5.
The same install command works perfectly on my local machine;
kim-api-collections-management install user Morse_Shifted_Jelinek_1972_Ar__MO_831902330215_003
Downloading.............. Morse_Shifted_Jelinek_1972_Ar__MO_831902330215_003
This item needs its driver 'Morse_Shifted__MD_552566534109_003', but it is not currently installed.
Trying to find it at openkim.org.
Downloading.............. Morse_Shifted__MD_552566534109_003
**Consolidate compiler generated dependencies of target Morse_Shifted__MD_552566534109_003**
[100%] Built target Morse_Shifted__MD_552566534109_003
Install the project...
-- Install configuration: "Release"
-- Installing: /Users/mangoman/.kim-api/2.3.0+AppleClang.AppleClang.GNU.2022-03-17-23-01-36/model-drivers-dir/Morse_Shifted__MD_552566534109_003/libkim-api-model-driver.so
**Consolidate compiler generated dependencies of target Morse_Shifted_Jelinek_1972_Ar__MO_831902330215_003**
[100%] Built target Morse_Shifted_Jelinek_1972_Ar__MO_831902330215_003
Install the project...
-- Install configuration: "Release"
-- Installing: /Users/mangoman/.kim-api/2.3.0+AppleClang.AppleClang.GNU.2022-03-17-23-01-36/portable-models-dir/Morse_Shifted_Jelinek_1972_Ar__MO_831902330215_003/libkim-api-portable-model.so
Success!
For the debugging purpose, I modified kim-api-collections-management and got the actual string used for checking item compatibility on my server machine.
Below is the string I got;
wget --user-agent kim-api-collections-management-(2.3.0+GNU.GNU.GNU--Linux-3.10.0-957.27.2.el7.x86_64-x86_64) -q -O - --post-data
query={"kimcode":"Morse_Shifted_Jelinek_1972_Ar__MO_831902330215_003"}&fields={"kim-api-version":1}&database=obj&history=on https://query.openkim.org/api
That will go on the 161st line of kim-api-collections-management. I am using the 2.3.0 version.
version=“${web_tool_query} "${query}" https://query.openkim.org/api
”
Something is wrong with that string because I manually tried to get a query result like below
wget --user-agent kim-api-collections-management-(2.3.0+GNU.GNU.GNU--Linux-3.10.0-957.27.2.el7.x86_64-x86_64) -q -O - --post-data query={"kimcode":"Morse_Shifted_Jelinek_1972_Ar__MO_831902330215_003"}&fields={"kim-api-version":1}&database=obj&history=on https://query.openkim.org/api
-bash: syntax error near unexpected token `('
wget command above fails on my local machine also.
I have been through some difficulties while installing KIM-API on my server machine. I believe that something goes during the installation. Could you give me some comments that can be useful to find out what is the problem?