find 是當場讀取磁碟中的資料並列出符合查詢的內容。locate 則是從以建立的 db 中查詢,所以速度快很多。
不過 db 不是隨時都是新的,要更新時請下指令:/usr/libexec/locate.updatedb
軟體開發、伺服器和生活瑣事
find 是當場讀取磁碟中的資料並列出符合查詢的內容。locate 則是從以建立的 db 中查詢,所以速度快很多。
不過 db 不是隨時都是新的,要更新時請下指令:/usr/libexec/locate.updatedb
今天資訊處 FreeBSD 上面的 Latex 又掛了,原因不明。
我怎麼覺得 teTex 套件上面的東西不太穩,上次裝好以後一直不能用,但是一個 apache restart 就又好了,然後壞掉的時候也是不聲不響、什麼設定都沒有改就這樣突然不能用了。
目前只在紀錄檔中看到幾段錯誤訊息:
This is dvips(k) 5.95a Copyright 2005 Radical Eye Software (www.radicaleye.com)
' TeX output 2008.01.19:1617' -> 72f972c15e0209bc81b31a2c2d380171.ps
. [1]
convert: Postscript delegate failed `72f972c15e0209bc81b31a2c2d380171.ps': No such file or directory.
convert: missing an image filename `72f972c15e0209bc81b31a2c2d380171.png'.
identify: unable to open image `72f972c15e0209bc81b31a2c2d380171.png': No such file or directory.
identify: unable to open file `72f972c15e0209bc81b31a2c2d380171.png'.
[Sat Jan 19 16:17:07 2008] [error] [client 140.134.23.119] PHP Warning: copy(72f972c15e0209bc81b31a2c2d380171.png) [function.copy]: failed to open stream: No such file or directory in /home/aleiku/public_html/dokuwiki/lib/p
lugins/latex/class.latexrender.php on line 271, referer: http://oit.no-ip.org/~aleiku/dokuwiki/doku.php
[Sat Jan 19 16:17:07 2008] [error] [client 140.134.23.119] PHP Warning: unlink(/tmp/72f972c15e0209bc81b31a2c2d380171.png) [ href='function.unlink'>function.unlink]: No such file or directory in /home/aleiku/public_html/dokuwiki/lib/plugins/latex
/class.latexrender.php on line 293, referer: http://oit.no-ip.org/~aleiku/dokuwiki/doku.php
This is dvips(k) 5.95a Copyright 2005 Radical Eye Software (www.radicaleye.com)
' TeX output 2008.01.19:1617' -> d991288df8da39d296ee19c0485afb54.ps
. [1]
convert: Postscript delegate failed `d991288df8da39d296ee19c0485afb54.ps': No such file or directory.
convert: missing an image filename `d991288df8da39d296ee19c0485afb54.png'.
identify: unable to open image `d991288df8da39d296ee19c0485afb54.png': No such file or directory.
identify: unable to open file `d991288df8da39d296ee19c0485afb54.png'.
[Sat Jan 19 16:17:29 2008] [error] [client 140.134.23.119] PHP Warning: copy(d991288df8da39d296ee19c0485afb54.png) [function.copy]: failed to open stream: No such file or directory in /home/aleiku/public_html/dokuwiki/lib/p
lugins/latex/class.latexrender.php on line 271, referer: http://oit.no-ip.org/~aleiku/dokuwiki/doku.php
[Sat Jan 19 16:17:29 2008] [error] [client 140.134.23.119] PHP Warning: unlink(/tmp/d991288df8da39d296ee19c0485afb54.png) [ href='function.unlink'>function.unlink]: No such file or directory in /home/aleiku/public_html/dokuwiki/lib/plugins/latex
/class.latexrender.php on line 293, referer: http://oit.no-ip.org/~aleiku/dokuwiki/doku.php
吃完飯再看看到底是哪個套件爆炸,想辦法復原。看來這個週末的假期又泡湯了。
dmesg:
CPU: Intel(R) Xeon(R) CPU E5335 @ 2.00GHz (1995.01-MHz K8-class CPU)
Origin = "GenuineIntel" Id = 0x6fb Stepping = 11
Features=0xbfebfbff
Features2=0x4e33d
AMD Features=0x20100800
AMD Features2=0x1
Cores per package: 4
usable memory = 2134093824 (2035 MB)
avail memory = 2059395072 (1963 MB)
ACPI APIC Table:
FreeBSD/SMP: Multiprocessor System Detected: 8 CPUs
cpu0 (BSP): APIC ID: 0
cpu1 (AP): APIC ID: 1
cpu2 (AP): APIC ID: 2
cpu3 (AP): APIC ID: 3
cpu4 (AP): APIC ID: 4
cpu5 (AP): APIC ID: 5
cpu6 (AP): APIC ID: 6
cpu7 (AP): APIC ID: 7
time make -j16 buildworld KERNCONF=MONS
>>> World build completed on Fri Jan 4 02:37:11 CST 2008
--------------------------------------------------------------
4576.008u 22291.090s 1:14:39.80 599.7% 5049+1106k 14082+8301io 3958pf+0w
有時候 pkg_delete 會因為 ports 底下有其他關連的套件,系統會不讓你刪除。
> pkg_delete teTeX-base-3.0_12
pkg_delete: package 'teTeX-base-3.0_12' is required by these other packages
and may not be deinstalled:
cm-super-0.3.3_1
dvipsk-tetex-5.95a_2
xdvik-tetex-22.84.10_1
加上 -r 參數會讓 pkg_delete 一起將這些有關連的 ports 一起刪除。