Makefile MAKE测试的权限被拒绝
有人知道为什么在安装Makefile MAKE测试的权限被拒绝,makefile,redis,Makefile,Redis,有人知道为什么在安装Redis的过程中,在我已经运行sudo-apt-install-build-eseential $ make test cd src && make test make[1]: Entering directory '/home/alek/redis-6.0.8/src' touch: cannot touch 'release.h': Permission denied ... touch: cannot touch 'release.c': Permis
Redis
的过程中,在我已经运行sudo-apt-install-build-eseential
$ make test
cd src && make test
make[1]: Entering directory '/home/alek/redis-6.0.8/src'
touch: cannot touch 'release.h': Permission denied
...
touch: cannot touch 'release.c': Permission denied
/bin/sh: 1: pkg-config: not found
...
CC Makefile.dep
/bin/sh: 1: cannot create Makefile.dep: Permission denied
...
echo STD=-std=c11 -pedantic -DREDIS_STATIC='' >> .make-settings
/bin/sh: 1: cannot create .make-settings: Permission denied
如果这有帮助:
$ make --version
GNU Make 4.2.1
Built for x86_64-pc-linux-gnu
谁是redis-6.0.8/src的所有者?您是否将源代码克隆/解压为root?第一次尝试(错误相同)是在
mnt/c/Users/ubuntuusername
,现在它只是ubuntu@PCusername:~/redis-6.0.8$
我安装了许多软件包剩下的第一件事是~/redis-6.0.8/src$touch Makefile.dep touch:无法触摸'Makefile.dep':权限被拒绝
(我试图手动安装bcuzmake test
couldnt,我甚至打开ubuntuRun as Administrator
Update我使用的sudo make test
并运行测试…酷!我如何设置根权限呢?@Aleksandar要将目录的所有者永久更改为当前用户,你可以执行sudo chown-R“$(whoami)”~/redis-6.0.8
(这样以后就不需要使用sudo
)。