happyfish100 / libfastcommon

c common functions library extracted from my open source project FastDFS. this library is very simple and stable. functions including: string, logger, chain, hash, socket, ini file reader, base64 encode / decode, url encode / decode, fast timer, skiplist, object pool etc. detail info please see the c header files.
http://bbs.chinaunix.net/forum-240-1.html
GNU Lesser General Public License v3.0
900 stars 529 forks source link

Got error ./make.sh install on Mac OS #11

Closed cheny1ran closed 7 years ago

cheny1ran commented 7 years ago

可以运行./make.sh 输出正常,但无法运行install命令。 系统 Mac OS 10.11.6

~/security/libfastcommon  master ✗                                                                                                                   4d ◒
▶ ./make.sh install
mkdir -p /usr/lib64
mkdir: /usr/lib64: Operation not permitted
make: *** [install] Error 1
happyfish100 commented 7 years ago

install需要root身份或者用sudo执行

cheny1ran commented 7 years ago

试过了,一样的结果。

~/security/libfastcommon  master ✗                                                                                                                  7d ◒
▶ sudo ./make.sh install
mkdir -p /usr/lib64
mkdir: /usr/lib64: Operation not permitted
make: *** [install] Error 1
cheny1ran commented 7 years ago

解决了。 是因为系统是11版本的加入了rootless机制导致sudo也没法获得root权限读写。 进入系统恢复模式关闭rootless机制即可。