0
내 리눅스 박스에서 파이썬 버전을 업그레이드하려고합니다.요리사의 요리법을 통해 리눅스에 python2.7 설치
[[email protected] ~]# python --version
Python 2.6.6
[[email protected] ~]#
내가 실행 :
yum install python27
이 후
파이썬 2.7 버전을 반영하기 위해, 나는 실행하고 : 현재 세션에 대한scl enable python27 bash
이
[[email protected] ~]# python --version
Python 2.7.8
[[email protected] ~]#
을주고 내가 쓸 때
# install python27 package
yum_package 'python27' do
action :install
end
# enable python27 bash
execute 'python27_bash' do
command 'scl enable python27 bash'
end
내가 노드에서이 요리 책을 호출하고 있지만 현재 세션에 대한 python2.7로 업그레이드하지 : 요리사의 요리 책, 나의 조리법은 다음과 같습니다.
chef-client의 출력을 확인하십시오. – AlexD
나는 실행 목록에 cookbook을 추가하고 "chef-client"라고합니다. 하지만 행운은 없습니다. – joy