728x90

AIX용 Informix C-ISAM을 기본 설치 디렉토리인 /usr에 설치할 때 발생하는 오류입니다.

스크립트상 오류인지 /usr 디렉토리에 라이브러리를 설치하지 못하도록 한 것인지는 정확히 모르겠습니다만 

다른 디렉토리로는 잘 설치됩니다.

현재까지 확인한 결과로는 7.26.FC2, 7.26.FC3 버전에서 문제가 있었습니다.


./installisam (설치 스크립트 실행)


....


You may specify a target location for these files other than "/usr"

at this time if you so desire.  Do you wish to change the target

location for the directories?


Enter Y to change target directory or RETURN to continue.

(여기서 Y 옵션을 선택하면 디렉토리를 지정하여 설치할 수 있습니다. 엔터를 입력하면 /usr에 설치합니다.)


The default target directory of /usr will be used.

Moving Binaries to /usr/bin

./installisam[190]: test: 0403-004 Specify a parameter with this command.

./installisam[194]: test: 0403-004 Specify a parameter with this command.

Making

Usage: mkdir [-p] [-m mode] Directory ...

Usage: chmod [-R] [-f] [-h] {u|g|o|a ...} {+|-|=} {r|w|x|X|s|t ...} File ...

        chmod [-R] [-f] [-h] OctalNumber File ...

        Changes the permission codes for files or directories.

Moving Libraries to

Usage: mv [-I] [-i | -f] [-E{force|ignore|warn}] [--] src target

   or: mv [-I] [-i | -f] [-E{force|ignore|warn}] [--] src1 ... srcN directory

chmod: *lib*isam*.*: A file or directory in the path name does not exist.

chmod: llib-lisam: A file or directory in the path name does not exist.

chmod: *libifisam*.s*: A file or directory in the path name does not exist.

ar: 0707-100 /*lib*isam*.a does not exist.

ranlib: 0654-601 Execution of ar failed

Usage: ranlib [-t] [-X {32|64|32_64}] [--] file ...

ar: 0707-100 /libisamnls.a does not exist.

ranlib: 0654-601 Execution of ar failed

Usage: ranlib [-t] [-X {32|64|32_64}] [--] file ...

Moving Headers to /usr/include

Moving Localization files to /usr/gls


C-ISAM Installation Complete.


설치하는 과정에서 라이브러리(lib) 파일은 복사가 되지 않습니다.

installisam 스크립트를 살펴보면 라이브러리 경로가 지정되어 있지 않습니다.


BIN='bcheck dblog glfiles'

BINDIR='/usr/bin'


LIB='*lib*isam*.* llib-lisam'

SHLIB='*libifisam*.s*'

LIBDIR=''


INCL='isam.h decimal.h'

INCLDIR='/usr/include'


GLS='gls'

GLSDIR='/usr'


기본적으로 Informix C-ISAM을 설치하면 다음 네 개의 디렉토리에 파일이 설치가 됩니다.

bin

lib

include

gls


설치시 지정한 디렉토리가 만약에 /home/informix/cisam 이라고 한다면 각각 다음 위치에 설치 될 것입니다.

/home/informix/cisam/bin

/home/informix/cisam/lib

/home/informix/cisam/include

/home/informix/cisam/gls



해결책 ① 설치 스크립트인 installisam을 다음과 같이 수정하는 방법이 있습니다.

LIBDIR='' → LIBDIR='/usr/lib'


해결책 ② 설치 수행 중에 설치 디렉토리를 /usr로 지정하는 방법이 있습니다.


You may specify a target location for these files other than "/usr"

at this time if you so desire.  Do you wish to change the target

location for the directories?


Enter Y to change target directory or RETURN to continue.

Y (디렉토리를 변경하려면 Y를 입력합니다.)

Enter new target directory.

/usr (설치할 디렉토리 위치 /usr을 지정합니다.)

You have selected /usr as the new target directory.

If this is correct enter Y.

Y (최종 확인합니다.)


Moving Binaries to /usr/bin

Moving Libraries to /usr/lib

Moving Headers to /usr/include

Moving Localization files to /usr/gls


C-ISAM Installation Complete.


③ 라이브러리 파일을 직접 복사합니다.

압축을 해제하면 다음 파일이 있습니다. 직접 /usr/lib 디렉토리에 복사,이동해도 됩니다.


libifisam.a

libifisam.so

libifisamx.so

libisam.a

libisamnls.a

llib-lisam



내용을 가져가실때는 출처를 명시해주시기 바랍니다.

728x90

+ Recent posts