ETOOBUSY 🚀 minimal blogging for the impatient
Installing DBD::Oracle seems easy.
I still have to use it properly though, so I might be deluding myself.
Anyway, back to the installation: some libraries and associated header files will be needed. Thankfully, they are both available as part of the Instant Client.
- Basic Package (ZIP), which contains the libraries (local copy here), and
- SDK Package (ZIP), which contains the stuff needed for compiling DBD::Oracle against those libraries (local copy here).
# Basic Package (ZIP) curl -LO 'https://download.oracle.com/otn_software/linux/instantclient/instantclient-basic-linuxx64.zip' # SDK Package (ZIP) curl -LO 'https://download.oracle.com/otn_software/linux/instantclient/instantclient-sdk-linuxx64.zip'
Both archives (which should refer to the same version if they are downloaded at the same time) should be extracted in the same directory. Example:
# Extract the basic package unzip instantclient-basic-linuxx64.zip # Extract the addiitonal header files unzip instantclient-sdk-linuxx64.zip
At this point, we’re left with a sub-directory (something like
instantclient_21_4, the actual name will change in time as the package
is updated) with everything needed inside. Let’s set it in the
ORACLE_HOME environment variable then:
We are now ready to install DBD::Oracle, e.g. like this:
printf %s\\n "requires 'DBD::Oracle';" >> cpanfile carton
See Installing Perl Modules for the details and other alternatives.
That’s all folks!