Porechop
Porechop copied to clipboard
cpp_function error (again)
Thanks for Porechop! I have been reading in different issues how to fix the message: -error: [Errno 2] No such file or directory: 'porechop/cpp_functions.so'
Most of the time the answer and looks like the solution is to update gcc, however I just update my one: (qiime2-2020.2) qiime2@qiime2core2020-2:~$ gcc --version gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
As you can see above I am using the qiime2 core version using a virtual box, I am not sure that this have any implication but I'd really appreciate any help. Thanks!!
I have tried with gcc 8.5.0, it worked
cpp newbie here. Writing down my solution for other newbies so that they don't google for hours ^^
#the server's gcc was ancient like 4.3
# but I cannot sudo to upgrade
# conda create an env
conda create -n porechop
conda activate porechop
# install via conda
conda install gcc
conda install gxx
# need to export the CC and CXX variables
# to find the path
which gcc
which g++
# paste the path of `which gcc` to CC=
export CC=/PATH/TO/THE/CONDA/GCC
export CXX=/PATH/TO/THE/CONDA/GXX
# cd to porechop path
cd /PATH/TO/PORECHOP
pip install .
# or local executable
make