'oci cli 설치하기'에 해당되는 글 1건

  1. 2019.01.23 oci cli 설치하기

window7 에서 oci cli 설치


보통 windows 10 에서는 별 문제없이 설치되는 모양이다.


아직 windows7를 사용하는 관계로 windows 7에서는 에러가 발생하여 아래와 같이 진행함.


1. python 설치안되어 있다면,우선 pc에 phthon 3.6 을 www.python.org 로 가서 download 받는다.


-> 원래 phthon 이 설치되어 있지 않으면 설치과정에서 최신버전을 알아서 설치한다고 하는데 실제 해보면 잘 안됨.

-> 굳이 최신버전인 3.7.2 을 설치할 필요없음. 

-> 3.7.2 를 설치후 진행하면 cryptography 관련에러로 설치가 정상적으로 되지 않음.(아직 지원 안하는 듯)


초기 설치화면에서 PATH 추가 부분 체크해주고 NEXT, NEXT 로 설치완료


2. 설치과정 중 visual studio 관련 에러 날시에는... (잘되면 굳이 설치할 필요없다..설치했다가 용량이 커서 다시 지웠음.)


https://visualstudio.microsoft.com/ko 으로 가서


Visual Studio IDE 메뉴에서 community 버전 설치받아서 설치한다. 설치화일 조금 큼..완료되면..


3. cmd 창 실행한다.


아래와 같은 순서로 command 실행.


1. powershell


2. Set-ExecutionPolicy RemoteSigned  


3. powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/oracle/oci-cli/master/scripts/install/install.ps1'))"


과정중 물어보면 그냥 ENTER, ENTER 진행. 


완료됨.


참고 :  linux 인 경우는


bash -c "$(curl -L https://raw.githubusercontent.com/oracle/oci-cli/master/scripts/install/install.sh)"


오라클 사이트 메뉴얼 문서 :


https://docs.cloud.oracle.com/iaas/Content/API/SDKDocs/cliinstall.htm


========================================================


정상설치시 아래와 같은 로그가 기록된다.


C:\Users\jongin>powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubuserc

ontent.com/oracle/oci-cli/master/scripts/install/install.ps1'))"

-- Verifying Python version.

-- Python version 3.6.8 okay.


===> In what directory would you like to place the install? (leave blank to use 'C:\Users\jongin\lib\oracle-cli'):

-- Install directory 'C:\Users\jongin\lib\oracle-cli' is not empty and may contain a previous installation.


===> Remove this directory? (y/N): y

-- Deleted 'C:\Users\jongin\lib\oracle-cli'.

-- Creating directory 'C:\Users\jongin\lib\oracle-cli'.

-- We will install at 'C:\Users\jongin\lib\oracle-cli'.


===> In what directory would you like to place the 'oci.exe' executable? (leave blank to use 'C:\Users\jongin\bin'):

-- The executable will be in 'C:\Users\jongin\bin'.


===> In what directory would you like to place the OCI scripts? (leave blank to use 'C:\Users\jongin\bin\oci-cli-scripts'):

-- The scripts will be in 'C:\Users\jongin\bin\oci-cli-scripts'.

-- Downloading virtualenv package from https://github.com/pypa/virtualenv/archive/15.0.0.tar.gz.

-- Downloaded virtualenv package to C:\Users\jongin\AppData\Local\Temp\tmpcdwmtrn2\15.0.0.tar.gz.

-- Checksum of C:\Users\jongin\AppData\Local\Temp\tmpcdwmtrn2\15.0.0.tar.gz OK.

-- Extracting 'C:\Users\jongin\AppData\Local\Temp\tmpcdwmtrn2\15.0.0.tar.gz' to 'C:\Users\jongin\AppData\Local\Temp\tmpcdwmtrn2'.

-- Copying DLLs into virtualenv.

-- Copying C:\Users\jongin\AppData\Local\Programs\Python\Python36\python3.dll to C:\Users\jongin\lib\oracle-cli\Scripts

-- Copying C:\Users\jongin\AppData\Local\Programs\Python\Python36\python36.dll to C:\Users\jongin\lib\oracle-cli\Scripts

-- Copying C:\Users\jongin\AppData\Local\Programs\Python\Python36\vcruntime140.dll to C:\Users\jongin\lib\oracle-cli\Scripts

