簡體   English   中英

如何在 R 4.1.3 上安裝 ROracle

[英]How to install ROracle on R 4.1.3

我正在嘗試在 RStudio 中安裝 ROracle package 以便我可以將 R 連接到我的 Z30214FZED78BFCC40 數據庫。 我下載了 zip 文件,但是當我運行時

remotes::install_local("ROracle_1.3-2.tar.gz", repos = NULL, type = "source")

我收到一個錯誤:

ERROR: cannot find Oracle Client. Please set OCI_LIB64 to specify its location.

我的電腦上確實安裝了 Oracle 客戶端。 這可能是一個顯而易見的答案,但我的問題是,如何設置 OCI_LIB64 以識別 Oracle 客戶端在我的 PC 上的位置。 我在 windows 10 和 R 版本 4.1.3 上運行。

看看安裝指南 windows 的步驟如下:

  13.Add the full path of the Instant Client to the environment variables 
     OCI_LIB64 and PATH. 

     The following steps set the variables to the PATH used in this example, 
     c:\myoreclient\instantclient_11_2. 
  1. In Windows Control Panel, select System, then click Advanced system 
     settings.
  2. On the Advanced tab, click Environment Variables. 
  3. Under System variables, create OCI_LIB64 if it does not already exist. 
  4. Set the value of OCI_LIB64 to c:\oreclient\instantclient_11_2. 
  5. Under System variables, edit PATH to include 
     c:\oreclient\instantclient_11_2.

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM