使用TexLive有一段时间了,从2015到2017,一直运行如常。

最近,想把以前的文档重新编译,却发现不能正常运行,费了好大一番工夫,才终于修复了这个bug,记录如下。

问题描述:编译一个简单的 *.tex 文件时,经常报告系统文件找不到的错误,无论是 pdflatex,latex,xelatex 命令都有类似的错误。

test.tex 全文:

% test.tex
\documentclass{article}
\begin{document}
hello \LaTeX!
\end{document}

用 pdflatex 命令编译报错:

[...]$ pdflatex test.tex
This is pdfTeX, Version 3.14159265-2.6-1.40. (TeX Live ) (preloaded format=pdflatex)
restricted \write18 enabled. kpathsea: Running mktexfmt pdflatex.fmt
mktexfmt: mktexfmt is using the following fmtutil.cnf files (in precedence order):
mktexfmt: /usr/local/texlive//texmf-dist/web2c/fmtutil.cnf
mktexfmt: mktexfmt is using the following fmtutil.cnf file for writing changes:
mktexfmt: /home/She/.texlive2017/texmf-config/web2c/fmtutil.cnf
mktexfmt [INFO]: writing formats under /home/She/.texlive2017/texmf-var/web2c
mktexfmt [INFO]: --- remaking pdflatex with pdftex
mktexfmt: running `pdftex -ini -jobname=pdflatex -progname=pdflatex -translate-file=cp227.tcx *pdflatex.ini' ...
This is pdfTeX, Version 3.14159265-2.6-1.40. (TeX Live ) (INITEX)
restricted \write18 enabled.
(/usr/local/texlive//texmf-dist/web2c/cp227.tcx)
entering extended mode
(/usr/local/texlive//texmf-dist/tex/latex/latexconfig/pdflatex.ini
! I can't find file `pdftexconfig.tex'.
l. \input pdftexconfig.tex (Press Enter to retry, or Control-D to exit)
Please type another input file name:
! Emergency stop.
l. \input pdftexconfig.tex No pages of output.
Transcript written on pdflatex.log.
mktexfmt [ERROR]: running `pdftex -ini -jobname=pdflatex -progname=pdflatex -translate-file=cp227.tcx *pdflatex.ini >& </dev/null' return status 1
mktexfmt [ERROR]: return error due to options --strict
mktexfmt [INFO]: Disabled formats:
mktexfmt [INFO]: Not selected formats:
mktexfmt [INFO]: Failed to build: (pdftex/pdflatex)
mktexfmt [INFO]: Total formats:
mktexfmt [INFO]: exiting with status
I can't find the format file `pdflatex.fmt'!

实际上,上述文件  pdftexconfig.tex  和  pdflatex.fmt  是存在的,它们分别位于  /usr/local/texlive/2017/texmf-dist/tex/generic/tex-ini-files/pdftexconfig.tex  和  /usr/local/texlive/2017/texmf-var/web2c/pdftex/pdflatex.fmt  。

推断这是由于该文件并不在搜索路径内,以致于无法找到它们。接下来就是修复搜索路径的问题。

此时,TexLive 2017 的系统环境变量为

[...]$ cat /etc/profile.d/texlive2017.sh
#!/bin/bash
# setting for TexLive environment variables, edit by She
export TEXMF=/usr/local/texlive//texmf-dist
export PATH=$PATH:$HOME/.local/bin:$HOME/bin:/usr/local/texlive//bin/x86_64-linux
export MANPATH=/usr/local/texlive//texmf-dist/doc/man:$MANPATH
export INFOPATH=/usr/local/texlive//texmf-dist/doc/info:$INFOPATH
export TEXINPUTS=/usr/local/texlive//texmf-dist/tex/latex/latexconfig

相应地,可以看到 kpsewhich 命令并不能搜索到相应的系统文件(这里以 minted.sty 文件为例),而且 TexLive 2017 下 tlmgr 工具的参数设置如下,红色带下划线的文字是我添加的注释:


