uscxml
uscxml copied to clipboard
Install fails to download Xerces 3.1.4
On a fresh clone, running cmake .. && make
fails:
Scanning dependencies of target xerces-c
[ 5%] Creating directories for 'xerces-c'
[ 5%] Performing download step (download, verify and extract) for 'xerces-c'
-- Downloading...
dst='/home/gkistner/uscxml/build/deps/xerces-c/src/xerces-c-3.1.4.tar.gz'
timeout='none'
-- Using src='http://www.apache.org/dist/xerces/c/3/sources/xerces-c-3.1.4.tar.gz'
-- Retrying...
-- Using src='http://www.apache.org/dist/xerces/c/3/sources/xerces-c-3.1.4.tar.gz'
-- Retry after 5 seconds (attempt #2) ...
-- Using src='http://www.apache.org/dist/xerces/c/3/sources/xerces-c-3.1.4.tar.gz'
-- Retry after 5 seconds (attempt #3) ...
-- Using src='http://www.apache.org/dist/xerces/c/3/sources/xerces-c-3.1.4.tar.gz'
-- Retry after 15 seconds (attempt #4) ...
-- Using src='http://www.apache.org/dist/xerces/c/3/sources/xerces-c-3.1.4.tar.gz'
-- Retry after 60 seconds (attempt #5) ...
-- Using src='http://www.apache.org/dist/xerces/c/3/sources/xerces-c-3.1.4.tar.gz'
CMake Error at xerces-c-stamp/download-xerces-c.cmake:157 (message):
Each download failed!
error: downloading 'http://www.apache.org/dist/xerces/c/3/sources/xerces-c-3.1.4.tar.gz' failed
status_code: 22
status_string: "HTTP response code said error"
log:
--- LOG BEGIN ---
Trying 40.79.78.1...
TCP_NODELAY set
Connected to www.apache.org (40.79.78.1) port 80 (#0)
GET /dist/xerces/c/3/sources/xerces-c-3.1.4.tar.gz HTTP/1.1
Host: www.apache.org
User-Agent: curl/7.56.0
Accept: */*
The requested URL returned error: 404 Not Found
Closing connection 0
--- LOG END ---
FWIW, downloading and installing Xerces 3.2.2 manually also fails. However, downloading 3.1.4 from the archive and installing that allowed the uSCXML install to proceed past this point.
Hey Gavin,
yes, I am aware of the xercesc issue - they removed the archive from their HTTP repository. I just could not find the time yet to update the build scripts as my current job took me elsewhere. I'll gather a few issues and see when/if I find some time to update uSCXML.
Hi @Phrogz , trying to install on Windows and getting the same issue. How did you install Xerces?
I managed to get it working with the following (hacked) modified contrib/cmake/BuildXercesC.cmake
file. The changes are for build on MSVC 17.x with Win10 SDK 10.0.17134.0, which is just what happens to be installed on my machine.
On Raspberry Pi at least the command is:
sudo apt-get install libxerces-c3.2
Do not get your hopes up though. You're going to run into more / new errors after this.