Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install library #1

Open
kirtsar opened this issue Nov 10, 2022 · 3 comments
Open

Unable to install library #1

kirtsar opened this issue Nov 10, 2022 · 3 comments

Comments

@kirtsar
Copy link

kirtsar commented Nov 10, 2022

Hello!
For some reasons i was unable to install library properly: it says that "lib_SyndromeDecodingEstimator.so: cannot open shared object file: No such file or directory"

@kirtsar
Copy link
Author

kirtsar commented Nov 10, 2022

Full trace of the make installation:

kirtsar@kirtsar:~/projects/rosehip/syndrome_decoding_estimator$ sudo make
mkdir -p C/build && cmake -DCMAKE_INSTALL_PREFIX=local/ -B C/build -S C
Running CMAKE in directory: C
-- The C compiler identification is GNU 9.4.0
-- The CXX compiler identification is GNU 9.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- 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
-- BUILDING IN  MODE
-- COMPILATION FLAGS: 
-- Adding the following directories to the project: 
-- Adding directory: /home/kirtsar/projects/rosehip/syndrome_decoding_estimator/C/src/sd_estimator
Running CMAKE in directory: sd_estimator
-- Adding the following .c files to the source list: 
    /home/kirtsar/projects/rosehip/syndrome_decoding_estimator/C/src/sd_estimator/sd_ball_collision_optimizer.cpp
    /home/kirtsar/projects/rosehip/syndrome_decoding_estimator/C/src/sd_estimator/sd_bjmm_optimizer.cpp
    /home/kirtsar/projects/rosehip/syndrome_decoding_estimator/C/src/sd_estimator/sd_both_may_depth_2.cpp
    /home/kirtsar/projects/rosehip/syndrome_decoding_estimator/C/src/sd_estimator/sd_dumer_optimizer.cpp
    /home/kirtsar/projects/rosehip/syndrome_decoding_estimator/C/src/sd_estimator/sd_estimator.cpp
    /home/kirtsar/projects/rosehip/syndrome_decoding_estimator/C/src/sd_estimator/sd_helper.cpp
    /home/kirtsar/projects/rosehip/syndrome_decoding_estimator/C/src/sd_estimator/sd_may_ozerov_optimizer.cpp
    /home/kirtsar/projects/rosehip/syndrome_decoding_estimator/C/src/sd_estimator/sd_optimizer.cpp
    /home/kirtsar/projects/rosehip/syndrome_decoding_estimator/C/src/sd_estimator/sd_stern_optimizer.cpp
-- Adding the following .h files to the header list: 
    /home/kirtsar/projects/rosehip/syndrome_decoding_estimator/C/src/sd_estimator/sd_ball_collision_optimizer.h
    /home/kirtsar/projects/rosehip/syndrome_decoding_estimator/C/src/sd_estimator/sd_bjmm_optimizer.h
    /home/kirtsar/projects/rosehip/syndrome_decoding_estimator/C/src/sd_estimator/sd_both_may_depth_2.h
    /home/kirtsar/projects/rosehip/syndrome_decoding_estimator/C/src/sd_estimator/sd_dumer_optimizer.h
    /home/kirtsar/projects/rosehip/syndrome_decoding_estimator/C/src/sd_estimator/sd_estimator.h
    /home/kirtsar/projects/rosehip/syndrome_decoding_estimator/C/src/sd_estimator/sd_helper.h
    /home/kirtsar/projects/rosehip/syndrome_decoding_estimator/C/src/sd_estimator/sd_may_ozerov_optimizer.h
    /home/kirtsar/projects/rosehip/syndrome_decoding_estimator/C/src/sd_estimator/sd_optimizer.h
    /home/kirtsar/projects/rosehip/syndrome_decoding_estimator/C/src/sd_estimator/sd_stern_optimizer.h
Running CMAKE in directory: sd_estimator
-- Adding the following .c files to the source list: 
    /home/kirtsar/projects/rosehip/syndrome_decoding_estimator/C/tests/sd_estimator/test_sd_estimator.cpp
-- Adding the following .h files to the header list: 
    /home/kirtsar/projects/rosehip/syndrome_decoding_estimator/C/tests/sd_estimator/test_sd_estimator.h
Running CMAKE in directory: main
-- Adding the following .cpp files to the source list: 
    /home/kirtsar/projects/rosehip/syndrome_decoding_estimator/C/main/main.cpp
-- Adding the following .h files to the header list: 
    /home/kirtsar/projects/rosehip/syndrome_decoding_estimator/C/main/constants.h
-- Including the following directories: 
    /home/kirtsar/projects/rosehip/syndrome_decoding_estimator/C/tests/sd_estimator
-- Linking the following targets to the project1: 
    test_sd_estimator
Back to main cmake:
-- Adding the following targets to the project: 
    sd_estimator
