Note that this was solved through email by configuring the PPA on Ubuntu. Below is an alternate solution.
To use Hunspell, one must enter the path in Tools > Preferences > Paths. This was greyed out in the OP's case. Thus, a reinstall of LyX from the Ubuntu PPA fixed it, because that version was built with support for Hunspell.
Note that on Linux systems other than Ubuntu, you might need to compile LyX yourself to add support for spell checking. The following instructions might thus be needed by some.
Do the following steps:
- sudo apt-get build-dep lyx
0.5 sudo apt-get install cmake
- make a directory such as "local_lyx" wherever you want. cd into that directory
git clone git://git.lyx.org/lyx repo
- now run
chmod +x lyxbuild
- to build in parallel run
../lyxbuild --jobs $( grep "processor" /proc/cpuinfo | wc -l )
- when that is done, run
- test LyX from there:
- Now install it:
sudo make install
- Now run
- Go to Tools > Preferences > Paths and put
/usr/share/hunspell/ for the hunspell path
- Test that both Hunspell and Enchant work. Note that you might have to Tools > reconfigure after putting in the Hunspell path, and when you switch between spell checkers.
If the build fails (that is if the command in 6. does not have a zero exit code), then please post the output of the command in 6. as well as the logs in local_lyx/build-logs.