I am trying to use latex on a CentOs machine. I have it working on my windows machine. I installed texlive-*. I am using fontspec and ultimately copied it from my windows machine into /usr/share/texmf/tex/xelatex/fontspec.
Then I ran into an issue of it saying that I was missing expl3 package. So I copied the entire l3kernel folder over from my windows machine into /usr/share/texmf/tex/latex/l3kernel
The issue I am running into in this file /usr/share/texmf/tex/latex/l3kernel/expl3-code.tex
is this:
! Undefined control sequence.
\__str_if_eq_x:nn #1#2->\pdftex_strcmp:D
{#1}{#2}
l.221 }
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
I am executing: xelatex test.tex. and test.tex is failing on this line:
\usepackage{fontspec}
I have searched around for over an hour and am still lost as to what is happening. The closest thing that I read is that maybe by running xelatex I'm not running the pdftex packages as per this answer.
UPDATE I jsut saw that i have texlive 2007. I think the pdftex package wasn't included at that time? I am looking how to update texlive to at least 2011.
expl3(required byfontspec). Installing the “vanilla” TeX Live from TUG is not difficult. – egreg Oct 29 '15 at 00:02/usr/shareetc. unless you are absolutely certain you know what you are doing. System directories are managed by your distro's package manager. When you manually alter them, the files on disk no longer match your package manager's database. This will cause problems. You need to undo the changes you made to the system directories. Note that this has nothing to do with LaTeX: it is a point about administering a GNU/Linux box and perfectly general. – cfr Oct 29 '15 at 00:20