Targets list:src/sd_estimator/sd_estimator.cppsrc/sd_estimator/sd_helper.cppsrc/sd_estimator/sd_both_may_depth_2.cppsrc/sd_estimator/sd_optimizer.cppsrc/sd_estimator/sd_ball_collision_optimizer.cppsrc/sd_estimator/sd_bjmm_optimizer.cppsrc/sd_estimator/sd_dumer_optimizer.cppsrc/sd_estimator/sd_may_ozerov_optimizer.cppsrc/sd_estimator/sd_stern_optimizer.cppmain/main.cpp$<TARGET_OBJECTS:sd_estimator>
-- Configuring done
-- Generating done
-- Build files have been written to: /home/kirtsar/projects/rosehip/syndrome_decoding_estimator/C/build
cd C/build && make && make install
make[1]: Entering directory '/home/kirtsar/projects/rosehip/syndrome_decoding_estimator/C/build'
make[2]: Entering directory '/home/kirtsar/projects/rosehip/syndrome_decoding_estimator/C/build'
make[3]: Entering directory '/home/kirtsar/projects/rosehip/syndrome_decoding_estimator/C/build'
Scanning dependencies of target _SyndromeDecodingEstimator
make[3]: Leaving directory '/home/kirtsar/projects/rosehip/syndrome_decoding_estimator/C/build'
make[3]: Entering directory '/home/kirtsar/projects/rosehip/syndrome_decoding_estimator/C/build'
[  4%] Building CXX object CMakeFiles/_SyndromeDecodingEstimator.dir/src/sd_estimator/sd_estimator.cpp.o
[  9%] Building CXX object CMakeFiles/_SyndromeDecodingEstimator.dir/src/sd_estimator/sd_helper.cpp.o
[ 14%] Building CXX object CMakeFiles/_SyndromeDecodingEstimator.dir/src/sd_estimator/sd_both_may_depth_2.cpp.o
[ 19%] Building CXX object CMakeFiles/_SyndromeDecodingEstimator.dir/src/sd_estimator/sd_optimizer.cpp.o
[ 23%] Building CXX object CMakeFiles/_SyndromeDecodingEstimator.dir/src/sd_estimator/sd_ball_collision_optimizer.cpp.o
[ 28%] Building CXX object CMakeFiles/_SyndromeDecodingEstimator.dir/src/sd_estimator/sd_bjmm_optimizer.cpp.o
[ 33%] Building CXX object CMakeFiles/_SyndromeDecodingEstimator.dir/src/sd_estimator/sd_dumer_optimizer.cpp.o
[ 38%] Building CXX object CMakeFiles/_SyndromeDecodingEstimator.dir/src/sd_estimator/sd_may_ozerov_optimizer.cpp.o
[ 42%] Building CXX object CMakeFiles/_SyndromeDecodingEstimator.dir/src/sd_estimator/sd_stern_optimizer.cpp.o
[ 47%] Linking CXX shared library lib_SyndromeDecodingEstimator.so
make[3]: Leaving directory '/home/kirtsar/projects/rosehip/syndrome_decoding_estimator/C/build'
[ 47%] Built target _SyndromeDecodingEstimator
make[3]: Entering directory '/home/kirtsar/projects/rosehip/syndrome_decoding_estimator/C/build'
Scanning dependencies of target sd_estimator
make[3]: Leaving directory '/home/kirtsar/projects/rosehip/syndrome_decoding_estimator/C/build'
make[3]: Entering directory '/home/kirtsar/projects/rosehip/syndrome_decoding_estimator/C/build'
[ 52%] Building CXX object src/sd_estimator/CMakeFiles/sd_estimator.dir/sd_ball_collision_optimizer.cpp.o
[ 57%] Building CXX object src/sd_estimator/CMakeFiles/sd_estimator.dir/sd_bjmm_optimizer.cpp.o
[ 61%] Building CXX object src/sd_estimator/CMakeFiles/sd_estimator.dir/sd_both_may_depth_2.cpp.o
[ 66%] Building CXX object src/sd_estimator/CMakeFiles/sd_estimator.dir/sd_dumer_optimizer.cpp.o
[ 71%] Building CXX object src/sd_estimator/CMakeFiles/sd_estimator.dir/sd_estimator.cpp.o
[ 76%] Building CXX object src/sd_estimator/CMakeFiles/sd_estimator.dir/sd_helper.cpp.o
[ 80%] Building CXX object src/sd_estimator/CMakeFiles/sd_estimator.dir/sd_may_ozerov_optimizer.cpp.o
[ 85%] Building CXX object src/sd_estimator/CMakeFiles/sd_estimator.dir/sd_optimizer.cpp.o
[ 90%] Building CXX object src/sd_estimator/CMakeFiles/sd_estimator.dir/sd_stern_optimizer.cpp.o
make[3]: Leaving directory '/home/kirtsar/projects/rosehip/syndrome_decoding_estimator/C/build'
[ 90%] Built target sd_estimator
make[3]: Entering directory '/home/kirtsar/projects/rosehip/syndrome_decoding_estimator/C/build'
Scanning dependencies of target test_sd_estimator
make[3]: Leaving directory '/home/kirtsar/projects/rosehip/syndrome_decoding_estimator/C/build'
make[3]: Entering directory '/home/kirtsar/projects/rosehip/syndrome_decoding_estimator/C/build'
[ 95%] Building CXX object tests/sd_estimator/CMakeFiles/test_sd_estimator.dir/test_sd_estimator.cpp.o
[100%] Linking CXX static library libtest_sd_estimator.a
make[3]: Leaving directory '/home/kirtsar/projects/rosehip/syndrome_decoding_estimator/C/build'
[100%] Built target test_sd_estimator
make[2]: Leaving directory '/home/kirtsar/projects/rosehip/syndrome_decoding_estimator/C/build'
make[1]: Leaving directory '/home/kirtsar/projects/rosehip/syndrome_decoding_estimator/C/build'
make[1]: Entering directory '/home/kirtsar/projects/rosehip/syndrome_decoding_estimator/C/build'
make[2]: Entering directory '/home/kirtsar/projects/rosehip/syndrome_decoding_estimator/C/build'
make[3]: Entering directory '/home/kirtsar/projects/rosehip/syndrome_decoding_estimator/C/build'
make[3]: Leaving directory '/home/kirtsar/projects/rosehip/syndrome_decoding_estimator/C/build'
[ 47%] Built target _SyndromeDecodingEstimator
make[3]: Entering directory '/home/kirtsar/projects/rosehip/syndrome_decoding_estimator/C/build'
make[3]: Leaving directory '/home/kirtsar/projects/rosehip/syndrome_decoding_estimator/C/build'
[ 90%] Built target sd_estimator
make[3]: Entering directory '/home/kirtsar/projects/rosehip/syndrome_decoding_estimator/C/build'
make[3]: Leaving directory '/home/kirtsar/projects/rosehip/syndrome_decoding_estimator/C/build'
[100%] Built target test_sd_estimator
make[2]: Leaving directory '/home/kirtsar/projects/rosehip/syndrome_decoding_estimator/C/build'
Install the project...
-- Install configuration: ""
-- Installing: /usr/local/lib/lib_SyndromeDecodingEstimator.so
make[1]: Leaving directory '/home/kirtsar/projects/rosehip/syndrome_decoding_estimator/C/build'
python3 -m pip install --upgrade setuptools
Requirement already up-to-date: setuptools in /usr/local/lib/python3.8/dist-packages (65.5.1)
python3 -m pip install .
Processing /home/kirtsar/projects/rosehip/syndrome_decoding_estimator
Requirement already satisfied: progress in /usr/local/lib/python3.8/dist-packages (from sd-estimator==1.0.0) (1.6)
Requirement already satisfied: prettytable in /usr/local/lib/python3.8/dist-packages (from sd-estimator==1.0.0) (3.5.0)
Requirement already satisfied: scipy in /usr/local/lib/python3.8/dist-packages (from sd-estimator==1.0.0) (1.9.3)
Requirement already satisfied: wcwidth in /usr/local/lib/python3.8/dist-packages (from prettytable->sd-estimator==1.0.0) (0.2.5)
Requirement already satisfied: numpy<1.26.0,>=1.18.5 in /usr/local/lib/python3.8/dist-packages (from scipy->sd-estimator==1.0.0) (1.23.4)
Building wheels for collected packages: sd-estimator
  Building wheel for sd-estimator (setup.py) ... done
  Created wheel for sd-estimator: filename=sd_estimator-1.0.0-py3-none-any.whl size=18278 sha256=a98bec269bd2b2ba2cbdf2136a8656aec250b1bbde6b370c293f2c0572525382
  Stored in directory: /tmp/pip-ephem-wheel-cache-fmmc7sqr/wheels/b4/b7/d3/ea49342cd3a16358a4b6a44c08a39b986069c6adcbfbec44bf
Successfully built sd-estimator
Installing collected packages: sd-estimator
  Attempting uninstall: sd-estimator
    Found existing installation: sd-estimator 1.0.0
    Uninstalling sd-estimator-1.0.0:
      Successfully uninstalled sd-estimator-1.0.0
Successfully installed sd-estimator-1.0.0

@Memphisd
Copy link
Collaborator

Hi kirstar,
sorry for the delayed reply. The issue is that the estimator is not finding the C-library. According to the trace it was installed to /usr/local/lib/lib_SyndromeDecodingEstimator.so. We are currently working on a version which does not require any C-code anymore. But until this is released, as a workaround you could try to add the path of the library to your PATH environment variable.

@ambiso
Copy link

ambiso commented May 19, 2023

@kirtsar Please try:

LD_LIBRARY_PATH="/usr/local/lib" python estimate_code_based_nist_schemes.py

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants