0
1

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.

Ubuntu 20.04 oci8 for phpインストールエラーの対処

Posted at

##はじめに
Ubuntu 18.04⇒Ubuntu 20.04のバージョンアップに伴い、phpが7.2⇒7.4にバージョンアップされたので、phpにoci8の設定をしたときに発生したときの対処メモ

##エラー内容
https://gist.github.com/Yukibashiri/cebaeaccbe531665a5704b1b34a3498e
を参考に、インストールをすすめたが、

pecl install oci8

で以下のエラーが発生

In file included from /tmp/pear/temp/oci8/oci8.c:49:
/tmp/pear/temp/oci8/php_oci8_int.h:58:10: fatal error: oci.h: No such file or directory
   58 | #include <oci.h>
      |          ^~~~~~~
compilation terminated.
make: *** [Makefile:194: oci8.lo] Error 1
ERROR: `make' failed

##対処方法
https://stackoverflow.com/questions/37080443/error-oci-h-no-such-file-or-directory
を参考に、以下を実行で解決

sudo C_INCLUDE_PATH=/usr/include/oracle/12.2/client64 pecl install oci8
0
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?