Open EPKok opened 5 years ago
This issue is solved. The older version of gcc was directed. I manually export CC and CXX. However, after installation, when I executed porechop, this error showed up
could not find cpp_functions.so - please reinstall
cpp_functions.so is already in porechop directory but it cannot be detected.
Sounds like you still are having compiler issues. I would reinstall both Porechop and gcc and try again.
I also get errors installing
Compiling Porechop: make -j 8
g++ -std=c++14 -Iporechop/include -fPIC -O3 -D NDEBUG -Wall -Wextra -pedantic -mtune=native -c -o porechop/src/adapter_align.o porechop/src/adapter_align.cpp
g++ -std=c++14 -Iporechop/include -fPIC -O3 -D NDEBUG -Wall -Wextra -pedantic -mtune=native -c -o porechop/src/alignment.o porechop/src/alignment.cpp
cc1plus: error: unrecognized command line option "-std=c++14"
cc1plus: error: unrecognized command line option "-std=c++14"
make: *** [porechop/src/alignment.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [porechop/src/adapter_align.o] Error 1
also
error: [Errno 2] No such file or directory: 'porechop/cpp_functions.so'
I'm using:
g++ (GCC) 4.4.7 20120313 (Red Hat 4.4.7-23)
@lab-rat-kid, the README recommends GCC 4.9.1 or later. You might want to try GCC 5.
From the README notes:
If you'd like to specify which compiler to use, set the
CXX
variable:export CXX=g++-6; python3 setup.py install
I managed to get it installed with GCC 7, but ran into the next error: could not find cpp_functions.so - please reinstall
. I finally decided to build and run without installation (i.e., ./porechop-runner.py
) instead of fiddling with installing porechop in my conda environment because of this issue.
conda install https://anaconda.org/brown-data-science/gcc/5.4.0/download/linux-64/gcc-5.4.0-0.tar.bz2
I use this command to install gcc-5 in conda environment and it works.
Here is the original link: https://gist.github.com/goldsborough/d466f43e8ffc948ff92de7486c5216d6?permalink_comment_id=4370936#gistcomment-4370936
Executed python3 setup.py install --user and encountered this issue during installation:
Where can I find "cpp_functions.so"? Thanks in advance.