hello everyone.
I'm working on the Ubuntu 10.04 & Lyx 1.6.5. Then I upgraded my kernel to version 2.6.32 - 26 several days ago. Then everything seems wrong, the Lyx cannot DVI or make pdf even the tutorial file in Help -> Tutorial. Here is the err information:
Package babel Error: you haven't loaded the option english yet.
I tried to reinstall Lyx in the software center, but it didnt work. I think it's much more concerned with some config files of the system. So is there any suggestions that can solve this trouble~
LyX ⇒ troubled after upgrading system
troubled after upgrading system
Last edited by swordless on Fri Dec 17, 2010 6:49 am, edited 1 time in total.
NEW: TikZ book now 40% off at Amazon.com for a short time.

Re: troubled after upgrading system
I can't see how a kernel upgrade can have any impact on LaTeX. Please, post here an example .lyx file which shows the problem.
troubled after upgrading system
thanks for your reply.
Here is the Latex source:
and the error information in Latex log:
Here is the Latex source:
Code: Select all
% Preview source code
%% LyX 1.6.5 created this file. For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[12pt,a4paper]{article}
\usepackage[]{fontenc}
\usepackage[latin9]{inputenc}
\pagestyle{headings}
\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
% DO NOT ALTER THIS PREAMBLE!!!
%
%This preamble is designed to ensure that the document prints
% out as advertised. If you mess with this preamble,
% parts of the document may not print out as expected. If you
% have problems LaTeXing this file, please contact
% the documentation team
% email: lyx-docs@lists.lyx.org
\usepackage{ifpdf} % part of the hyperref bundle
\ifpdf % if pdflatex is used
% set fonts for nicer pdf view
\IfFileExists{lmodern.sty}{\usepackage{lmodern}}{}
\fi % end if pdflatex is used
% the pages of the TOC is numbered roman
% and a pdf-bookmark for the TOC is added
\let\myTOC\tableofcontents
\renewcommand\tableofcontents{%
\frontmatter
\pdfbookmark[1]{\contentsname}{}
\myTOC
\mainmatter }
% redefine the \LyX macro for PDF bookmarks
\def\LyX{\texorpdfstring{%
L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
{LyX}}
\makeatother
\begin{document}
\selectlanguage{english}
\title{this is my first lyx.}
\author{swordless}
\date{2010/12/13}
\maketitle
\pagebreak{}
\section{introduction}
sdsfIf you have a big trunk of plain latex code, you can include them
directly in your lyx file through ERT. Anyway, if you have a full
latex file, importing it into lyx would be better.
\subsection{ccc}
If you have a big trunk of plain latex code, you can include them
directly in your lyx file through ERT. Anyway, if you have a full
latex file, importing it into lyx would be better.If you have a big
trunk of plain latex code, you can include them directly in your lyx
file through ERT. Anyway, if you have a full latex file, importing
it into lyx would be better.
\section{procedure}
If you have a big trunk of plain latex code, you can include them
directly in your lyx file through ERT. Anyway, if you have a full
latex file, importing it into lyx would be better.If you have a big
trunk of plain latex code, you can include them directly in your lyx
file through ERT. Anyway, if you have a full latex file, importing
it into lyx would be better.
If you have a big trunk of plain latex code, you can include them
directly in your lyx file through ERT. Anyway, if you have a full
latex file, importing it into lyx would be better.If you have a big
trunk of plain latex code, you can include them directly in your lyx
file through ERT. Anyway, if you have a full latex file, importing
it into lyx would be better.
\section{conclusion}
If you have a big trunk of plain latex code, you can include them
directly in your lyx file through ERT. Anyway, if you have a full
latex file, importing it into lyx would be better.If you have a big
trunk of plain latex code, you can include them directly in your lyx
file through ERT.
\end{document}
Code: Select all
This is pdfTeX, Version 3.1415926-1.40.10 (TeX Live 2009/Debian) (format=latex 2010.11.24) 15 DEC 2010 20:46
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
**test.tex
(./test.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, loaded.
(/usr/share/texmf-texlive/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/usr/share/texmf-texlive/tex/latex/base/size12.clo
File: size12.clo 2007/10/19 v1.4h Standard LaTeX file (size option)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
) (/usr/share/texmf-texlive/tex/latex/base/fontenc.sty
Package: fontenc 2005/09/27 v1.99g Standard LaTeX package
) (/usr/share/texmf-texlive/tex/latex/base/inputenc.sty
Package: inputenc 2008/03/30 v1.1d Input encoding file
\inpenc@prehook=\toks14
\inpenc@posthook=\toks15
(/usr/share/texmf-texlive/tex/latex/base/latin9.def
File: latin9.def 2008/03/30 v1.1d Input encoding file
)) (/usr/share/texmf-texlive/tex/generic/oberdiek/ifpdf.sty
Package: ifpdf 2009/04/10 v2.0 Provides the ifpdf switch (HO)
Package ifpdf Info: pdfTeX in pdf mode not detected.
) (./test.aux
! Package babel Error: You haven't loaded the option english yet.
See the babel package documentation for explanation.
Type H <return> for immediate help.
...
l.2 \select@language{english}
You may proceed, but expect unexpected results
)
\openout1 = `test.aux'.
LaTeX Font Info: Checking defaults for OML/cmm/m/it on input line 45.
LaTeX Font Info: ... okay on input line 45.
LaTeX Font Info: Checking defaults for T1/cmr/m/n on input line 45.
LaTeX Font Info: ... okay on input line 45.
LaTeX Font Info: Checking defaults for OT1/cmr/m/n on input line 45.
LaTeX Font Info: ... okay on input line 45.
LaTeX Font Info: Checking defaults for OMS/cmsy/m/n on input line 45.
LaTeX Font Info: ... okay on input line 45.
LaTeX Font Info: Checking defaults for OMX/cmex/m/n on input line 45.
LaTeX Font Info: ... okay on input line 45.
LaTeX Font Info: Checking defaults for U/cmr/m/n on input line 45.
LaTeX Font Info: ... okay on input line 45.
! Package babel Error: You haven't loaded the option english yet.
See the babel package documentation for explanation.
Type H <return> for immediate help.
...
l.46 \selectlanguage{english}
You may proceed, but expect unexpected results
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <14.4> on input line 56.
LaTeX Font Info: External font `cmex10' loaded for size
(Font) <7> on input line 56.
[1
] [2] (./test.aux
! Package babel Error: You haven't loaded the option english yet.
See the babel package documentation for explanation.
Type H <return> for immediate help.
...
l.2 \select@language{english}
You may proceed, but expect unexpected results
) )
Here is how much of TeX's memory you used:
481 strings out of 495062
4703 string characters out of 1182643
50088 words of memory out of 3000000
3727 multiletter control sequences out of 15000+50000
6415 words of font info for 23 fonts, out of 3000000 for 9000
28 hyphenation exceptions out of 8191
22i,6n,19p,157b,187s stack positions out of 5000i,500n,10000p,200000b,50000s
Output written on test.dvi (2 pages, 3016 bytes).
troubled after upgrading system
I think that the problem is here:meho_r wrote:I can't see how a kernel upgrade can have any impact on LaTeX. Please, post here an example .lyx file which shows the problem.
(/usr/share/texmf-texlive/tex/generic/oberdiek/ifpdf.sty
Package: ifpdf 2009/04/10 v2.0 Provides the ifpdf switch (HO)
Package ifpdf Info: pdfTeX in pdf mode not detected.
)
troubled after upgrading system
I don't think so. The problem is that \selectlanguage{english} command is set in the source you provided (immediately after \begin{document}), but babel package isn't loaded at all (and all errors are babel-related). So, either go to Document > Settings > Langauge and set the language or put into the preamble the following:
And, BTW, it is better to include a .lyx file instead of LaTeX source, just in case that LyX messes something up (and it does from time to time). Note that you'll need to put the file into a ZIP archive prior to attaching.
Code: Select all
\usepackage[english]{babel}
troubled after upgrading system
Thank you meho_r!meho_r wrote:I don't think so. The problem is that \selectlanguage{english} command is set in the source you provided (immediately after \begin{document}), but babel package isn't loaded at all (and all errors are babel-related). So, either go to Document > Settings > Langauge and set the language or put into the preamble the following:And, BTW, it is better to include a .lyx file instead of LaTeX source, just in case that LyX messes something up (and it does from time to time). Note that you'll need to put the file into a ZIP archive prior to attaching.Code: Select all
\usepackage[english]{babel}
I insert the preamble, and it worked.