티스토리 뷰

개발

ONOS 설치 이슈 7899

koreatech 2024. 7. 3. 17:23

ONOS를 설치하던 중 

https://github.com/bazelbuild/bazel/issues/7899

 

incompatible_use_python_toolchains: The Python runtime is obtained from a toolchain rather than a flag · Issue #7899 · bazelbu

Flag: --incompatible_use_python_toolchains Available since: 0.25 Will be flipped in: 0.27 Feature tracking issue: #7375 FAQ (common problems) I'm getting Python 2 vs 3 errors This flag fixes #4815 ...

github.com

다음과 같은 이슈가 발생하였다.

 

이는 파이썬 2가 설치되지 않아 발생했던 오류여서 아래와 같은 과정을 통해 해결하였다.

# 파이썬 2를 설치하는 명령어
sudo apt update
sudo apt install python2

# 파이썬 2와 3을 구분하기 위함
sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 1
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 2

# 파이썬 버전을 변경하는 명령어
sudo update-alternatives --config python

파이썬 2와 3이 동시에 설치되어있을 때 버전을 바꾸는 명령어이다.

 

There are 2 choices for the alternative python (providing /usr/bin/python).

  Selection    Path                Priority   Status
------------------------------------------------------------
* 0            /usr/bin/python3     2         auto mode
  1            /usr/bin/python2     1         manual mode
  2            /usr/bin/python3     2         manual mode

Press <enter> to keep the current choice[*], or type selection number:

 

 

본래 파이썬 버전이 python3이었을 때, 이를 python2로 바꾸고 싶다면 1을 누르면 된다.

 

ONOS를 설치하는 과정은 아래 블로그 글을 참고하였다.

https://leeye51456.tistory.com/4

 

Ubuntu에서 ONOS 빌드하고 실행하기

여기서는 Ubuntu에서 ONOS를 빌드하고 실행하는 방법을 다룬다. ONOS 빌드 Dependency 설치 ONOS는 버전에 따라 빌드 도구가 다르다. onos-build로 빌드하면, 1.7까지는 Maven, 1.8부터 1.13까지는 Buck, 1.14부터는

leeye51456.tistory.com


번외

야호 성공했다

 

'개발' 카테고리의 다른 글

[ Oracle Cloud | Web ] IP에 도메인 등록  (0) 2024.07.16
[ Oracle Cloud ] MySQL 서버 세팅  (0) 2024.07.13
[Web] Thymeleaf  (0) 2024.07.03
[Markup] CDATA 관련  (0) 2024.07.03
[Web] JSP vs Servlet  (0) 2024.07.02
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2025/04   »
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30
글 보관함