Linux系統LS-PrePost更新
Q:
請問Linux系統LS-PrePost更新步驟?
A:
Instructions to install and run Lsprepost 4.3 on Linux systems
-------------------------------------------------------------
LS-PrePost更新的方法: 基本上是下載新版後蓋掉原來的檔案。注意lspp43這個script檔不要蓋掉即可。
1. Download the lsprepost-4.3-xxxxx.tgz file, xxxxx is the operating
system name
請依作業系統型式,下載所需要的版本.
2. Unzip and untar the lsprepost-4.3-xxxxx.tgz file using the following
command:
使用以下的指令解壓縮lsprepost-4.3-xxxxx.tgz:
tar xvfz lsprepost-4.3-xxxxx.tgz
or
gunzip -c lsprepost-4.3-xxxxx.tgz | tar xvf -
3. A directory lsprepost-4.3-xxxxx will be created, there are 3 files
and 2 sub-directories in this distribution directory:
解壓縮後會產生一個目錄,包含以下相關檔案:
README.txt - This file
lspp43 - a script to run lsprepost 4.3 (主要執行的script檔)
lsprepost - the executable of lsprepost 4.3 (主要執行檔)
lib - subdirectory contains the dynamic runtime libraries(資料庫目錄)
resource - subdirectory contains the help file and other resource
files (其它資料相關目錄)
4. Modify the lspp43 script to set the two environment variables:
更改以下參數:
LSPP_HELPDIR and LD_LIBRARY_PATH with properly path name,
LSPP_HELPDIR與LD_LIBRARY_PATH要指定對應的目錄名稱
in the script, set variable DN to the directory name where the
lsprepost 4.3 distribution is.
設定所對應的資料夾,如:
e.g. DN="/home/pho/lsprepost4.3_centos7"
#!/bin/bash
# modify the following line for your directory name
DN="/home/pho/lsprepost4.3_centos7"
export LSPP_HELPDIR=$DN/resource/HelpDocument
export LD_LIBRARY_PATH=$DN/lib:$LD_LIBRARY_PATH
$DN/lsprepost $*
5. Put file lspp43 in a directory that is in your default search path.
將lspp43放置於預設可以搜尋到的路徑,一般是在系統裡面加上環境變數path加path,到/etc/profile文件的最下面,新增一行指令,指令如下(必須區分大小寫):
export PATH=$PATH:/usr/local/LS-PrePost4.3