Re: Problem with spell checker
Am 18.07.2014 um 12:12 schrieb Fabio Fiorelli : > I've retried after forcing the install of a more recent version of the > developer package, and now it seems that the flag for hunspell is thrown. > > Fabio So, the LyX side if the story is as it should be. Your first configure attempt failed to compile the LyX with the hunspell library. Consequently there is no hunspell spell checker and if no other spell checker is available the list of the available spell checkers is empty and the chooser widget is disabled. Because of the missing hunspell the hunspell path input field is disabled too. configure:14279: checking hunspell/hunspell.hxx usability conftest.cpp:157:33: error: hunspell/hunspell.hxx: No such file or directory | #include configure:14279: checking hunspell/hunspell.hxx presence conftest.cpp:124:33: error: hunspell/hunspell.hxx: No such file or directory | #include configure:14279: checking for hunspell/hunspell.hxx configure:14291: checking for main in -lhunspell configure:14310: g++ -o conftest -g -O2 -Wextra -Wallconftest.cpp -lhunspell-lz >&5 /usr/bin/ld: cannot find -lhunspell configure:14328: checking whether to use hunspell ac_cv_header_hunspell_hunspell_hxx=no ac_cv_lib_hunspell_main=no USE_HUNSPELL_FALSE='' USE_HUNSPELL_TRUE='#' The second attempt now is successful. configure:10773: checking for HUNSPELL configure:10781: $PKG_CONFIG --exists --print-errors "hunspell" configure:10799: $PKG_CONFIG --exists --print-errors "hunspell" configure:10942: checking whether to use hunspell ac_cv_env_HUNSPELL_CFLAGS_set= ac_cv_env_HUNSPELL_CFLAGS_value= ac_cv_env_HUNSPELL_LIBS_set= ac_cv_env_HUNSPELL_LIBS_value= pkg_cv_HUNSPELL_CFLAGS='-I/usr/include/hunspell ' pkg_cv_HUNSPELL_LIBS='-lhunspell-1.2 ' HUNSPELL_CFLAGS='-I/usr/include/hunspell ' HUNSPELL_LIBS='-lhunspell-1.2 ' USE_HUNSPELL_FALSE='#' USE_HUNSPELL_TRUE='' VERSION_INFO='Configuration\n Host type: i686-pc-linux-gnu\n Special build flags: build=release use-hunspell\n C++ Compiler: g++ (4.4.7)\n C++ Compiler LyX flags:\n C++ Compiler flags:-O2\n Linker flags: \n Linker user flags:\n Qt 4 Frontend:\n Qt 4 version:\t\t4.6.2\n Packaging:posix\n LyX binary dir: /usr/local/bin\n LyX files dir:/usr/local/share/lyx\n' #define USE_HUNSPELL 1 #define VERSION_INFO "Configuration\n Host type: i686-pc-linux-gnu\n Special build flags: build=release use-hunspell\n C++ Compiler: g++ (4.4.7)\n C++ Compiler LyX flags:\n C++ Compiler flags:-O2\n Linker flags: \n Linker user flags:\n Qt 4 Frontend:\n Qt 4 version:\t\t4.6.2\n Packaging:posix\n LyX binary dir: /usr/local/bin\n LyX files dir:/usr/local/share/lyx\n" It is possible to send a message to the terminal to notify the packager of the missing spell checker libraries. Stephan > On 07/18/2014 10:50 AM, Stephan Witt wrote: >> Am 18.07.2014 um 11:43 schrieb Fabio Fiorelli : >> >>> This are screenshots from a machine in which LyX 2.1.0 was installed with >>> Hunspell already in. The procedure I use is simply >>> • tar the archive >>> • Enter the unpacked folder >>> • Use ./configure >>> • check it gives no error flag. >>> • make (I use the regular make as I'm not familiar with cmake) >>> • make install as su >> Please provide the config.log. >> >> Can you please double-check that the hunspell package *for developers* is >> installed? >> If this is not the case then retry after installing them. >> Then check the output of your configure run if it differs from the previous >> one. >> >> Stephan >> >>> On 07/17/2014 11:25 PM, Jean-Marc Lasgouttes wrote: Le 17/07/14 18:35, Fabio Fiorelli a écrit : > Hi Jean Marc. There seem to be no additional flags required. > Configuration >Host type:i686-pc-linux-gnu >Special build flags: build=release use-hunspell >C++ Compiler: g++ (4.4.7) >C++ Compiler LyX flags: >C++ Compiler flags:-O2 >Linker flags: >Linker user flags: >Qt 4 Frontend: >Qt 4 version:4.6.2 >Packaging:posix >LyX binary dir: /usr/local/bin >LyX files dir:/usr/local/share/lyx > > In fact I tested it right now in another virtual machine. > Lyx 2.1.1 installs correctly with access to hunspell without any further > configuration, while Lyx 2.1 doesn't. > Should I go forward? Thank you for your understanding. It is very weird... So USE_HUNSPELL is defined in config.h (in build directory°? If so, I wonder why the entry is greyed out. Could you provide a screensho
Re: Problem with spell checker
Am 18.07.2014 um 11:43 schrieb Fabio Fiorelli : > This are screenshots from a machine in which LyX 2.1.0 was installed with > Hunspell already in. The procedure I use is simply > • tar the archive > • Enter the unpacked folder > • Use ./configure > • check it gives no error flag. > • make (I use the regular make as I'm not familiar with cmake) > • make install as su Please provide the config.log. Can you please double-check that the hunspell package *for developers* is installed? If this is not the case then retry after installing them. Then check the output of your configure run if it differs from the previous one. Stephan > On 07/17/2014 11:25 PM, Jean-Marc Lasgouttes wrote: >> Le 17/07/14 18:35, Fabio Fiorelli a écrit : >>> Hi Jean Marc. There seem to be no additional flags required. >>> Configuration >>>Host type:i686-pc-linux-gnu >>>Special build flags: build=release use-hunspell >>>C++ Compiler: g++ (4.4.7) >>>C++ Compiler LyX flags: >>>C++ Compiler flags:-O2 >>>Linker flags: >>>Linker user flags: >>>Qt 4 Frontend: >>>Qt 4 version:4.6.2 >>>Packaging:posix >>>LyX binary dir: /usr/local/bin >>>LyX files dir:/usr/local/share/lyx >>> >>> In fact I tested it right now in another virtual machine. >>> Lyx 2.1.1 installs correctly with access to hunspell without any further >>> configuration, while Lyx 2.1 doesn't. >>> Should I go forward? Thank you for your understanding. >> >> It is very weird... So USE_HUNSPELL is defined in config.h (in build >> directory°? >> >> If so, I wonder why the entry is greyed out. Could you provide a screenshot? >> >> JMarc > >
Re: Problem with spell checker
Le 17/07/14 18:35, Fabio Fiorelli a écrit : Hi Jean Marc. There seem to be no additional flags required. Configuration Host type:i686-pc-linux-gnu Special build flags: build=release use-hunspell C++ Compiler: g++ (4.4.7) C++ Compiler LyX flags: C++ Compiler flags:-O2 Linker flags: Linker user flags: Qt 4 Frontend: Qt 4 version:4.6.2 Packaging:posix LyX binary dir: /usr/local/bin LyX files dir:/usr/local/share/lyx In fact I tested it right now in another virtual machine. Lyx 2.1.1 installs correctly with access to hunspell without any further configuration, while Lyx 2.1 doesn't. Should I go forward? Thank you for your understanding. It is very weird... So USE_HUNSPELL is defined in config.h (in build directory°? If so, I wonder why the entry is greyed out. Could you provide a screenshot? JMarc
Re: Problem with spell checker
On 07/17/2014 05:15 PM, Jean-Marc Lasgouttes wrote: 17/07/2014 18:11, Scott Kostyshak: On Thu, Jul 17, 2014 at 12:00 PM, Fabio Fiorelli wrote: Hi Scott I did have the devel library for hunspell already installed. Just to be sure, when I ./configure I do get the message checking for HUNSPELL... yes checking whether to use hunspell... yes With the most recent version of lyx. So, should I go on and write make -DLYX_HUNSPELL=ON -DLYX_ENCHANT=ON Thank you for your answer! So, what was the message that you got at the end of compilation (the recapitulation of settings)? You should not need to add anything to the make commend line. JMarc Hi Jean Marc. There seem to be no additional flags required. Configuration Host type:i686-pc-linux-gnu Special build flags: build=release use-hunspell C++ Compiler: g++ (4.4.7) C++ Compiler LyX flags: C++ Compiler flags:-O2 Linker flags: Linker user flags: Qt 4 Frontend: Qt 4 version:4.6.2 Packaging:posix LyX binary dir: /usr/local/bin LyX files dir:/usr/local/share/lyx In fact I tested it right now in another virtual machine. Lyx 2.1.1 installs correctly with access to hunspell without any further configuration, while Lyx 2.1 doesn't. Should I go forward? Thank you for your understanding.
Re: Problem with spell checker
Sorry, I thought I had replied to the list. I tried that a long time ago, and unfortunately those sections are greyed out too. Many thanks On 07/17/2014 05:11 PM, Scott Kostyshak wrote: On Thu, Jul 17, 2014 at 12:00 PM, Fabio Fiorelli wrote: Hi Scott I did have the devel library for hunspell already installed. Just to be sure, when I ./configure I do get the message checking for HUNSPELL... yes checking whether to use hunspell... yes With the most recent version of lyx. So, should I go on and write make -DLYX_HUNSPELL=ON -DLYX_ENCHANT=ON Thank you for your answer! Hi Fabio, please respond to the list. Looks like you're using autotools, which I don't know much about (but which is more common so people on the list will know). Maybe the problem is you have to specify the path to the hunspell libraries in Tools > Preferences > Paths? Scott
Re: Problem with spell checker
17/07/2014 18:11, Scott Kostyshak: On Thu, Jul 17, 2014 at 12:00 PM, Fabio Fiorelli wrote: Hi Scott I did have the devel library for hunspell already installed. Just to be sure, when I ./configure I do get the message checking for HUNSPELL... yes checking whether to use hunspell... yes With the most recent version of lyx. So, should I go on and write make -DLYX_HUNSPELL=ON -DLYX_ENCHANT=ON Thank you for your answer! So, what was the message that you got at the end of compilation (the recapitulation of settings)? You should not need to add anything to the make commend line. JMarc
Re: Problem with spell checker
On Thu, Jul 17, 2014 at 12:00 PM, Fabio Fiorelli wrote: > Hi Scott > I did have the devel library for hunspell already installed. Just to be > sure, when I ./configure I do get the message > checking for HUNSPELL... yes > checking whether to use hunspell... yes > With the most recent version of lyx. So, should I go on and write > > make -DLYX_HUNSPELL=ON -DLYX_ENCHANT=ON > > Thank you for your answer! Hi Fabio, please respond to the list. Looks like you're using autotools, which I don't know much about (but which is more common so people on the list will know). Maybe the problem is you have to specify the path to the hunspell libraries in Tools > Preferences > Paths? Scott
Re: Problem with spell checker
On Thu, Jul 17, 2014 at 10:57 AM, Scott Kostyshak wrote: > On Thu, Jul 17, 2014 at 5:00 AM, Fabio Fiorelli wrote: >> Hello everyone >> I'm having a problem with the spell-checker. I'm running a computer with >> CentOS 6.5 installed, and I installed Lyx 2.1. However when I go in the >> settings, the spell-checker option is greyed out and cannot be activated. >> The strange thing is that not only a spell-checker was already installed >> (hunspell from LibreOffice), but I also attempted reinstalling after >> updating hunspell to the latest version with all the available dictionaries >> installed. >> Anyone else had this problem? >> Many thanks > > Hi Fabio, > > LyX needs to be compiled with spellchecker support enabled (I assume > this requires the devel libraries to link against). If you are > compiling with CMake, try > -DLYX_HUNSPELL=ON -DLYX_ENCHANT=ON > for both Hunspell and Enchant. Hi Fabio, It was incorrect for me to say that you have to explicitly enable the spellchecking libraries. My guess now is that you are missing the development libraries to link against (e.g. on Ubuntu you need libhunspell-dev installed). Best, Scott
Re: Problem with spell checker
On Thu, Jul 17, 2014 at 5:00 AM, Fabio Fiorelli wrote: > Hello everyone > I'm having a problem with the spell-checker. I'm running a computer with > CentOS 6.5 installed, and I installed Lyx 2.1. However when I go in the > settings, the spell-checker option is greyed out and cannot be activated. > The strange thing is that not only a spell-checker was already installed > (hunspell from LibreOffice), but I also attempted reinstalling after > updating hunspell to the latest version with all the available dictionaries > installed. > Anyone else had this problem? > Many thanks Hi Fabio, LyX needs to be compiled with spellchecker support enabled (I assume this requires the devel libraries to link against). If you are compiling with CMake, try -DLYX_HUNSPELL=ON -DLYX_ENCHANT=ON for both Hunspell and Enchant. Best, Scott
Problem with spell checker
Hello everyone I'm having a problem with the spell-checker. I'm running a computer with CentOS 6.5 installed, and I installed Lyx 2.1. However when I go in the settings, the spell-checker option is greyed out and cannot be activated. The strange thing is that not only a spell-checker was already installed (hunspell from LibreOffice), but I also attempted reinstalling after updating hunspell to the latest version with all the available dictionaries installed. Anyone else had this problem? Many thanks