I don't have a static IP address that could be whitelisted for access to the D-Wave systems so I instead used my University's lab computers. The downside is that I cannot do a global install because
I lack root privileges. I'm trying to do a local install following the installation guide on the xacc github.
$ cd xacc && mkdir build && cd build
$ cmake ..
This part worked correctly, but when I try to do the final build it gives me an error saying I lack root privileges to write to /usr/local/share. I tried to use DCMAKE_INSTALL_PREFIX to
change the install directory but it still gives the same error. Here's the command I'm running and the output. Let me know what I should do to complete a local install of XACC.
$ make install # can pass -j1 DCMAKE_INSTALL_PREFIX=$HOME/xacc/install
[ 3%] Performing update step for 'cppmicroservices'
[ 7%] Performing configure step for 'cppmicroservices'
-- Setting build type to 'Debug' as none was specified.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/jhuber6/xacc/build/cppmicroservices-prefix/src/cppmicroservices-build
[ 11%] Performing build step for 'cppmicroservices'
[ 2%] Built target usResourceCompiler
[ 58%] Built target CppMicroServices
[ 72%] Built target usHttpService
[ 87%] Built target usWebConsole
[ 97%] Built target usShellService
[100%] Built target usShell
[ 15%] Performing install step for 'cppmicroservices'
[ 2%] Built target usResourceCompiler
[ 58%] Built target CppMicroServices
[ 72%] Built target usHttpService
[ 87%] Built target usWebConsole
[ 97%] Built target usShellService
[100%] Built target usShell
Install the project...
-- Install configuration: "Debug"
CMake Error at cmake_install.cmake:53 (file):
file cannot create directory: /usr/local/share/cppmicroservices3/cmake.
Maybe need administrative privileges.
gmake[3]: *** [install] Error 1
make[2]: *** [cppmicroservices-prefix/src/cppmicroservices-stamp/cppmicroservices-install] Error 2
make[1]: *** [CMakeFiles/cppmicroservices.dir/all] Error 2
make: *** [all] Error
Thanks,
Joseph Huber