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

Can not install on ubuntu #22

Closed
tastyminerals opened this issue Apr 11, 2016 · 3 comments
Closed

Can not install on ubuntu #22

tastyminerals opened this issue Apr 11, 2016 · 3 comments

Comments

@tastyminerals
Copy link

Trying to install using setup.py

(trusty)tasty@localhost:~/dev/pyhunspell$ sudo pip2 install .
Unpacking /home/tasty/dev/pyhunspell
  Running setup.py (path:/tmp/pip-BWWDo_-build/setup.py) egg_info for package from file:///home/tasty/dev/pyhunspell
    /usr/lib/python2.7/distutils/extension.py:133: UserWarning: Unknown Extension options: 'compile_args', 'macros'
      warnings.warn(msg)

Installing collected packages: hunspell
  Found existing installation: hunspell 0.1
    Not uninstalling hunspell at /usr/lib/python2.7/dist-packages, owned by OS
  Running setup.py install for hunspell
    /usr/lib/python2.7/distutils/extension.py:133: UserWarning: Unknown Extension options: 'compile_args', 'macros'
      warnings.warn(msg)
    building 'hunspell' extension
    x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/hunspell -I/usr/include/python2.7 -c hunspell.c -o build/temp.linux-x86_64-2.7/hunspell.o
    hunspell.c:21:22: fatal error: hunspell.h: No such file or directory
     #include <hunspell.h>
                          ^
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
    Complete output from command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-BWWDo_-build/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-Mic90q-record/install-record.txt --single-version-externally-managed --compile:
    /usr/lib/python2.7/distutils/extension.py:133: UserWarning: Unknown Extension options: 'compile_args', 'macros'

  warnings.warn(msg)

running install

running build

running build_ext

building 'hunspell' extension

creating build

creating build/temp.linux-x86_64-2.7

x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/hunspell -I/usr/include/python2.7 -c hunspell.c -o build/temp.linux-x86_64-2.7/hunspell.o

hunspell.c:21:22: fatal error: hunspell.h: No such file or directory

 #include <hunspell.h>

                      ^

compilation terminated.

error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

----------------------------------------
  Can't roll back hunspell; was not uninstalled
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-BWWDo_-build/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-Mic90q-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip-BWWDo_-build
Storing debug log for failure in /home/tasty/.pip/pip.log

@blatinier
Copy link
Collaborator

pyhunspell is just a gateway to hunspell.
You must install hunspell-dev on your system to build the binding.

Try apt-get install hunspell-dev and retry install pyhunspell

@tastyminerals
Copy link
Author

Yep, it works after sudo apt-get install libhunspell-dev

@yasharya1066
Copy link

apt-get install hunspell-dev it is showing 'apt-get' is not recognized as an internal or external command, operable program or batch file.

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