-- Executing: ['C:\\Users\\jongin\\AppData\\Local\\Programs\\Python\\Python36\\python.exe', 'virtualenv.py', '--python', 'C:\\Users\\jongin\\AppData\\

Local\\Programs\\Python\\Python36\\python.exe', 'C:\\Users\\jongin\\lib\\oracle-cli']

Already using interpreter C:\Users\jongin\AppData\Local\Programs\Python\Python36\python.exe

Using base prefix 'C:\\Users\\jongin\\AppData\\Local\\Programs\\Python\\Python36'

New python executable in C:\Users\jongin\lib\oracle-cli\Scripts\python.exe

Installing setuptools, pip, wheel...done.

-- Executing: ['C:\\Users\\jongin\\lib\\oracle-cli\\Scripts\\pip', 'install', '--cache-dir', 'C:\\Users\\jongin\\AppData\\Local\\Temp\\tmpcdwmtrn2', '

oci_cli', '--upgrade']

Collecting oci_cli

  Downloading https://files.pythonhosted.org/packages/17/2b/b8f6e1ff421c7dff30349483c665874b91700825dc14c3ccabeeed2b43fd/oci_cli-2.4.41-py2.py3-none-a

ny.whl (2.4MB)

    100% |????????????????????????????????| 2.4MB 4.3MB/s

Collecting retrying==1.3.3 (from oci_cli)

  Downloading https://files.pythonhosted.org/packages/44/ef/beae4b4ef80902f22e3af073397f079c96969c69b2c7d52a57ea9ae61c9d/retrying-1.3.3.tar.gz

Collecting python-dateutil==2.7.3 (from oci_cli)

  Downloading https://files.pythonhosted.org/packages/cf/f5/af2b09c957ace60dcfac112b669c45c8c97e32f94aa8b56da4c6d1682825/python_dateutil-2.7.3-py2.py3

-none-any.whl (211kB)

    100% |????????????????????????????????| 215kB 6.4MB/s

Collecting cryptography==2.1.4 (from oci_cli)

  Downloading https://files.pythonhosted.org/packages/83/5d/87826c818f2a00e1c36e2bb4680bac68198501ba88d6fe56650aac4b314c/cryptography-2.1.4-cp36-cp36m

-win_amd64.whl (1.3MB)

    100% |????????????????????????????????| 1.3MB 4.1MB/s

Collecting six==1.11.0 (from oci_cli)

  Downloading https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.w

hl

Collecting idna<2.7,>=2.5 (from oci_cli)

  Downloading https://files.pythonhosted.org/packages/27/cc/6dd9a3869f15c2edfab863b992838277279ce92663d334df9ecf5106f5c6/idna-2.6-py2.py3-none-any.whl

 (56kB)

    100% |????????????????????????????????| 61kB 3.8MB/s

Collecting pyOpenSSL==17.5.0 (from oci_cli)

  Downloading https://files.pythonhosted.org/packages/79/db/7c0cfe4aa8341a5fab4638952520d8db6ab85ff84505e12c00ea311c3516/pyOpenSSL-17.5.0-py2.py3-none

-any.whl (53kB)

    100% |????????????????????????????????| 61kB 1.6MB/s

Collecting certifi (from oci_cli)

  Downloading https://files.pythonhosted.org/packages/9f/e0/accfc1b56b57e9750eba272e24c4dddeac86852c2bebd1236674d7887e8a/certifi-2018.11.29-py2.py3-no

ne-any.whl (154kB)

    100% |????????????????????????????????| 163kB 2.7MB/s

Collecting configparser==3.5.0 (from oci_cli)

  Downloading https://files.pythonhosted.org/packages/7c/69/c2ce7e91c89dc073eb1aa74c0621c3eefbffe8216b3f9af9d3885265c01c/configparser-3.5.0.tar.gz

Collecting arrow==0.10.0 (from oci_cli)

  Downloading https://files.pythonhosted.org/packages/54/db/76459c4dd3561bbe682619a5c576ff30c42e37c2e01900ed30a501957150/arrow-0.10.0.tar.gz (86kB)

    100% |????????????????????????????????| 92kB 4.9MB/s

Collecting cx-Oracle==6.2.1 (from oci_cli)

  Downloading https://files.pythonhosted.org/packages/0a/1f/f741fa005aec72b8278975a7d47c2ba9f305b5202fec5d15406da82f5d65/cx_Oracle-6.2.1-cp36-cp36m-wi

n_amd64.whl (159kB)

    100% |????????????????????????????????| 163kB 6.0MB/s

Collecting jmespath==0.9.3 (from oci_cli)

  Downloading https://files.pythonhosted.org/packages/b7/31/05c8d001f7f87f0f07289a5fc0fc3832e9a57f2dbd4d3b0fee70e0d51365/jmespath-0.9.3-py2.py3-none-a

ny.whl

Collecting terminaltables==3.1.0 (from oci_cli)

  Downloading https://files.pythonhosted.org/packages/9b/c4/4a21174f32f8a7e1104798c445dacdc1d4df86f2f26722767034e4de4bff/terminaltables-3.1.0.tar.gz

Collecting oci==2.1.4 (from oci_cli)

  Downloading https://files.pythonhosted.org/packages/4c/d6/93a8fc52e4d29488fbf8094fc4b3d7e5d390d4f15fdc1977c323aa3eefcb/oci-2.1.4-py2.py3-none-any.wh

l (1.5MB)

    100% |????????????????????????????????| 1.5MB 4.1MB/s

Collecting click==6.7 (from oci_cli)

  Downloading https://files.pythonhosted.org/packages/34/c1/8806f99713ddb993c5366c362b2f908f18269f8d792aff1abfd700775a77/click-6.7-py2.py3-none-any.wh

l (71kB)

    100% |????????????????????????????????| 71kB 4.5MB/s

Collecting httpsig-cffi==15.0.0 (from oci_cli)

  Downloading https://files.pythonhosted.org/packages/93/f5/c9a213c0f906654c933f1192148d8aded2022678ad6bce8803d3300501c6/httpsig_cffi-15.0.0-py2.py3-n

one-any.whl

Collecting pytz==2016.10 (from oci_cli)

  Downloading https://files.pythonhosted.org/packages/f5/fa/4a9aefc206aa49a4b5e0a72f013df1f471b4714cdbe6d78f0134feeeecdb/pytz-2016.10-py2.py3-none-any

.whl (483kB)

    100% |????????????????????????????????| 491kB 4.7MB/s

Collecting asn1crypto>=0.21.0 (from cryptography==2.1.4->oci_cli)

  Downloading https://files.pythonhosted.org/packages/ea/cd/35485615f45f30a510576f1a56d1e0a7ad7bd8ab5ed7cdc600ef7cd06222/asn1crypto-0.24.0-py2.py3-non

e-any.whl (101kB)

    100% |????????????????????????????????| 102kB 5.1MB/s

Collecting cffi>=1.7; platform_python_implementation != "PyPy" (from cryptography==2.1.4->oci_cli)

  Downloading https://files.pythonhosted.org/packages/2f/85/a9184548ad4261916d08a50d9e272bf6f93c54f3735878fbfc9335efd94b/cffi-1.11.5-cp36-cp36m-win_am

d64.whl (166kB)

    100% |????????????????????????????????| 174kB 3.3MB/s

Collecting pycparser (from cffi>=1.7; platform_python_implementation != "PyPy"->cryptography==2.1.4->oci_cli)

  Downloading https://files.pythonhosted.org/packages/68/9e/49196946aee219aead1290e00d1e7fdeab8567783e83e1b9ab5585e6206a/pycparser-2.19.tar.gz (158kB)


    100% |????????????????????????????????| 163kB 6.4MB/s

Building wheels for collected packages: retrying, configparser, arrow, terminaltables, pycparser

  Building wheel for retrying (setup.py) ... done

  Stored in directory: C:\Users\jongin\AppData\Local\Temp\tmpcdwmtrn2\wheels\d7\a9\33\acc7b709e2a35caa7d4cae442f6fe6fbf2c43f80823d46460c

  Building wheel for configparser (setup.py) ... done

  Stored in directory: C:\Users\jongin\AppData\Local\Temp\tmpcdwmtrn2\wheels\a3\61\79\424ef897a2f3b14684a7de5d89e8600b460b89663e6ce9d17c

  Building wheel for arrow (setup.py) ... done

  Stored in directory: C:\Users\jongin\AppData\Local\Temp\tmpcdwmtrn2\wheels\ce\4f\95\64541c7466fd88ffe72fda5164f8323c91d695c9a77072c574

  Building wheel for terminaltables (setup.py) ... done

  Stored in directory: C:\Users\jongin\AppData\Local\Temp\tmpcdwmtrn2\wheels\30\6b\50\6c75775b681fb36cdfac7f19799888ef9d8813aff9e379663e

  Building wheel for pycparser (setup.py) ... done

  Stored in directory: C:\Users\jongin\AppData\Local\Temp\tmpcdwmtrn2\wheels\f2\9a\90\de94f8556265ddc9d9c8b271b0f63e57b26fb1d67a45564511

Successfully built retrying configparser arrow terminaltables pycparser

Installing collected packages: six, retrying, python-dateutil, idna, asn1crypto, pycparser, cffi, cryptography, pyOpenSSL, certifi, configparser, arro

w, cx-Oracle, jmespath, terminaltables, pytz, oci, click, httpsig-cffi, oci-cli

Successfully installed arrow-0.10.0 asn1crypto-0.24.0 certifi-2018.11.29 cffi-1.11.5 click-6.7 configparser-3.5.0 cryptography-2.1.4 cx-Oracle-6.2.1 h

ttpsig-cffi-15.0.0 idna-2.6 jmespath-0.9.3 oci-2.1.4 oci-cli-2.4.41 pyOpenSSL-17.5.0 pycparser-2.19 python-dateutil-2.7.3 pytz-2016.10 retrying-1.3.3

six-1.11.0 terminaltables-3.1.0


===> Modify PATH to include the CLI and enable tab completion in PowerShell now? (Y/n):

--

-- ** Close and re-open PowerShell to reload changes to your PATH **

-- In order to run the autocomplete script, you may also need to set your PowerShell execution policy to allow for running local scripts (as an Admini

strator run Set-ExecutionPolicy RemoteSigned in a PowerShell prompt)

--

-- Installation successful.

-- Run the CLI with C:\Users\jongin\bin\oci.exe --help



Posted by pat98
이전버튼 1 이전버튼

05-09 04:31
Flag Counter
Yesterday
Today
Total

글 보관함

최근에 올라온 글

달력

 « |  » 2024.5
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 31

최근에 달린 댓글