当前位置:网站首页>MAC MAMP PRO 安装PHP扩展方法
MAC MAMP PRO 安装PHP扩展方法
2022-06-21 05:11:00 【来自新疆的程序员】
1、下载扩展源码,比如redis源码(注意不同版本对应不同扩展库版本)
2、使用 使用PHPize命令
先查看当前系统PHP版本和路径
which php
/Applications/MAMP/bin/php/php7.3.9/bin/php
1、执行phpize
/Applications/MAMP/bin/php/php7.3.9/bin/phpize
2、执行config配置
./configure --with-php-config=/Applications/MAMP/bin/php/php7.3.9/bin/php-config
3、make && make install
4、添加so文件到php.ini
备注:安装swoole 的配置
./configure --with-php-config=/Applications/MAMP/bin/php/php7.3.9/bin/php-config --enable-openssl --enable-http2 --with-openssl-dir=/usr/local/Cellar/[email protected]/1.1.1g
宝塔安装swoole 记录
1、下载swoole 源码
https://github.com/swoole/swoole-src/releases/tag/v4.6.7
下载源码传送门
/www/server/php/74/bin/phpize
./configure --with-php-config=/www/server/php/74/bin/php-config --enable-openssl --enable-http2
make && make install
mac pro 安装php5.6 mongo 笔记
下载 mongodb-1.2.9.tgz (php5.6用这个就和了),如果安装错误,请多尝试几个版本
克下载路径:传送门
/Applications/MAMP/bin/php/php5.6.40/bin/phpize
./configure --with-openssl-dir=/usr/local/Cellar/[email protected]/1.1.1l/ --with-php-config=/Applications/MAMP/bin/php/php5.6.40/bin/php-config
make && make install
其中 --with-openssl-dir=/usr/local/Cellar/[email protected]/1.1.1l/ 是openssl 本地路径,请跟进自己实际路径来填写
如果不加 估计会报错如下
checking configuring libmongoc... ...
checking whether to use system libmongoc... no
checking for pkg-config... /usr/local/bin/pkg-config
configure: error: Cannot find OpenSSL's <evp.h>
边栏推荐
- Little sister's Jenkins study notes
- How to remove the prohibition of copying and pasting set by teachers
- Abbexa 一抗、二抗、蛋白质等生物试剂方案
- 2022 Shandong vision prevention and control exhibition, eye care and health products exhibition, eye care instrument exhibition and light feeding Instrument Exhibition
- 批改网如何解除老师设置的禁止复制粘贴
- What's the difference between an ordinary tester and an awesome tester? After these two leaps, you can also
- Common request methods and request header parameters
- Abbexa GM130 antibody solution
- What is the event loop in JS?
- MySQL leads to disk IO full load
猜你喜欢

Abbexa 一抗、二抗、蛋白质等生物试剂方案

518. change II

Nodejs learning record - NPM

深入探索创客教育的技术特征

Project initiation and requirement review of software testing

Abnova鸡抗棉鼠 IgG (H&L) 二抗 (HRP) 方案

糖化白蛋白研究丨Abbexa ELISA试剂盒来助力!

Cvpr2017/ image translation: image to image translation with conditional adversarial networks

基于SSM+MySQL+Bootstrap+JSP的服装销售商城系统

C language: randomly input the scores of each subject in each student, and require each student to rank the average scores of all subjects from low to high to find out the average scores of each stude
随机推荐
[data warehouse modeling] what is the difference between traditional modeling and wide table modeling? Wide table based modeling practice
Video player 2.0 that can be used by monkeys (fast forward and rewind progress bar, volume switching video, etc.)
基於SSM+MySQL+LayUI+JSP的公共交通運輸信息管理系統
Which is more valuable, PMP or MBA?
Packaging El Pagination
Three classes for handling strings
jmeter里面的json提取器和调试器的用法
Qualcomm platform LCD commissioning
Automobile maintenance management system based on ssm+bootstrap+mysql+thymeleaf
College student information management system based on ssm+hui+mysql
七大设计原则
适配器模式Adapter
2022 myopia correction exhibition, eye care products exhibition, China eye care education conference, optometry equipment exhibition
Adapter mode adapter
What's the difference between an ordinary tester and an awesome tester? After these two leaps, you can also
Time series database Apache iotdb unit vs. multivariate time series write and query performance comparison - Tian Yuan
性能优化----内存分析
MySQL leads to disk IO full load
518. change II
Idea debug occurs: skipped breakpoint at because it happened inside debugger evaluation