甲骨文与码头机上的PHP
我正在尝试为我的Laravel应用程序安装Oracle数据库驱动器。我正在使用Laravel Sail提供Docker。
问题是Oracle驱动程序无法构建。此消息发生:
/usr/bin/ld: skipping incompatible /opt/oracle/instantclient_19_14/libclntsh.so when searching for -lclntsh
/usr/bin/ld: cannot find -lclntsh
/usr/bin/ld: skipping incompatible /opt/oracle/instantclient_19_14/libclntsh.so when searching for -lclntsh
collect2: error: ld returned 1 exit status
make: *** [Makefile:227: oci8.la] Error 1
ERROR: `make' failed
我的dockerfile: https://pastebin.com/rtppwt1xk
我正在使用MacBook Pro(V 12带M1)
I'm trying to install an Oracle database drive for my Laravel application. I'm using Laravel Sail to provide Docker.
The problem is that the Oracle driver can't build. This message occurs:
/usr/bin/ld: skipping incompatible /opt/oracle/instantclient_19_14/libclntsh.so when searching for -lclntsh
/usr/bin/ld: cannot find -lclntsh
/usr/bin/ld: skipping incompatible /opt/oracle/instantclient_19_14/libclntsh.so when searching for -lclntsh
collect2: error: ld returned 1 exit status
make: *** [Makefile:227: oci8.la] Error 1
ERROR: `make' failed
My dockerfile: https://pastebin.com/RTPWt1XK
I'm using MacBook Pro (v. 12 with M1)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用Linux ARM 使用 Instant客户端( instantclient-basic-linux.arm64-19.10.0.0.0.0.0 )和 php 8.2
此
dockerfile
dockerfile 对我有用:Using the Instant Client for Linux ARM (instantclient-basic-linux.arm64-19.10.0.0.0) and PHP 8.2
This
dockerfile
works for me: