当前位置:网站首页>Xampp is used under M1 chip, and the installation extension error
Xampp is used under M1 chip, and the installation extension error
2022-06-11 02:31:00 【One leaf boat 2021】
The previous development environment diagram is simple , Have been using the XAMPP, But I switched to... A few days ago Mac Mini , M1 After the chip , Found after installing extensions , Always prompt :
PHP Warning: PHP Startup: Unable to load dynamic library 'swoole'
(tried: /Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20210902/swoole (dlopen(/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20210902/swoole, 0x0009):
tried: '/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20210902/swoole' (no such file), '/usr/local/lib/swoole' (no such file), '/usr/lib/swoole' (no such file)), /Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20210902/swoole.so (dlopen(/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20210902/swoole.so, 0x0009):
tried: '/Applications/XAMPP/xamppfiles/lib/php/extensions/no-debug-non-zts-20210902/swoole.so' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/usr/local/lib/swoole.so' (no such file), '/usr/lib/swoole.so' (no such file))) in Unknown on line 0The general problem is ,XAMPP It uses X86 How to compile , If we download swoole Or after other extensions , The default is ARM Compiled in the same way , The compiled so file , There is no way to load into php in .
After looking for information and trying on the Internet , The final solution is to add arch -x86_64
resolvent :
/Applications/XAMPP/bin/phpize
./configure --with-php-config=/Applications/XAMPP/bin/php-config
arch -x86_64 make
arch -x86_64 sudo make install边栏推荐
- How to guarantee the data quality of data warehouse?
- Analysis of common ADB commands
- Secret
- Customized redistemplate in redis
- SQL | external connection
- Talk about an annotation implementation interface retry
- 常见漏洞的防御措施整理
- String operation methods: replace, delete and split strings
- Cyclodextrin metal organic framework( β- Cd-mof) loaded with dimercaptosuccinic acid / emodin / quercetin / sucralose / diflunisal / omeprazole (OME)
- 查看Redis内数据,除了命令行和客户端,你还有第三种选择
猜你喜欢

企业展厅设计能为企业带来什么?

What do you know about the set class? Soul questions from Volume I

Jetpack Compose Scaffold和BottomAppBar(底部导航)

Technology sharing | quick intercom, global intercom

Unity HTC and Pico are the same

Shader of double sided material

扁平数据转tree与tree数据扁平化

C language principle explanation and code implementation of scalable / reduced thread pool

SQL | 返回顾客名称和相关订单号以及每个订单的总价
![[3.delphi common components] 6 scroll bar](/img/55/891e56de4500a9128ac89e3c5b1721.jpg)
[3.delphi common components] 6 scroll bar
随机推荐
Penetration test - security service system +owasp top 10
Project records
【无标题】
SQL | external connection
Secret
Unity camera camera about layer mask cullingmask settings
CRS-4544 & ORA-09925
软件测试是否需要掌握编程能力
SQL | 返回顾客名称和相关订单号以及每个订单的总价
Everything实现快速搜索的原理
Kotlin let方法
Epoll principle and Application & ET mode and lt mode
Ortele has obtained three rounds of financing nine months after its establishment, and hard discount stores have found new ways to grow?
Why can some programmers get good offers with average ability?
Unity serial port communication
[3.delphi common components] 8 dialog box
Software testing interview reply: the technical side is not difficult for me, but the HR side is a hang up
金属有机骨架材料Fe-MIL-53,Mg-MOF-74,Ti-KUMOF-1,Fe-MIL-100,Fe-MIL-101)负载异氟醚/甲氨蝶呤/阿霉素(DOX)/紫杉醇/布洛芬/喜树碱
C language principle explanation and code implementation of scalable / reduced thread pool
Jetpack compose scaffold and topappbar (top navigation)