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

building 'postal._expand' extension error #55

Open
yunier-rojas opened this issue Nov 25, 2019 · 2 comments
Open

building 'postal._expand' extension error #55

yunier-rojas opened this issue Nov 25, 2019 · 2 comments

Comments

@yunier-rojas
Copy link

Hi.
I'm trying to install pypostal on a alpine OS. libpostal was successfully compiled but I get this error doing:
pip install "postal==1.1.8"

The output of the command:

    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.6
    creating build/lib.linux-x86_64-3.6/postal
    copying postal/expand.py -> build/lib.linux-x86_64-3.6/postal
    copying postal/token_types.py -> build/lib.linux-x86_64-3.6/postal
    copying postal/dedupe.py -> build/lib.linux-x86_64-3.6/postal
    copying postal/normalize.py -> build/lib.linux-x86_64-3.6/postal
    copying postal/tokenize.py -> build/lib.linux-x86_64-3.6/postal
    copying postal/near_dupe.py -> build/lib.linux-x86_64-3.6/postal
    copying postal/__init__.py -> build/lib.linux-x86_64-3.6/postal
    copying postal/parser.py -> build/lib.linux-x86_64-3.6/postal
    creating build/lib.linux-x86_64-3.6/postal/tests
    copying postal/tests/test_parser.py -> build/lib.linux-x86_64-3.6/postal/tests
    copying postal/tests/test_expand.py -> build/lib.linux-x86_64-3.6/postal/tests
    copying postal/tests/_test_near_dupes.py -> build/lib.linux-x86_64-3.6/postal/tests
    copying postal/tests/__init__.py -> build/lib.linux-x86_64-3.6/postal/tests
    creating build/lib.linux-x86_64-3.6/postal/utils
    copying postal/utils/encoding.py -> build/lib.linux-x86_64-3.6/postal/utils
    copying postal/utils/enum.py -> build/lib.linux-x86_64-3.6/postal/utils
    copying postal/utils/omitted.py -> build/lib.linux-x86_64-3.6/postal/utils
    copying postal/utils/__init__.py -> build/lib.linux-x86_64-3.6/postal/utils
    copying postal/pyutils.h -> build/lib.linux-x86_64-3.6/postal
    running build_ext
    building 'postal._expand' extension
    creating build/temp.linux-x86_64-3.6
    creating build/temp.linux-x86_64-3.6/postal
    gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -I/usr/local/include -I/usr/local/include/python3.6m -c postal/pyexpand.c -o build/temp.linux-x86_64-3.6/postal/pyexpand.o -std=c99
    unable to execute 'gcc': No such file or directory
    error: command 'gcc' failed with exit status 1

Any ideas?

@do-you-dare
Copy link

It seems you don't have gcc available. Maybe you are removing the compiler before running the pip install? Or maybe a path problem?

@ThePrefixCyber
Copy link

ThePrefixCyber commented Jan 20, 2020

I'm having the same issue. My gcc seems to work normally for other installs. Working on Ubuntu 18

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