You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 19, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 19, 2024. It is now read-only.
RuntimeError: Unsupported compiler -- at least C++11 support is needed #1196
Just ran into the same issue. I was not able to install fasttext on a docker container.
I installed all build-essentials intsead of only gcc-c++:
apt-get install build-essential -y
My gcc version: gcc (Debian 8.3.0-6) 8.3.0
This seems to have resolved the issue. :)
Edit: I'm sure there are more elaborate ways to do this or be more selective in installing these build-essentials.
Reacted by Yu-Sheng Li, shuochen.wang, Harsh Sharma, Felipe Augusto, PascalHauriUnique, FAQrobot, Sipan Muradyan, AlphaGoMK, Joanna Baran, sumitsidana and 39 more
Reacted by yashagarwal and Jack Morris
Reacted by Ivo Pisarovic, Harsh Sharma, PascalHauriUnique, Oras Al-Kubaisi, Marat Saidov, Tanmay Jaiswal, Skirlax, Patrick Arnecke, Nandakishor, Hasan Yousef and 5 more
Even after apt-get install build-essential -y I am getting the below error
/tmp/pip-build-env-tv07wujr/overlay/lib/python3.10/site-packages/pybind11/include/pybind11/detail/../detail/common.h:266:10: fatal error: Python.h: No such file or directory
Even after apt-get install build-essential -y I am getting the below error
/tmp/pip-build-env-tv07wujr/overlay/lib/python3.10/site-packages/pybind11/include/pybind11/detail/../detail/common.h:266:10: fatal error: Python.h: No such file or directory
solved after running apt-get install python3-dev
I was facing the same issue that 'apt-get install build-essential -y' that it did not worked for me. But then I found a solution.
---Original---
From: ***@***.***>
Date: Wed, Sep 6, 2023 00:47 AM
To: ***@***.***>;
Cc: ***@***.******@***.***>;
Subject: Re: [facebookresearch/fastText] RuntimeError: Unsupported compiler --at least C++11 support is needed (#1196)
Even after apt-get install build-essential -y I am getting the below error
/tmp/pip-build-env-tv07wujr/overlay/lib/python3.10/site-packages/pybind11/include/pybind11/detail/../detail/common.h:266:10: fatal error: Python.h: No such file or directory
solved after running apt-get install python3-dev
I was facing the same issue that 'apt-get install build-essential -y' that it did not worked for me. But then I found a solution.
What you need to do is first run
apt-get update
and then
apt-get install build-essential -y
This was able to resolve the issue for me.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
Activity
Daoming009 commentedon Apr 29, 2021
when I install fasttext on linux , I run into above problem.
I solved with follow solutions:
(1)yum install gcc-c++
(2)update gcc
then my gcc version is follow image:
then I continue install fasttext ,it still doesn't work
shorouq-z commentedon Apr 29, 2021
Just ran into the same issue. I was not able to install fasttext on a docker container.
I installed all build-essentials intsead of only
gcc-c++:apt-get install build-essential -yMy gcc version: gcc (Debian 8.3.0-6) 8.3.0
This seems to have resolved the issue. :)
Edit: I'm sure there are more elaborate ways to do this or be more selective in installing these build-essentials.
messense commentedon Jul 16, 2021
Try: https://github.com/messense/fasttext-wheel
michelemarzollo commentedon Jul 21, 2021
I had the same issue and solved it using python3-dev:
sudo apt-get install python3-devantter commentedon Jul 23, 2021
had the same issue when using the base docker container python:3.8-slim-buster , I changed it to python:3 in my Dockerfile and it worked
hafiz031 commentedon Feb 28, 2022
For the
CentOSusers, the following is the equivalent command:sudo yum groupinstall 'Development Tools'Reference: Can't Install build-essential on CentOS
SWARUP-Selvaraj commentedon Jul 25, 2023
Even after
apt-get install build-essential -yI am getting the below error/tmp/pip-build-env-tv07wujr/overlay/lib/python3.10/site-packages/pybind11/include/pybind11/detail/../detail/common.h:266:10: fatal error: Python.h: No such file or directory
solved after running
apt-get install python3-devsarvpriy commentedon Jul 26, 2023
I installed a C++ compiler using
sudo apt install build-essentialinubuntu 22.04and it workedyash276 commentedon Sep 5, 2023
I was facing the same issue that 'apt-get install build-essential -y' that it did not worked for me. But then I found a solution.
What you need to do is first run
and then
This was able to resolve the issue for me.
Daoming009 commentedon Sep 8, 2023
FangyangYe commentedon Sep 11, 2023
Thank you this is helpful for me
pablorq commentedon Oct 29, 2023
In my case, the problem was the path: there was spaces in the path that breaks the compiler command.
Remove spaces in the path or replace them for
-or_!