linux 普通用户 make install报错
linux 普通用户 make install报错:/usr/bin/install: cannot create regular file ‘/usr/local/lib/libzip.so.5.0.0’: Permission denied
/usr/bin/mkdir -p '/usr/local/lib'
/bin/sh ../libtool --mode=install /usr/bin/install -c libzip.la '/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/libzip.so.5.0.0 /usr/local/lib/libzip.so.5.0.0
/usr/bin/install: cannot create regular file '/usr/local/lib/libzip.so.5.0.0': Permission denied
make[4]: *** [Makefile:671:install-libLTLIBRARIES] 错误 1
make[4]: 离开目录“/home/wxfeng/application/libzip-1.2.0/lib”
make[3]: *** [Makefile:1850:install-am] 错误 2
make[3]: 离开目录“/home/wxfeng/application/libzip-1.2.0/lib”
make[2]: *** [Makefile:1687:install-recursive] 错误 1
解决方法:
修改权限,需要在usr/local下创建相关目录
#sudo chown -R wxfeng:wxfeng /usr/local/