Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/redis/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Makefile MAKE测试的权限被拒绝_Makefile_Redis - Fatal编程技术网

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':权限被拒绝
(我试图手动安装bcuz
make test
couldnt,我甚至打开ubuntu
Run as Administrator
Update我使用的
sudo make test
并运行测试…酷!我如何设置根权限呢?@Aleksandar要将目录的所有者永久更改为当前用户,你可以执行
sudo chown-R“$(whoami)”~/redis-6.0.8
(这样以后就不需要使用
sudo
)。