[texworks] Compile Error on Fedora 9 with hunspell

Jonathan Kew jonathan at jfkew.plus.com
Tue Aug 19 13:50:11 CEST 2008

On 19 Aug 2008, at 12:36 PM, Dave Crossland wrote:

> Hi!
> TeXWorks isn't building on my Fedora 9 machine :-( I believe I have
> all the dependencies installed, but the build fails over hunspell...
> Any clues? :-)

Without actually setting up a Fedora 9 system to check how hunspell is  
installed, I'm guessing.... could it be that the hunspell library name  
is different, perhaps including a version number? If so, you'd need to  
change the line

         LIBS += -lhunspell

in TeXworks.pro to something like

         LIBS += -lhunspell-1.1

or whatever. I notice that I have -lhunspell-1.2 on Mac OS X and  
Win32, but plain -lhunspell on Linux (works for me on Ubuntu). I guess  
this is one of those annoying libraries that gets named slightly  
differently on different distros.

Aha -- just looking, I see that Ubuntu has libhunspell-1.1.so, but  
also provides a symlink libhunspell.so, so that's why it works for me.

I could change the .pro file to explicitly specify 1.1 on Linux, but  
then it'll fail (or at least not get the latest version) when people  
start updating to 1.2.... :-(

For now, I suggest you just edit it locally; that should let you go  
ahead and build.



> $ make
> ....
> g++  -o texworks obj/main.o obj/TWApp.o obj/TWUtils.o
> obj/TeXDocument.o obj/CompletingEdit.o obj/TeXHighlighter.o
> obj/PDFDocument.o obj/PDFDocks.o obj/FindDialog.o obj/PrefsDialog.o
> obj/TemplateDialog.o obj/synctex_parser.o obj/moc_TWApp.o
> obj/moc_TWUtils.o obj/moc_TeXDocument.o obj/moc_CompletingEdit.o
> obj/moc_TeXHighlighter.o obj/moc_PDFDocument.o obj/moc_PDFDocks.o
> obj/moc_FindDialog.o obj/moc_PrefsDialog.o obj/moc_TemplateDialog.o
> obj/qrc_resources.o obj/qrc_resfiles.o     -lpoppler-qt4 -lhunspell
> -lQtXml -lQtGui -lQtCore -lpthread
> /usr/bin/ld: cannot find -lhunspell
> collect2: ld returned 1 exit status
> make: *** [texworks] Error 1
> $ sudo yum install -y hunspell hunspell-en hunspell-devel
> Setting up Install Process
> Parsing package install arguments
> Package hunspell - is already installed.
> Package hunspell-en - 0.20061130-3.fc8.noarch is already installed.
> Package hunspell-devel - is already installed.
> Nothing to do
> $
> -- 
> Regards,
> Dave
> --
> postmaster at tug.org
> http://tug.org/mailman/listinfo/texworks

More information about the texworks mailing list