Open ShuaiHanSelf-discipline opened 4 years ago
From your log, I am not sure if this is the root cause:
No package boost-python3-devel available.
Try
dnf config-manager --set-enabled PowerTools
dnf -y install boost-python3-devel
If the package cannot be found, you may need to enable EPEL
following this wiki. Reinstall boost-mpich-python3 boost-python3 boost-openmpi-python3
if needed.
Also, you may want to install a complete CMake development toolset (with gcc 7+), which is prerequired. Try
yum update
yum groupinstall "Development Tools"
Now, rerun the bash script and let us know your output. Thank you for your interests.
Hi Doc.Qi .This is output and error.Please check it. `[hans@localhost ~]$ sh centos8_install.bash Error: No matching repo to modify: PowerTools. Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile
updates: centos.mirror.hostinginside.com Package glog-devel-0.3.3-8.el7.x86_64 already installed and latest version Package gflags-devel-2.1.1-6.el7.x86_64 already installed and latest version Package hwloc-devel-1.11.8-4.el7.x86_64 already installed and latest version Nothing to do Requirement already satisfied: projectq in ./.local/lib/python3.6/site-packages Requirement already satisfied: mpi4py in ./.local/lib/python3.6/site-packages Requirement already satisfied: numpy in ./.local/lib/python3.6/site-packages (from projectq) Requirement already satisfied: future in ./.local/lib/python3.6/site-packages (from projectq) Requirement already satisfied: pytest>=3.1 in ./.local/lib/python3.6/site-packages (from projectq) Requirement already satisfied: pybind11>=2.2.3 in ./.local/lib/python3.6/site-packages (from projectq) Requirement already satisfied: requests in ./.local/lib/python3.6/site-packages (from projectq) Requirement already satisfied: scipy in ./.local/lib/python3.6/site-packages (from projectq) Requirement already satisfied: networkx in ./.local/lib/python3.6/site-packages (from projectq) Requirement already satisfied: more-itertools>=4.0.0 in ./.local/lib/python3.6/site-packages (from pytest>=3.1->projectq) Requirement already satisfied: importlib-metadata>=0.12; python_version < "3.8" in ./.local/lib/python3.6/site-packages (from pytest>=3.1->projectq) Requirement already satisfied: pluggy<1.0,>=0.12 in ./.local/lib/python3.6/site-packages (from pytest>=3.1->projectq) Requirement already satisfied: packaging in ./.local/lib/python3.6/site-packages (from pytest>=3.1->projectq) Requirement already satisfied: py>=1.5.0 in ./.local/lib/python3.6/site-packages (from pytest>=3.1->projectq) Requirement already satisfied: attrs>=17.4.0 in ./.local/lib/python3.6/site-packages (from pytest>=3.1->projectq) Requirement already satisfied: wcwidth in ./.local/lib/python3.6/site-packages (from pytest>=3.1->projectq) Requirement already satisfied: chardet<4,>=3.0.2 in ./.local/lib/python3.6/site-packages (from requests->projectq) Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in ./.local/lib/python3.6/site-packages (from requests->projectq) Requirement already satisfied: idna<3,>=2.5 in ./.local/lib/python3.6/site-packages (from requests->projectq) Requirement already satisfied: certifi>=2017.4.17 in ./.local/lib/python3.6/site-packages (from requests->projectq) Requirement already satisfied: decorator>=4.3.0 in ./.local/lib/python3.6/site-packages (from networkx->projectq) Requirement already satisfied: zipp>=0.5 in ./.local/lib/python3.6/site-packages (from importlib-metadata>=0.12; python_version < "3.8"->pytest>=3.1->projectq) Requirement already satisfied: pyparsing>=2.0.2 in ./.local/lib/python3.6/site-packages (from packaging->pytest>=3.1->projectq) Requirement already satisfied: six in ./.local/lib/python3.6/site-packages (from packaging->pytest>=3.1->projectq) fatal: destination path 'HiQSimulator' already exists and is not an empty directory. Processing /home/hans/HiQSimulator Requirement already satisfied: mpi4py in /home/hans/.local/lib/python3.6/site-packages (from HiQsimulator==0.0.1) Requirement already satisfied: projectq>=0.4.0 in /home/hans/.local/lib/python3.6/site-packages (from HiQsimulator==0.0.1) Requirement already satisfied: numpy in /home/hans/.local/lib/python3.6/site-packages (from projectq>=0.4.0->HiQsimulator==0.0.1) Requirement already satisfied: future in /home/hans/.local/lib/python3.6/site-packages (from projectq>=0.4.0->HiQsimulator==0.0.1) Requirement already satisfied: pytest>=3.1 in /home/hans/.local/lib/python3.6/site-packages (from projectq>=0.4.0->HiQsimulator==0.0.1) Requirement already satisfied: pybind11>=2.2.3 in /home/hans/.local/lib/python3.6/site-packages (from projectq>=0.4.0->HiQsimulator==0.0.1) Requirement already satisfied: requests in /home/hans/.local/lib/python3.6/site-packages (from projectq>=0.4.0->HiQsimulator==0.0.1) Requirement already satisfied: scipy in /home/hans/.local/lib/python3.6/site-packages (from projectq>=0.4.0->HiQsimulator==0.0.1) Requirement already satisfied: networkx in /home/hans/.local/lib/python3.6/site-packages (from projectq>=0.4.0->HiQsimulator==0.0.1) Requirement already satisfied: wcwidth in /home/hans/.local/lib/python3.6/site-packages (from pytest>=3.1->projectq>=0.4.0->HiQsimulator==0.0.1) Requirement already satisfied: importlib-metadata>=0.12; python_version < "3.8" in /home/hans/.local/lib/python3.6/site-packages (from pytest>=3.1->projectq>=0.4.0->HiQsimulator==0.0.1) Requirement already satisfied: more-itertools>=4.0.0 in /home/hans/.local/lib/python3.6/site-packages (from pytest>=3.1->projectq>=0.4.0->HiQsimulator==0.0.1) Requirement already satisfied: attrs>=17.4.0 in /home/hans/.local/lib/python3.6/site-packages (from pytest>=3.1->projectq>=0.4.0->HiQsimulator==0.0.1) Requirement already satisfied: pluggy<1.0,>=0.12 in /home/hans/.local/lib/python3.6/site-packages (from pytest>=3.1->projectq>=0.4.0->HiQsimulator==0.0.1) Requirement already satisfied: packaging in /home/hans/.local/lib/python3.6/site-packages (from pytest>=3.1->projectq>=0.4.0->HiQsimulator==0.0.1) Requirement already satisfied: py>=1.5.0 in /home/hans/.local/lib/python3.6/site-packages (from pytest>=3.1->projectq>=0.4.0->HiQsimulator==0.0.1) Requirement already satisfied: chardet<4,>=3.0.2 in /home/hans/.local/lib/python3.6/site-packages (from requests->projectq>=0.4.0->HiQsimulator==0.0.1) Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /home/hans/.local/lib/python3.6/site-packages (from requests->projectq>=0.4.0->HiQsimulator==0.0.1) Requirement already satisfied: idna<3,>=2.5 in /home/hans/.local/lib/python3.6/site-packages (from requests->projectq>=0.4.0->HiQsimulator==0.0.1) Requirement already satisfied: certifi>=2017.4.17 in /home/hans/.local/lib/python3.6/site-packages (from requests->projectq>=0.4.0->HiQsimulator==0.0.1) Requirement already satisfied: decorator>=4.3.0 in /home/hans/.local/lib/python3.6/site-packages (from networkx->projectq>=0.4.0->HiQsimulator==0.0.1) Requirement already satisfied: zipp>=0.5 in /home/hans/.local/lib/python3.6/site-packages (from importlib-metadata>=0.12; pythonversion < "3.8"->pytest>=3.1->projectq>=0.4.0->HiQsimulator==0.0.1) Requirement already satisfied: six in /home/hans/.local/lib/python3.6/site-packages (from packaging->pytest>=3.1->projectq>=0.4.0->HiQsimulator==0.0.1) Requirement already satisfied: pyparsing>=2.0.2 in /home/hans/.local/lib/python3.6/site-packages (from packaging->pytest>=3.1->projectq>=0.4.0->HiQsimulator==0.0.1) Installing collected packages: HiQsimulator Running setup.py install for HiQsimulator ... error Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-5qxpxj9-build/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-qardxr-record/install-record.txt --single-version-externally-managed --compile --user --prefix=: running install running build running build_py creating build/lib.linux-x86_64-3.6 creating build/lib.linux-x86_64-3.6/hiq creating build/lib.linux-x86_64-3.6/hiq/projectq creating build/lib.linux-x86_64-3.6/hiq/projectq/backends copying hiq/projectq/backends/init.py -> build/lib.linux-x86_64-3.6/hiq/projectq/backends creating build/lib.linux-x86_64-3.6/hiq/projectq/backends/_sim copying hiq/projectq/backends/_sim/init.py -> build/lib.linux-x86_64-3.6/hiq/projectq/backends/_sim copying hiq/projectq/backends/_sim/_simulator_mpi.py -> build/lib.linux-x86_64-3.6/hiq/projectq/backends/_sim copying hiq/projectq/backends/_sim/_simulator_mpi_test.py -> build/lib.linux-x86_64-3.6/hiq/projectq/backends/_sim copying hiq/projectq/backends/_sim/_stabilizer_simulator.py -> build/lib.linux-x86_64-3.6/hiq/projectq/backends/_sim copying hiq/projectq/backends/_sim/_stabilizer_simulator_test.py -> build/lib.linux-x86_64-3.6/hiq/projectq/backends/_sim creating build/lib.linux-x86_64-3.6/hiq/projectq/ops copying hiq/projectq/ops/init.py -> build/lib.linux-x86_64-3.6/hiq/projectq/ops copying hiq/projectq/ops/_gates.py -> build/lib.linux-x86_64-3.6/hiq/projectq/ops creating build/lib.linux-x86_64-3.6/hiq/projectq/cengines copying hiq/projectq/cengines/init.py -> build/lib.linux-x86_64-3.6/hiq/projectq/cengines copying hiq/projectq/cengines/_dummybackend.py -> build/lib.linux-x86_64-3.6/hiq/projectq/cengines copying hiq/projectq/cengines/_greedyscheduler.py -> build/lib.linux-x86_64-3.6/hiq/projectq/cengines copying hiq/projectq/cengines/_hiq_main_engine.py -> build/lib.linux-x86_64-3.6/hiq/projectq/cengines running buildext -- The CXX compiler identification is GNU 4.8.5 -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found xsimd: /tmp/pip-5qxpxj9-build/xsimd/include -- Found xsimd and defined the xsimd::xsimd imported target: -- - include: /tmp/pip-5qxpxj9_-build/xsimd/include -- Found OpenMP_CXX: -fopenmp (found version "3.1") -- Found OpenMP: TRUE (found version "3.1") -- Found MPI_CXX: /usr/lib64/openmpi/lib/libmpi_cxx.so (found version "3.0") -- Found MPI: TRUE (found version "3.0") -- Looking for C++ include pthread.h -- Looking for C++ include pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not found -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE CMake Error at /usr/share/cmake3/Modules/FindBoost.cmake:2165 (message): Unable to find the requested Boost libraries.
Boost version: 1.53.0
Boost include path: /usr/include
Detected version of Boost is too old. Requested version was 1.55 (or newer). Call Stack (most recent call first): cmake/packages.cmake:39 (find_package) CMakeLists.txt:67 (include)
CMake Error at cmake/packages.cmake:45 (get_target_property): get_target_property() called with non-existent target "Boost::boost". Call Stack (most recent call first): CMakeLists.txt:67 (include)
CMake Error at cmake/packages.cmake:53 (get_target_property): get_target_property() called with non-existent target "Boost::program_options". Call Stack (most recent call first): CMakeLists.txt:67 (include)
CMake Error at cmake/packages.cmake:55 (set_property): set_property could not find TARGET Boost::boost. Perhaps it has not yet been created. Call Stack (most recent call first): CMakeLists.txt:67 (include)
CMake Warning at cmake/packages.cmake:63 (message): Unable to compile unit tests! Boost version is too old (1.53 vs. 1.59). Testing disabled. Call Stack (most recent call first): CMakeLists.txt:67 (include)
-- Found gflags using the CONFIG method -- gflags with CONFIG method not valid -- Found gflags: /usr/include/gflags -- Found gflags and defined the gflags::gflags imported target: -- - include: /usr/include/gflags -- - library: /usr/lib64/libgflags.so -- Could NOT find glog (missing: glog_DIR) -- Found glog: /usr/include -- Found glog and defined the glog::glog imported target: -- - include: /usr/include -- - library: /usr/lib64/libglog.so -- Found hwloc: /usr/include -- Found hwloc and defined the hwloc::hwloc imported target: -- - include: /usr/include -- - library: /usr/lib64/libhwloc.so -- Performing Test cxx_compiler_has_ffast_math -- Performing Test cxx_compiler_has_ffast_math - Success -- Performing Test cxx_compiler_has_O3 -- Performing Test cxx_compiler_has_O3 - Success -- Performing Test cxx_compiler_has_march=native -- Performing Test cxx_compiler_has_march=native - Success -- Performing Test cxx_compiler_has_mavx2 -- Performing Test cxx_compiler_has_mavx2 - Success -- Found PythonInterp: /usr/bin/python3 (found version "3.6.8") -- Found PythonLibs: /usr/lib64/libpython3.6m.so -- pybind11 v2.3.dev0 -- Performing Test HAS_FLTO -- Performing Test HAS_FLTO - Success -- LTO enabled -- Found Doxygen: /usr/bin/doxygen (found version "1.8.5") found components: doxygen missing components: dot CMake Error at /usr/share/cmake3/Modules/FindPackageHandleStandardArgs.cmake:137 (message): Failed to find sphinx-build executable (missing: Sphinx_EXECUTABLE) Call Stack (most recent call first): /usr/share/cmake3/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE) cmake/FindSphinx.cmake:66 (find_package_handle_standard_args) docs/CMakeLists.txt:1 (find_package)
-- Configuring incomplete, errors occurred!
See also "/tmp/pip-5qxpxj9_-build/build/temp.linux-x8664-3.6/CMakeFiles/CMakeOutput.log".
See also "/tmp/pip-5qxpxj9-build/build/temp.linux-x8664-3.6/CMakeFiles/CMakeError.log".
Traceback (most recent call last):
File "
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-5qxpxj9_-build/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-qardxr-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-5qxpxj9_-build/ `
@Takishima Can you also take a look? It looks like a download problem for Boost libraries.
From https://serverfault.com/questions/997896/how-to-enable-powertools-repository-in-centos-8, try to do this:
sudo yum install dnf-plugins-core
sudo yum config-manager --set-enabled PowerTools
Did you try the fix I mentioned above? If I get no reply from you by the end of this week, I will close this issue.
Nguyen Damien notifications@github.com于2020年6月18日 周四下午4:29写道:
Did you try the fix I mentioned above? If I get no reply from you by the end of this week, I will close this issue.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Huawei-HiQ/HiQsimulator/issues/32#issuecomment-645866015, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOPEPTISSCU5ZILLDD32VPLRXHF5NANCNFSM4LFDFFMA .
I am trying to fix this problem, please don’t close it. There will be feedback this weekend.
Shuai Han hanshuai2018@gmail.com于2020年6月19日 周五下午12:09写道:
Nguyen Damien notifications@github.com于2020年6月18日 周四下午4:29写道:
Did you try the fix I mentioned above? If I get no reply from you by the end of this week, I will close this issue.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Huawei-HiQ/HiQsimulator/issues/32#issuecomment-645866015, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOPEPTISSCU5ZILLDD32VPLRXHF5NANCNFSM4LFDFFMA .
On CentOS 7, the following should work (tested using the latest CentOS 7 Docker image)
sudo yum install -y epel-release
sudo yum install -y centos-release-scl
sudo yum install -y devtoolset-8
sudo yum check-update -y
scl enable devtoolset-8 bash
sudo yum install -y gcc-c++ make git cmake3
sudo yum install -y python3 python3-devel python3-pip
sudo yum install -y openmpi-devel
sudo yum install -y boost169-devel boost169-openmpi-devel boost169-python3-devel
sudo yum install -y glog-devel gflags-devel hwloc-devel
sudo alternatives --install /usr/local/bin/cmake cmake /usr/bin/cmake3 20 \
--slave /usr/local/bin/ctest ctest /usr/bin/ctest3 \
--slave /usr/local/bin/cpack cpack /usr/bin/cpack3 \
--slave /usr/local/bin/ccmake ccmake /usr/bin/ccmake3 \
--family cmake
. /usr/share/Modules/init/sh
module load mpi
export BOOST_ROOT=/usr/include/boost169
export BOOST_LIBRARYDIR=/usr/lib64/boost169
sudo ln -s /usr/lib64/openmpi/lib/boost169/libboost_mpi.so /usr/lib64/boost169/
python3 -m pip install --user hiq-circuit
I try to install hiq with this bash file :
This is the run log: