본문으로 건너뛰기

[AIX] Could not load program: Cannot run a 64-bit program until the 64-bit environment has been configured.

AIX maintenance mode 셸에서 64-bit 프로그램 실행 오류로 ls 등 명령이 동작하지 않을 때 /etc/methods/cfg64로 해결하는 방법입니다.

요약

  • AIX를 maintenance mode로 부팅한 셸에서 Cannot run a 64-bit program 오류가 나면 /etc/methods/cfg64를 실행해 64-bit 환경을 구성하면 됩니다.
  • cfg64 실행 후에는 오류가 났던 ls 같은 명령이 정상 동작합니다.

Could not load program: Cannot run a 64-bit program until the 64-bit environment has been configured.

aix maintenance mode 로 부팅 진행 후, shell 환경에서 아래와 같이 Error 가 발생하면서
일부 명령어들이 정상 작동 하지 않습니다.

cf. Booting AIX into Maintenance Mode

Error 내용

# ls
 Could not load program ls: Cannot run a 64-bit program until the 64-bit
 environment has been configured. See the system administrator.

해결 방법

# /etc/methods/cfg64

해결 이후

# ls 
 test.log
 test.sh
 .profile
 ... < 하략 >

자주 묻는 질문

AIX maintenance mode에서 ls 실행 시 Cannot run a 64-bit program 오류가 나는 이유는 무엇인가요?

64-bit 환경이 아직 구성되지 않았기 때문입니다. maintenance mode 셸에서 /etc/methods/cfg64를 실행하면 64-bit 환경이 구성되어 명령이 정상 동작합니다.

Could not load program 오류를 해결하는 명령은 무엇인가요?

/etc/methods/cfg64입니다. 실행 후 ls를 다시 실행하면 파일 목록이 정상적으로 출력됩니다.