Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #49493 > unrolled thread

Issues compiling hunspell from source on windows

Started byAkshay Kayastha <akshay.ksth@gmail.com>
First post2013-06-30 08:54 -0700
Last post2013-07-01 12:55 -0700
Articles 5 — 3 participants

Back to article view | Back to comp.lang.python


Contents

  Issues compiling hunspell from source on windows Akshay Kayastha <akshay.ksth@gmail.com> - 2013-06-30 08:54 -0700
    Re: Issues compiling hunspell from source on windows rusi <rustompmody@gmail.com> - 2013-06-30 09:45 -0700
    Re: Issues compiling hunspell from source on windows Akshay Kayastha <akshay.ksth@gmail.com> - 2013-06-30 10:08 -0700
    Re: Issues compiling hunspell from source on windows David Robinow <drobinow@gmail.com> - 2013-06-30 15:26 -0400
    Re: Issues compiling hunspell from source on windows Akshay Kayastha <akshay.ksth@gmail.com> - 2013-07-01 12:55 -0700

#49493 — Issues compiling hunspell from source on windows

FromAkshay Kayastha <akshay.ksth@gmail.com>
Date2013-06-30 08:54 -0700
SubjectIssues compiling hunspell from source on windows
Message-ID<04acbd31-b7c5-4518-852a-0ed0deed44c5@googlegroups.com>
Hi I am trying to compile a python module called hunspell from the following [source](https://pypi.python.org/pypi/hunspell).

But I get the following error message.

	C:\Users\KURO\Desktop\hunspell-0.1>setup.py install
	running install
	running build
	running build_ext
	building 'hunspell' extension
	C:\mingw\bin\gcc.exe -mno-cygwin -mdll -O -Wall -D_LINUX -I/usr/include/hunspell
	 -IC:\Python27\include -IC:\Python27\PC -c hunspell.c -o build\temp.win-amd64-2.
	7\Release\hunspell.o -Wall
	writing build\temp.win-amd64-2.7\Release\hunspell.def
	C:\mingw\bin\gcc.exe -mno-cygwin -shared -s build\temp.win-amd64-2.7\Release\hun
	spell.o build\temp.win-amd64-2.7\Release\hunspell.def -LC:\Python27\libs -LC:\Py
	thon27\PCbuild\amd64 -lhunspell-1.2 -lpython27 -lmsvcr90 -o build\lib.win-amd64-
	2.7\hunspell.pyd
	c:/mingw/bin/../lib/gcc/mingw32/4.3.3/../../../../mingw32/bin/ld.exe: cannot fin
	d -lhunspell-1.2
	collect2: ld returned 1 exit status
	error: command 'gcc' failed with exit status 1

I tried downloading libhunspell-1.2-0.dll and put it into my system. But I still get the same error message. How do I deal with this? I have Windows 7 and [mingw](http://www.develer.com/oss/GccWinBinaries)

[toc] | [next] | [standalone]


#49494

Fromrusi <rustompmody@gmail.com>
Date2013-06-30 09:45 -0700
Message-ID<a1a0bbe2-7180-452d-abd8-47b708861a84@googlegroups.com>
In reply to#49493
On Sunday, June 30, 2013 9:24:46 PM UTC+5:30, Akshay Kayastha wrote:
> Hi I am trying to compile a python module called hunspell from the following 
> [source](https://pypi.python.org/pypi/hunspell).
> 

According to 
http://docs.python.org/2/extending/windows.html
you need to use the same compiler for the extension as used to compile python.

That means one of
1. Use the MSC version used for your python
2. Recompile python from source using mingw
3. Switch to linux :-)

[toc] | [prev] | [next] | [standalone]


#49496

FromAkshay Kayastha <akshay.ksth@gmail.com>
Date2013-06-30 10:08 -0700
Message-ID<08379bfa-0a97-4528-80c6-fa7dd1b893af@googlegroups.com>
In reply to#49493
Haha... nooo I already use Linux. But I am currently doing a project that required me to run my script on Windows as well as Linux. TO be precise I am supposed to create a stand alone executable for my script which runs great on Linux, but to create one for Windows I need to be able to run the script first. My script runs fine on Linux as its hella easy to install the module, but on windows I cant seem to be able to get the module working :(

[toc] | [prev] | [next] | [standalone]


#49512

FromDavid Robinow <drobinow@gmail.com>
Date2013-06-30 15:26 -0400
Message-ID<mailman.4041.1372620799.3114.python-list@python.org>
In reply to#49493
It appears you are using a 32 bit compiler with a 64-bit python.
Install a 32 bit python.

On Sun, Jun 30, 2013 at 11:54 AM, Akshay Kayastha <akshay.ksth@gmail.com> wrote:
> Hi I am trying to compile a python module called hunspell from the following [source](https://pypi.python.org/pypi/hunspell).
>
> But I get the following error message.
>
>         C:\Users\KURO\Desktop\hunspell-0.1>setup.py install
>         running install
>         running build
>         running build_ext
>         building 'hunspell' extension
>         C:\mingw\bin\gcc.exe -mno-cygwin -mdll -O -Wall -D_LINUX -I/usr/include/hunspell
>          -IC:\Python27\include -IC:\Python27\PC -c hunspell.c -o build\temp.win-amd64-2.
>         7\Release\hunspell.o -Wall
>         writing build\temp.win-amd64-2.7\Release\hunspell.def
>         C:\mingw\bin\gcc.exe -mno-cygwin -shared -s build\temp.win-amd64-2.7\Release\hun
>         spell.o build\temp.win-amd64-2.7\Release\hunspell.def -LC:\Python27\libs -LC:\Py
>         thon27\PCbuild\amd64 -lhunspell-1.2 -lpython27 -lmsvcr90 -o build\lib.win-amd64-
>         2.7\hunspell.pyd
>         c:/mingw/bin/../lib/gcc/mingw32/4.3.3/../../../../mingw32/bin/ld.exe: cannot fin
>         d -lhunspell-1.2
>         collect2: ld returned 1 exit status
>         error: command 'gcc' failed with exit status 1
>
> I tried downloading libhunspell-1.2-0.dll and put it into my system. But I still get the same error message. How do I deal with this? I have Windows 7 and [mingw](http://www.develer.com/oss/GccWinBinaries)
> --
> http://mail.python.org/mailman/listinfo/python-list

[toc] | [prev] | [next] | [standalone]


#49591

FromAkshay Kayastha <akshay.ksth@gmail.com>
Date2013-07-01 12:55 -0700
Message-ID<8f7919c2-9c1f-45f0-a876-9f608800d132@googlegroups.com>
In reply to#49493
I installed a 32 bit python and it still gives me the same error. 

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web