买 Mac Pro 的时候,系统为 OS X 10.11.5,编译 PHP-5.6.21 的时候,也遇到一些坑,安装过程记录如下: Mac Pro 编译安装 PHP 5.6.21 及 问题汇总 后来,系统升级为 OS X 10.11.6,再后来,打算升级 PHP 至 5.6.28,报错: [报错1] ./configure 时报错 conftest.c:9:10: fatal error: 'ac_nonexistent.h' file not found [解决] 再次升级到最新的苹果系统
修改网卡MAC地址后出现问题:device eth0 does not seem to be present, delaying initialization 1.修改网卡对应的文件,将配置文件中保存以前的MAC地址删掉 2.删除/etc/udev/rules.d/70-persistent-net.rules,然后重启 因为这个文件绑定了网卡和mac地址,所以换了网卡以后MAC地址变了,所以不能正常启动,也可以直接编辑这个配置文件把里面的网卡和mac地址修改为对应的,不过这样多麻烦
MAC BOOK PRO 2017安装Windows10双系统 在Windows系统中蓝牙鼠标不能使用解决办法 最近因工作需要,macOS系统不能要求,大部分工作必须要在Windows系统中进行,最初安装了Windows虚拟机,开启虚拟机后mac book长期处于高速运转中,系统耗电特别厉害,100%的电池只能使用1小时不到,为了解决这个问题,故在macOS系统中使用“启动转换器”安装了Windows10系统,目前mac是macOS和Windows10双系统.有一个问题困扰了我好几天,一直没发解
problom : 'f1' value hava been changed when output. reason : the binary repersentation of 2.2f is : 00110011001100110011... (is an infinite recurring decimal) but computer only store 24 byte , so discard the remaining number , lead to the value has b
我们可以通过二分查找法,在log(n)的时间内找到最小数的在数组中的位置,然后通过偏移来快速定位任意第K个数. 此处假设数组中没有相同的数,原排列顺序是递增排列. 在轮转后的有序数组中查找最小数的算法如下: int findIndexOfMin(int num[],int n) { int l = 0; int r = n-1; while(l <= r) { int mid = l + (r - l) / 2; if (num[mid] > num[r]) { l = mid + 1; }
使用pod install出现如下错误 -bash: /usr/local/bin/pod: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby: bad interpreter: No such file or directory 这是Mac升级系统导致,当你的Mac系统升级为 high siera的时候,别忘记更新cocoapods. 执行命令: $ sudo gem update --system $ su
使用pod install出现如下错误: macdeMacBook-Pro:QRCodeDemo mac$ pod install -bash: /usr/local/bin/pod: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby: bad interpreter: No such file or directory 这是Mac升级系统导致,当你的Mac系统升级为 high siera的时候,别忘记更新co