[...]$ kpsewhich pdflatex.ini
/usr/local/texlive/2017/texmf-dist/tex/latex/latexconfig/pdflatex.ini
[...]$ kpsewhich --show-path=.sty
/usr/local/texlive/2017/texmf-dist/tex/latex/latexconfig
[...]$ kpsewhich minted.sty # 这个命令没有返回结果,说明 kpsewhich 的搜索路径设置不当
[...]$
[...]$ tlmgr conf
=========================== version information ==========================
tlmgr revision (-- :: +)
tlmgr using installation: /usr/local/texlive/
TeX Live (http://tug.org/texlive) version 2017 ==================== executables found by searching PATH =================
PATH: /usr/local/texlive//bin/x86_64-linux:/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/opt/pgi/linux86-/17.4/bin:/home/She/.local/bin:/home/She/bin:/usr/local/texlive//bin/x86_64-linux:/opt/pgi/linux86-/17.4/bin:/home/She/.local/bin:/home/She/bin:/usr/local/texlive//bin/x86_64-linux
kpsewhich: /usr/local/texlive//bin/x86_64-linux/kpsewhich
updmap: /usr/local/texlive//bin/x86_64-linux/updmap
fmtutil: /usr/local/texlive//bin/x86_64-linux/fmtutil
tlmgr: /usr/local/texlive//bin/x86_64-linux/tlmgr
tex: /usr/local/texlive//bin/x86_64-linux/tex
pdftex: /usr/local/texlive//bin/x86_64-linux/pdftex
mktexpk: /usr/local/texlive//bin/x86_64-linux/mktexpk
dvips: /usr/local/texlive//bin/x86_64-linux/dvips
dvipdfmx: /usr/local/texlive//bin/x86_64-linux/dvipdfmx
=========================== active config files ==========================
texmf.cnf: /usr/local/texlive//texmf.cnf
texmf.cnf: /usr/local/texlive//texmf-dist/web2c/texmf.cnf
updmap.cfg: /usr/local/texlive//texmf-dist/web2c/updmap.cfg
fmtutil.cnf: /usr/local/texlive//texmf-dist/web2c/fmtutil.cnf
config.ps: /usr/local/texlive//texmf-dist/dvips/config/config.ps
mktex.cnf: /usr/local/texlive//texmf-dist/web2c/mktex.cnf
pdftexconfig.tex: ============================= font map files =============================
psfonts.map: /usr/local/texlive//texmf-dist/fonts/map/dvips/updmap/psfonts.map
pdftex.map: /usr/local/texlive//texmf-dist/fonts/map/pdftex/updmap/pdftex.map
ps2pk.map: /usr/local/texlive//texmf-dist/fonts/map/dvips/updmap/ps2pk.map
kanjix.map: /usr/local/texlive//texmf-dist/fonts/map/dvipdfmx/updmap/kanjix.map
=========================== kpathsea variables ===========================
TEXMFMAIN=/usr/local/texlive//texmf-dist
TEXMFDIST=/usr/local/texlive//texmf-dist
TEXMFLOCAL=/usr/local/texlive/texmf-local
TEXMFSYSVAR=/usr/local/texlive//texmf-var
TEXMFSYSCONFIG=/usr/local/texlive//texmf-config
TEXMFVAR=/home/She/.texlive2017/texmf-var
TEXMFCONFIG=/home/She/.texlive2017/texmf-config
TEXMFHOME=/home/She/texmf
VARTEXFONTS=/home/She/.texlive2017/texmf-var/fonts
TEXMF=/usr/local/texlive//texmf-dist
SYSTEXMF=/usr/local/texlive//texmf-var:/usr/local/texlive/texmf-local:/usr/local/texlive//texmf-dist
TEXMFDBS={!!/usr/local/texlive/texmf-local,!!/usr/local/texlive//texmf-config,!!/usr/local/texlive//texmf-var,!!/usr/local/texlive//texmf-dist}
WEB2C=/usr/local/texlive//texmf-dist/web2c
TEXPSHEADERS=.:/usr/local/texlive//texmf-dist/{dvips,fonts/{enc,type1,type42,type3}}//
TEXCONFIG=/usr/local/texlive//texmf-dist/dvips//
ENCFONTS=.:/usr/local/texlive//texmf-dist/fonts/enc//
TEXFONTMAPS=.:/usr/local/texlive//texmf-dist/fonts/map/{kpsewhich,pdftex,dvips,}//
==== kpathsea variables from environment only (ok if no output here) ====
TEXINPUTS=/usr/local/texlive/2017/texmf-dist/tex/latex/
latexconfig
[...]$ echo $TEXINPUTS
/usr/local/texlive//texmf-dist/tex/latex/latexconfig
[...]$

注意到,minted.sty 文件的默认路径为 /usr/local/texlive/2017/texmf-dist/tex/latex/minted/minted.sty,而 kpsewhich 命令并不能搜索到它,这是因为 kpsewhich 的搜索目录设置不当;tlmgr 命令返回的参数中有两处错误(红色背景所示),一是 pdftexconfig.tex 的位置未指定,二是 $TEXINPUTS 的内容仅由系统的环境变量所指定,而不会使用 TexLive 默认的目录设置(TexLive 专用的树形目录结构 TDS)。特别指出,tlmgr 命令的第二个错误写道:“==== kpathsea variables from environment only (ok if no output here) ====”,以后可以利用这里的输出字段来查询是否定义了冲突的系统变量。

接下来,修改 TexLive 2017 环境变量的设置文件,并且更新 TexLive 的设置。

[...]$ vi ~/Documents/texlive2017.sh
#!/bin/bash
# setting for TexLive environment variables, edit by She
export PATH=$PATH:$HOME/.local/bin:$HOME/bin:/usr/local/texlive//bin/x86_64-linux
export MANPATH=/usr/local/texlive//texmf-dist/doc/man:$MANPATH
export INFOPATH=/usr/local/texlive//texmf-dist/doc/info:$INFOPATH [...]$ sudo cp ~/Documents/texlive2017.sh /etc/profile.d/texlive2017.sh
[...]$ source /etc/profile.d/texlive2017.sh
[...]$ sudo texhash

注销,再重新登录。

此时,查询这个变量 $TEXINPUTS 是否有值,再重复之前的 pdflatex 编译工作,可以看到 pdflatex 命令运行正常,可以生成相应的 test.pdf 文件:

[...]$ echo $TEXINPUTS

[...]$ pdflatex test.tex
This is pdfTeX, Version 3.14159265-2.6-1.40. (TeX Live ) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
(./test.tex
LaTeX2e <-->
Babel <3.12> and hyphenation patterns for language(s) loaded.
(/usr/local/texlive//texmf-dist/tex/latex/base/article.cls
Document Class: article // v1.4h Standard LaTeX document class
(/usr/local/texlive//texmf-dist/tex/latex/base/size10.clo)) (./test.aux)
[{/usr/local/texlive//texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
(./test.aux) )</usr/local/texlive//texmf-dist/fonts/type1/public/amsfonts/c
m/cmr10.pfb></usr/local/texlive//texmf-dist/fonts/type1/public/amsfonts/cm/
cmr7.pfb>
Output written on test.pdf ( page, bytes).
Transcript written on test.log.

而且,tlmgr 工具的参数以及 kpsewhich 查询测试均正常,结果如下:

[...]$ kpsewhich --show-path=.sty
.:/home/She/.texlive2017/texmf-config/tex/kpsewhich//:/home/She/.texlive2017/texmf-var/tex/kpsewhich//:/home/She/texmf/tex/kpsewhich//:!!/usr/local/texlive/texmf-local/tex/kpsewhich//:!!/usr/local/texlive/2017/texmf-config/tex/kpsewhich//:!!/usr/local/texlive/2017/texmf-var/tex/kpsewhich//:!!/usr/local/texlive/2017/texmf-dist/tex/kpsewhich//:/home/She/.texlive2017/texmf-config/tex/generic//:/home/She/.texlive2017/texmf-var/tex/generic//:/home/She/texmf/tex/generic//:!!/usr/local/texlive/texmf-local/tex/generic//:!!/usr/local/texlive/2017/texmf-config/tex/generic//:!!/usr/local/texlive/2017/texmf-var/tex/generic//:!!/usr/local/texlive/2017/texmf-dist/tex/generic//:/home/She/.texlive2017/texmf-config/tex///:/home/She/.texlive2017/texmf-var/tex///:/home/She/texmf/tex///:!!/usr/local/texlive/texmf-local/tex///:!!/usr/local/texlive/2017/texmf-config/tex///:!!/usr/local/texlive/2017/texmf-var/tex///:!!/usr/local/texlive/2017/texmf-dist/tex///
[...]$ kpsewhich --show-path=.fmt
.:/home/She/.texlive2017/texmf-config/web2c/unsetengine:/home/She/.texlive2017/texmf-var/web2c/unsetengine:/home/She/texmf/web2c/unsetengine:!!/usr/local/texlive/texmf-local/web2c/unsetengine:!!/usr/local/texlive/2017/texmf-config/web2c/unsetengine:!!/usr/local/texlive/2017/texmf-var/web2c/unsetengine:!!/usr/local/texlive/2017/texmf-dist/web2c/unsetengine:/home/She/.texlive2017/texmf-config/web2c:/home/She/.texlive2017/texmf-var/web2c:/home/She/texmf/web2c:!!/usr/local/texlive/texmf-local/web2c:!!/usr/local/texlive/2017/texmf-config/web2c:!!/usr/local/texlive/2017/texmf-var/web2c:!!/usr/local/texlive/2017/texmf-dist/web2c
[...]$ which kpsewhich
/usr/local/texlive/2017/bin/x86_64-linux/kpsewhich
[...]$ kpsewhich minted.sty
/usr/local/texlive/2017/texmf-dist/tex/latex/minted/minted.sty
[...]$ kpsewhich pdflatex.fmt
[...]$ kpsewhich pdflatex.ini
/usr/local/texlive/2017/texmf-dist/tex/latex/latexconfig/pdflatex.in
[...]$ tlmgr conf
=========================== version information ==========================
tlmgr revision (-- :: +)
tlmgr using installation: /usr/local/texlive/
TeX Live (http://tug.org/texlive) version 2017 ==================== executables found by searching PATH =================
PATH: /usr/local/texlive//bin/x86_64-linux:/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/opt/pgi/linux86-/17.4/bin:/home/She/.local/bin:/home/She/bin:/usr/local/texlive//bin/x86_64-linux:/opt/pgi/linux86-/17.4/bin:/home/She/.local/bin:/home/She/bin:/usr/local/texlive//bin/x86_64-linux
kpsewhich: /usr/local/texlive//bin/x86_64-linux/kpsewhich
updmap: /usr/local/texlive//bin/x86_64-linux/updmap
fmtutil: /usr/local/texlive//bin/x86_64-linux/fmtutil
tlmgr: /usr/local/texlive//bin/x86_64-linux/tlmgr
tex: /usr/local/texlive//bin/x86_64-linux/tex
pdftex: /usr/local/texlive//bin/x86_64-linux/pdftex
mktexpk: /usr/local/texlive//bin/x86_64-linux/mktexpk
dvips: /usr/local/texlive//bin/x86_64-linux/dvips
dvipdfmx: /usr/local/texlive//bin/x86_64-linux/dvipdfmx
=========================== active config files ==========================
texmf.cnf: /usr/local/texlive//texmf.cnf
texmf.cnf: /usr/local/texlive//texmf-dist/web2c/texmf.cnf
updmap.cfg: /usr/local/texlive//texmf-dist/web2c/updmap.cfg
fmtutil.cnf: /usr/local/texlive//texmf-dist/web2c/fmtutil.cnf
config.ps: /usr/local/texlive//texmf-dist/dvips/config/config.ps
mktex.cnf: /usr/local/texlive//texmf-dist/web2c/mktex.cnf
pdftexconfig.tex: /usr/local/texlive//texmf-dist/tex/generic/tex-ini-files/pdftexconfig.tex
============================= font map files =============================
psfonts.map: /usr/local/texlive//texmf-var/fonts/map/dvips/updmap/psfonts.map
pdftex.map: /usr/local/texlive//texmf-var/fonts/map/pdftex/updmap/pdftex.map
ps2pk.map: /usr/local/texlive//texmf-var/fonts/map/dvips/updmap/ps2pk.map
kanjix.map: /usr/local/texlive//texmf-var/fonts/map/dvipdfmx/updmap/kanjix.map
=========================== kpathsea variables ===========================
TEXMFMAIN=/usr/local/texlive//texmf-dist
TEXMFDIST=/usr/local/texlive//texmf-dist
TEXMFLOCAL=/usr/local/texlive/texmf-local
TEXMFSYSVAR=/usr/local/texlive//texmf-var
TEXMFSYSCONFIG=/usr/local/texlive//texmf-config
TEXMFVAR=/home/She/.texlive2017/texmf-var
TEXMFCONFIG=/home/She/.texlive2017/texmf-config
TEXMFHOME=/home/She/texmf
VARTEXFONTS=/home/She/.texlive2017/texmf-var/fonts
TEXMF={{}/home/She/.texlive2017/texmf-config,/home/She/.texlive2017/texmf-var,/home/She/texmf,!!/usr/local/texlive/texmf-local,!!/usr/local/texlive//texmf-config,!!/usr/local/texlive//texmf-var,!!/usr/local/texlive//texmf-dist}
SYSTEXMF=/usr/local/texlive//texmf-var:/usr/local/texlive/texmf-local:/usr/local/texlive//texmf-dist
TEXMFDBS={!!/usr/local/texlive/texmf-local,!!/usr/local/texlive//texmf-config,!!/usr/local/texlive//texmf-var,!!/usr/local/texlive//texmf-dist}
WEB2C={{}/home/She/.texlive2017/texmf-config,/home/She/.texlive2017/texmf-var,/home/She/texmf,!!/usr/local/texlive/texmf-local,!!/usr/local/texlive//texmf-config,!!/usr/local/texlive//texmf-var,!!/usr/local/texlive//texmf-dist}/web2c
TEXPSHEADERS=.:{{}/home/She/.texlive2017/texmf-config,/home/She/.texlive2017/texmf-var,/home/She/texmf,!!/usr/local/texlive/texmf-local,!!/usr/local/texlive//texmf-config,!!/usr/local/texlive//texmf-var,!!/usr/local/texlive//texmf-dist}/{dvips,fonts/{enc,type1,type42,type3}}//
TEXCONFIG={{}/home/She/.texlive2017/texmf-config,/home/She/.texlive2017/texmf-var,/home/She/texmf,!!/usr/local/texlive/texmf-local,!!/usr/local/texlive//texmf-config,!!/usr/local/texlive//texmf-var,!!/usr/local/texlive//texmf-dist}/dvips//
ENCFONTS=.:{{}/home/She/.texlive2017/texmf-config,/home/She/.texlive2017/texmf-var,/home/She/texmf,!!/usr/local/texlive/texmf-local,!!/usr/local/texlive//texmf-config,!!/usr/local/texlive//texmf-var,!!/usr/local/texlive//texmf-dist}/fonts/enc//
TEXFONTMAPS=.:{{}/home/She/.texlive2017/texmf-config,/home/She/.texlive2017/texmf-var,/home/She/texmf,!!/usr/local/texlive/texmf-local,!!/usr/local/texlive//texmf-config,!!/usr/local/texlive//texmf-var,!!/usr/local/texlive//texmf-dist}/fonts/map/{kpsewhich,pdftex,dvips,}//
==== kpathsea variables from environment only (ok if no output here) ====
[...]$

小结:通过以上对比,起码有以下两种方法来查看 TexLive 的搜索路径是否正常:

(1)通过查看  kpsewhich --show-path=.sty  命令的返回结果来判断系统路径是否正常

# 错误的返回结果
[...]$ kpsewhich --show-path=.sty
/usr/local/texlive//texmf-dist/tex/latex/latexconfig
[...]$ kpsewhich minted.sty
[...]$ # 正确的返回结果
[...]$ kpsewhich --show-path=.sty
.:/home/She/.texlive2017/texmf-config/tex/kpsewhich//:/home/She/.texlive2017/texmf-var/tex/kpsewhich//:/home/She/texmf/tex/kpsewhich//:!!/usr/local/texlive/texmf-local/tex/kpsewhich//:!!/usr/local/texlive/2017/texmf-config/tex/kpsewhich//:!!/usr/local/texlive/2017/texmf-var/tex/kpsewhich//:!!/usr/local/texlive/2017/texmf-dist/tex/kpsewhich//:/home/She/.texlive2017/texmf-config/tex/generic//:/home/She/.texlive2017/texmf-var/tex/generic//:/home/She/texmf/tex/generic//:!!/usr/local/texlive/texmf-local/tex/generic//:!!/usr/local/texlive/2017/texmf-config/tex/generic//:!!/usr/local/texlive/2017/texmf-var/tex/generic//:!!/usr/local/texlive/2017/texmf-dist/tex/generic//:/home/She/.texlive2017/texmf-config/tex///:/home/She/.texlive2017/texmf-var/tex///:/home/She/texmf/tex///:!!/usr/local/texlive/texmf-local/tex///:!!/usr/local/texlive/2017/texmf-config/tex///:!!/usr/local/texlive/2017/texmf-var/tex///:!!/usr/local/texlive/2017/texmf-dist/tex///
[...]$ kpsewhich minted.sty
/usr/local/texlive//texmf-dist/tex/latex/minted/minted.sty
[...]$

(2)通过查看  命令的返回结果来准确判断,各个变量的值必须要准确赋值,而且在最后一行的内容不能为空

[...]$ tlmgr conf
...
=========================== active config files ==========================
...
pdftexconfig.tex: /usr/local/texlive//texmf-dist/tex/generic/tex-ini-files/pdftexconfig.tex # pdftexconfig.tex的路径必须查询到,否则会出错
============================= font map files =============================
...
=========================== kpathsea variables ===========================
...
==== kpathsea variables from environment only (ok if no output here) ==== # 这一行之后列出的是冲突的系统变量名,如无,则一切正常;如有,则找到并注释掉它
TEXINPUTS=/usr/local/texlive//texmf-dist/tex/latex/latexconfig # 这里不能有冲突的系统变量,如有,则需要找到该变量的设置部分,并注释掉它或者删去它

更详细的 Kpathsea 有关的参数设置,可以查看TexLive 的官方说明文档:https://www.tug.org/texlive/doc/texlive-zh-cn/texlive-zh-cn.pdf。

[CentOS 7] TexLive2017中kpsewhich Bug的修复的更多相关文章

  1. duilib combo控件,当鼠标滚动时下拉列表自动关闭的bug的修复

    转载请说明出处,谢谢~~ 群里有朋友提到了使用Combo控件时,当下拉列表出现,此时鼠标滚轮滚动,下拉列表就自动消失了.我看了一下源码,这个bug的修复很简单. CComboUI控件被单击时创建CCo ...

  2. 写代码的心得,怎么减少编程中的 bug?

    遭遇 bug 的时候,理性的程序员会说:这个 bug 能复现吗? 自负型:这不可能,在我这是好好的. 经验型:不应该,以前怎么没问题? 幻想型:可能是数据有问题. 无辜型:我好几个星期都没碰这块代码了 ...

  3. 逆向实战第一讲,寻找OllyDbg调试工具的Bug并修复

    逆向实战第一讲,寻找OllyDbg调试工具的Bug并修复 首先我们要知道这个OD的Bug是什么. 我们调试一个UNICODE的窗口,看下其窗口过程. 一丶查看OllyDbg 的Bug 1.1spy++ ...

  4. CentOS 6.4中升级编译安装GCC 4.8.1 + GDB 7.6.1 + Eclipse 以及Kdump配置

    在CentOS 6.4中编译安装GCC 4.8.1 + GDB 7.6.1 + Eclipse 今天在isocpp上看到"GCC 4.8.1 released, C++11 feature ...

  5. WinForm IME输入法BUG完美修复

    本文来自http://hi.baidu.com/wingingbob/item/a2cb3fc0fe3bd1bb0d0a7b5b <WinForm IME输入法BUG测试>里,我描述了在. ...

  6. [转] 怎么减少编程中的 bug?

    [转]http://macshuo.com/?p=1361 怎么减少编程中的 bug? Posted on 2016 年 2 月 17 日 为什么要编程?因为代码没在那里.创造一个世界是如此让人着迷, ...

  7. Flutter实战视频-移动电商-34.列表页_小BUG的修复

    34.列表页_小BUG的修复 当高粱酒的子类没有数据返回的时候就会报错. 解决接口空数据报错的问题 没有数据的时候,给用户一个友好的提示, 我们没有数据的时候还要告诉用户,提示一下他没有数据,在我们的 ...

  8. 在CentOS 6.4中编译安装gcc 4.8.1

    在CentOS 6.4中编译安装gcc 4.8.1 分类: C/C++ Linux/Unix2013-11-28 21:02 1877人阅读 评论(0) 收藏 举报 原文链接:http://www.c ...

  9. CentOS 6.6 中设置Terminal快捷键

    排版比较乱,参见 https://www.zybuluo.com/Jpz/note/144583 CentOS 6.6 中设置Terminal快捷键 Linux开发环境配置 Terminal是Cent ...

随机推荐

  1. Qt框架及模块认识

    小白自工作就接触Qt,一直都在使用Qt5.3.1版本,所以没有经历过大牛们把项目从Qt4程序到Qt5的烦恼,没准以后会碰到.对Qt所有的丰富的API表示惊叹,对于Qt的框架及模块认识也是极为模糊的,文 ...

  2. Why choose Nexiq USB-link 125032 Diesel Truck Diagnose

    Nexiq 125032 usb link is Diesel Truck diagnostic Interface. Nexiq truck scanner can compatible with ...

  3. 用Python实现一个词频统计(词云+图)

    第一步:首先需要安装工具python 第二步:在电脑cmd后台下载安装如下工具: (有一些是安装好python电脑自带有哦) 有一些会出现一种情况就是安装不了词云展示库 有下面解决方法,需看请复制链接 ...

  4. 湘潭邀请赛+蓝桥国赛总结暨ACM退役总结

    湘潭邀请赛已经过去三个星期,蓝桥也在上个星期结束,今天也是时候写一下总结了,这应该也是我的退役总结了~ --------------------------------湘潭邀请赛----------- ...

  5. pinpoint初始化hbase脚本报错

    今天在部署pinpoint的时候,执行创建表语句的脚本,报表已经存在的错误,但是那个hbase数据目录是刚创建的,表肯定是不存在的 <property> <name>hbase ...

  6. day08文件操作的三步骤,基础的读,基础的写,with...open语法,文件的操作模式,文件的操作编码问题,文件的复制,游标操作

    复习 ''' 类型转换 1.数字类型:int() | bool() | float() 2.str与int:int('10') | int('-10') | int('0') | float('-.5 ...

  7. python 环境安装和卸载1

    同事换了新机器,系统从win7变为了win10,因此需要重新安装python环境啦!不废话,直奔主题. A 安装 一.进入python官网  www.python.org 进入downloads-&g ...

  8. 智能化脚本autoit v3的简单了解

    AutoIt v3 是一个类似 BASIC 脚本语言的免费软件, 它设计用于 Windows GUI(图形用户界面) 中进行自动化操作. 利用模拟键盘按键, 鼠标移动和窗口/控件的操作实现自动化任务. ...

  9. code回顾

    Linq return Content("<script>alert('你想说的话');javascript:history.go(-1);</script>&quo ...

  10. html知识点汇总(持续更新中)

    本人从事前端行业三年多,打算从今天开始整理一些关于前端的一些比较经典的知识点,持续更新中...希望能对一些相关知识点有疑问的朋友有一些帮助! HTML篇: 1.常见的行内元素/块级元素/空元素有哪些? ...