[CentOS 7] TexLive2017中kpsewhich Bug的修复
使用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的修复的更多相关文章
- duilib combo控件,当鼠标滚动时下拉列表自动关闭的bug的修复
转载请说明出处,谢谢~~ 群里有朋友提到了使用Combo控件时,当下拉列表出现,此时鼠标滚轮滚动,下拉列表就自动消失了.我看了一下源码,这个bug的修复很简单. CComboUI控件被单击时创建CCo ...
- 写代码的心得,怎么减少编程中的 bug?
遭遇 bug 的时候,理性的程序员会说:这个 bug 能复现吗? 自负型:这不可能,在我这是好好的. 经验型:不应该,以前怎么没问题? 幻想型:可能是数据有问题. 无辜型:我好几个星期都没碰这块代码了 ...
- 逆向实战第一讲,寻找OllyDbg调试工具的Bug并修复
逆向实战第一讲,寻找OllyDbg调试工具的Bug并修复 首先我们要知道这个OD的Bug是什么. 我们调试一个UNICODE的窗口,看下其窗口过程. 一丶查看OllyDbg 的Bug 1.1spy++ ...
- 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 ...
- WinForm IME输入法BUG完美修复
本文来自http://hi.baidu.com/wingingbob/item/a2cb3fc0fe3bd1bb0d0a7b5b <WinForm IME输入法BUG测试>里,我描述了在. ...
- [转] 怎么减少编程中的 bug?
[转]http://macshuo.com/?p=1361 怎么减少编程中的 bug? Posted on 2016 年 2 月 17 日 为什么要编程?因为代码没在那里.创造一个世界是如此让人着迷, ...
- Flutter实战视频-移动电商-34.列表页_小BUG的修复
34.列表页_小BUG的修复 当高粱酒的子类没有数据返回的时候就会报错. 解决接口空数据报错的问题 没有数据的时候,给用户一个友好的提示, 我们没有数据的时候还要告诉用户,提示一下他没有数据,在我们的 ...
- 在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 ...
- CentOS 6.6 中设置Terminal快捷键
排版比较乱,参见 https://www.zybuluo.com/Jpz/note/144583 CentOS 6.6 中设置Terminal快捷键 Linux开发环境配置 Terminal是Cent ...
随机推荐
- 微服务化的大坑之一:当dubbo神器碰上共用注册中心和错误的暴露接口
dubbo是国内用比较多的微服务化系统,非侵入(意思就是说不用自己写代码,把xml配置好就可以用了,这个xml的引用注解就注在springboot的开启main类里面就可以了),提供好用的均衡和容错机 ...
- Spring 极速集成注解 redis 实践
Redis 做为基于内存的 Key-Value 数据库,用来做缓存服务器性价比相当高. 官方推出的面向 Java 的 Client Jedis,提供了很多接口和方法,可以让 Java 操作使用 Red ...
- 基础JAVA程序设计(多个类与方法的实现2)
设计一个类代表二维空间的一个点(Point),要求:两个成员变量:x坐标和y坐标. 设计一个类代表二维空间的一个圆(Circle),要求:两个成员变量:一个是圆心,一个是半径:提供计算圆面积的方法:提 ...
- VMware虚拟机扩展Ubuntu系统磁盘空间
1 首先给虚拟机扩容 虚拟机->设置->硬盘->实用程序->扩展磁盘容量 2 启动Ubuntu系统 2.1 打开终端安装gparted,sudo apt-get install ...
- 面试小记---java基础知识
**static 和 final 的理解** static:是静态变量修饰符,修饰的是全局变量,所以对象是共享的,在开始类设计的初期就分配空间. final:声明式属性,方法,类.分别表示属 ...
- ojdbc包加入本地仓库
mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=11.2.0 -Dpackaging=jar - ...
- ajax的一些相关
1.AJAX = Asynchronous(异步的) JavaScript and XML AJAX是能不刷新整个网页的前提下,更新内容.通过少量的数据交换,达成局部页面刷新的效果. 而form表单提 ...
- 解决Ubuntu无法通过ssh远程登录问题
1. 安装 open ssh: sudo apt-get install ssh sudo apt-get install openssh-server 2. 编辑配置文件,允许以 root 用户通 ...
- 深入浅出ES6:不定参数和默认参数
不定参数 我们通常使用可变参函数来构造API,可变参函数可接受任意数量的参数.例如,String.prototype.concat方法就可以接受任意数量的字符串参数.ES6提供了一种编写可变参函数的新 ...
- linux 添加环境变量
You have to edit three files to set a permanent environment variable as follow: ~/.bashrc When you o ...