Re: apache22 autoheader259: not found
※ 引述《goaway@nowhere.not (老音學生)》之銘言:
> > 試試 rehash 一下(使用 sh/bash 的話 hash -r)
> 恕晚輩學藝不精, 看不懂. - btw, 我是用 bash2
Edward 他意思應該是指 shell 要執行指令的話,
既然你用的是 bash 那就不必了,
而且 port 在編譯時, 並不必理會所謂 shell cache 的問題
http://www.freebsd.org/doc/zh_TW/books/handbook/ports-using.html
<quote>
Note: 有些 shell 會依據 $PATH 環境變數的路徑,
把那些路徑的執行檔 cache 起來,來加速搜尋執行檔。
如果你用的是這類的 shell,
那麼在裝完 port 後需要打 rehash 指令,才能執行新裝的執行檔,
而 rehash 指令可以在 tcsh 之類的 shell 上使用,
若是 sh 的話,則是 hash -r。詳情請參閱你所使用的 shell 相關文件。
</quote>
> (少數狀況 - 譬如 sendmail, 想特地留下 work 參考,或隨時改 cf 內之 mc.. , 才會要先 make clean 後才再 make reinstall )
> 因 make reinstall 不成,就留下 work, 故, 之前先 clean 一下才再 reinstall 云云...
1.發文方面,麻煩注意一下,謝謝...
http://www.freebsd.org/doc/zh_TW/articles/mailing-list-faq/etiquette.html
2.改設定檔(比如 sendmail 的 .cf 那些)
通常是不必在 source code 內改好再重裝
不過 sendmail 我太久沒用了,設定語法早忘光了...
現在大多人都用 Postfix 當 MTA 了
自從用了 Postfix 簡單多了,設定、其他 3rd party 的軟體資源也是很多
堅持用問題多多的不定時炸彈(像是 sendmail),就如同錯誤的政策
3.你都不 clean 的壞處在於:
port 每次在編譯之前,並不會確認你的 work 目錄是否有清過,
而且 work 目錄內通常會有以 . 開頭的檔案,
那些檔案是告訴 port 目前已經進行到哪一階段去了
假設你這 work 目錄是 abc 這 port 的昔日 1.0 版當時解壓、編譯所產生的
那麼假設你 port tree 已經更新了,而此時的 abc 這個 port 也升級到 2.0 了
那麼若你都不清 work 的話,就會造成升級、重裝的失敗
> 再請教,不知 此時的 make reinstall 跟 make install 有何差別?
如果你不習慣用 portupgrade 的話,
那麼建議改用 make deinstall clean ; make install clean
原因在於: reinstall 等於 deinstall install,
也就是只做 deinstall 再做 install
而 make deinstall clean ; make install clean 這個,我逐一介紹:
1) make deinstall clean 等於『先 make deinstall 再 make clean』
此時 make clean 所清的是你以前壞習慣所遺留的禍種
2) make install clean 等於是『先 make install 再 make clean』
此時 make clean 所清的是這次 make 所遺留的 work 目錄
3) 用 ; 符號則是把這兩段接在一起,前面的指令弄完之後,就會進行後面的
--
靜中見真境,淡中識本然
--
◢◣ - ● -
◢██◣◢◣ ` Origin: 宜蘭資教.山水蘭陽 telnet://yilan.twbbs.org
~~ ﹌ ~﹌ ﹉ From : 59-117-11-238.dynamic.hinet.net
討論串 (同標題文章)
完整討論串 (本文為第 6 之 8 篇):
FreeBSD 近期熱門文章
PTT數位生活區 即時熱門文章