0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Oracle Instant Client 19.9にはlibclntsh.dylibがないんだよ、というお話

Posted at

環境

macOS Big Sur(11.0.1)
serverless
Python3

問題発生

serverlessのプログラム実行中に以下が発生(長いので改行しています)。

cx_Oracle.clientversion()

cx_Oracle.DatabaseError: DPI-1047: 
 Cannot locate a 64-bit Oracle Client library: 
 "dlopen(libclntsh.dylib, 1): image not found". See 
https://cx-oracle.readthedocs.io/en/latest/user_guide/installation.html
 for help

64bitライブラリを入れてね、ということなので、上記URLに飛んで64bitのリソースがあるところに飛んでダウンロード。

2020/11/15時点では19系は19.9。
ダウンロードして、解凍して、指示通りにリンク……ファイルがない!

サイトの説明に書いてあるバージョン(19.3)にはあるので、それを使うのが良い。
19.9しか見当たらないけど、リンクを細工するとダウンロードできます。

ln -s /opt/oracle/instantclient_19_3/libclntsh.dylib ~/lib/

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?