I just performed an install of TeXLive 2012 over the network, and I cannot execute any of the binaries at all. Running tex --version returns zsh: exec format error: tex, even install-tl in /opt/texlive/2012 reports the same error.
What am I doing wrong? The only option I changed in install-tl was set the install path to /opt/texlive/2012 instead of the default /usr/local/texlive/2012, and I made sure the binaries were set to Linux x86-64, which is my system archictecture.
EDIT The mysterious error disappeared when I re-downloaded the TeXLive network installer and ran it again. I have no idea what happened or why.
PATHvariable contains/opt/texlive/2012/bin/x86_64-linux. Try the command line/opt/texlive/2012/bin/x86_64-linux/tex --version– egreg Sep 24 '12 at 8:56PATHissue: the message would bezsh: command not found: tex. Can you please tryfile $(which tex), which should print/opt/texlive/2012/bin/x86_64-linux/tex: ELF 64-bit LSB executableetc, andfile /opt/texlive/2012/install-tl, which should be aPerl script, ASCII text executable. Also make sure your machine really is 64bits (this may sound stupid, but I've already seen this mistake). – mpg Sep 25 '12 at 7:50