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

cpp_function error (again) #88

Open
miguensblanco opened this issue Apr 7, 2020 · 2 comments
Open

cpp_function error (again) #88

miguensblanco opened this issue Apr 7, 2020 · 2 comments

Comments

@miguensblanco
Copy link

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!!

@lijie04
Copy link

lijie04 commented Aug 19, 2021

I have tried with gcc 8.5.0, it worked

@algaebrown
Copy link

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

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