MacOS의 바이너리에서 C++용 OR-도구 설치
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
소개
이 가이드에서는 MacOS에 C++용 OR 도구를 설치하는 방법을 설명합니다.
이 도움말이 다른 MacOS 변형에서도 작동할 수 있지만,
다음 요구사항을 충족하는 머신에서만 테스트했습니다.
- MacOS 13.0.1 (Ventura) Intel 64비트 (x86_64)
- MacOS 13.0.1 (Ventura) M1 (arm64)
기본 요건
다음 섹션에서는 OR 도구 설치를 위한 기본 요건을 설명합니다.
Xcode 명령줄 도구를 설치해야 합니다. 이렇게 하려면
/Applications/Utilities/
에 있는 터미널을 열고 다음을 입력합니다.
xcode-select --install
'설치'를 클릭하여 Xcode 명령줄 도구를 다운로드하고 설치합니다. 필요하지 않음
'Xcode 가져오기'로 이동합니다 다운로드할 수 있습니다. 인터넷 연결이 느린 경우
몇 분 정도 걸릴 수 있습니다
Xcode 명령줄 도구가 성공적으로 설치되었는지 확인합니다.
xcode-select -p
다음과 같이 표시됩니다.
/Library/Developer/CommandLineTools
다음 단계에 따라 C++용 OR 도구 라이브러리를 설치합니다.
시스템의 바이너리 배포를 다운로드하고 추출합니다.
설치 유효성 검사
C++ 설치를 테스트하려면 터미널 창을 열고
바이너리 배포를 압축 해제한 디렉터리입니다. 그런 다음
다음 명령어를 실행합니다.
make test
이렇게 하면 여러 가지 OR 도구에 대한 예시가 실행됩니다. 모든 예시가
성공적으로 배포되면
OR 도구 시작하기
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-08-22(UTC)
[null,null,["최종 업데이트: 2024-08-22(UTC)"],[[["\u003cp\u003eThis guide provides step-by-step instructions for installing OR-Tools for C++ on MacOS 13.0.1 (Ventura), specifically for Intel 64-bit and M1 architectures.\u003c/p\u003e\n"],["\u003cp\u003eBefore installing OR-Tools, ensure you have Xcode Command Line Tools installed by running \u003ccode\u003excode-select --install\u003c/code\u003e in the Terminal.\u003c/p\u003e\n"],["\u003cp\u003eDownload the appropriate OR-Tools binary distribution for your system (Intel or M1) from the provided links and extract it.\u003c/p\u003e\n"],["\u003cp\u003eValidate your OR-Tools installation by navigating to the extracted directory in the terminal and running the command \u003ccode\u003emake test\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eUpon successful installation and validation, you can proceed to utilize OR-Tools for your C++ projects.\u003c/p\u003e\n"]]],["To install OR-Tools for C++ on MacOS, first install Xcode Command Line Tools by running `xcode-select --install` in the terminal and verifying with `xcode-select -p`. Next, download and extract the OR-Tools binary distribution for either MacOS Intel or M1. Finally, validate the installation by navigating to the extracted directory in the terminal and running `make test`. Successful completion indicates OR-Tools is ready for use.\n"],null,["# Installing OR-Tools for C++ from Binary on MacOS\n\nIntroduction\n------------\n\nThis guide explains how to install OR-Tools for C++ on MacOS.\n\nAlthough these instructions might also work on other MacOS variants, we\nhave only tested them on machines meeting the following requirements:\n\n\n- MacOS 13.0.1 (Ventura) Intel 64-bit (x86_64)\n- MacOS 13.0.1 (Ventura) M1 (arm64)\n\n\u003cbr /\u003e\n\nPrerequisites\n-------------\n\nThe following sections describe the prerequisites for installing OR-Tools.\n\n### Xcode Command Line Tools\n\nYou must install the *Xcode Command Line Tools* . To do so, open the\nTerminal, found in `/Applications/Utilities/`, and enter: \n\n xcode-select --install\n\nClick \"Install\" to download and install Xcode Command Line Tools. You don't need\nto \"Get Xcode\" from the App Store. If you have a slow Internet connection, it\nmay take many minutes.\n\nVerify that you've successfully installed Xcode Command Line Tools: \n\n xcode-select -p\n\nYou should see: \n\n /Library/Developer/CommandLineTools\n\nInstalling OR-Tools\n-------------------\n\nTake the following steps to install the OR-Tools library for C++:\n\nDownload and extract the binary distribution for your system:\n\n\n- [MacOS Intel](https://github.com/google/or-tools/releases/download/v9.12/or-tools_x86_64_macOS-15.3.1_cpp_v9.12.4544.tar.gz)\n- [MacOS M1](https://github.com/google/or-tools/releases/download/v9.12/or-tools_arm64_macOS-15.3.1_cpp_v9.12.4544.tar.gz)\n\n\u003cbr /\u003e\n\nValidate your installation\n--------------------------\n\nTo test your C++ installations, open a terminal window and navigate to\nthe directory where you unpacked the binary distribution. Then enter the\nfollowing command:\n\n\n make test\n\n\u003cbr /\u003e\n\nThis runs a selection of examples for OR-Tools. If all the examples run\nsuccessfully, you are ready to\n[get started with OR-Tools](../../introduction/cpp)."]]