我没有根访问权限。已经尝试过用autoreconf -ivf,但是什么都没有用
我正在尝试遵循的
wget https://launchpad.net/byobu/trunk/5.17/+download/byobu_5.17.orig.tar.gz
tar -zxvf byobu_5.17.orig.tar.gz
rm byobu_5.17.orig.tar.gz
cd byobu*
./configure --prefix="$HOME/byobu"
make
make installmake:
chowdhury@exs-91208:~/byobu-5.17$ make
Making all in etc/byobu
make[1]: Entering directory '/home/chy/byobu-5.17/etc/byobu'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/chy/byobu-5.17/etc/byobu'
Making all in etc/profile.d
make[1]: Entering directory '/home/chy/byobu-5.17/etc/profile.d'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/chy/byobu-5.17/etc/profile.d'
Making all in usr/share/applications
make[1]: Entering directory '/home/chy/byobu-5.17/usr/share/applications'
make[1]: Nothing to be done for 'all'.aking all in usr/share/man/man1
make[1]: Entering directory '/home/chy/byobu-5.17/usr/share/man/man1'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/chy/byobu-5.17/usr/share/man/man1'
Making all in usr/bin
make[1]: Entering directory '/home/chy/byobu-5.17/usr/bin'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/chy/byobu-5.17/usr/bin'
make[1]: Entering directory '/home/chy/byobu-5.17'
make[1]: Nothing to be done for 'all-am'.
make[1]: Leaving directory '/home/chy/byobu-5.17'来自make的
chy@exs-91208:~/byobu-5.17$ make install
Making install in etc/byobu
make[1]: Entering directory '/home/chy/byobu-5.17/etc/byobu'
make[2]: Entering directory '/home/chy/byobu-5.17/etc/byobu'
make[2]: Nothing to be done for 'install-exec-am'.
/bin/mkdir -p '/usr/etc/byobu/'
/bin/mkdir: cannot create directory ‘/usr/etc’: Permission denied
Makefile:248: recipe for target 'install-etcDATA' failed
make[2]: *** [install-etcDATA] Error 1
make[2]: Leaving directory '/home/chy/byobu-5.17/etc/byobu'
Makefile:318: recipe for target 'install-am' failed
make[1]: *** [install-am] Error 2
make[1]: Leaving directory '/home/chy/byobu-5.17/etc/byobu'
Makefile:325: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1发布于 2019-06-07 20:15:43
可以在没有任何根权限的情况下构建和安装Byobu。它不需要在--prefix=目录之外安装二进制或工件。
按照您所描述的步骤,$HOME变量有问题。在提取和配置Byobo之后:
$ tar xf byobu_5.17.orig.tar.gz && cd byobu-5.17 && ./configure --prefix="$HOME/byobu"
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
...
config.status: creating usr/share/man/man1/Makefile
config.status: creating usr/bin/Makefileconfig.log应该包含前缀:
$ grep ^prefix config.log
prefix='/home/chy/byobu'我想,在你的情况下,它看起来更像这样:
$ grep ^prefix config.log
prefix='/usr'有了这个--prefix,我可以重现您的错误:
$ make install
Making install in etc/byobu
make[1]: Entering directory '/home/chy/byobu-5.17/etc/byobu'
make[2]: Entering directory '/home/chy/byobu-5.17/etc/byobu'
make[2]: Nothing to be done for 'install-exec-am'.
test -z "/usr/etc/byobu/" || /bin/mkdir -p "/usr/etc/byobu/"
/bin/mkdir: cannot create directory '/usr/etc': Permission denied
Makefile:185: recipe for target 'install-etcDATA' failed
make[2]: *** [install-etcDATA] Error 1
make[2]: Leaving directory '/home/chy/byobu-5.17/etc/byobu'
Makefile:252: recipe for target 'install-am' failed
make[1]: *** [install-am] Error 2
make[1]: Leaving directory '/home/chy/byobu-5.17/etc/byobu'
Makefile:238: recipe for target 'install-recursive' failed
make: *** [install-recursive] Error 1重置源目录并重新启动配置,并为前缀使用绝对路径:
$ cd byobu-5.17/
$ make distclean
$ ./configure --prefix=/home/chy/byobu
$ make && make install
$ export PATH=$PATH:/home/chy/byobu/bin
$ byobu但是,如果安装了tmux数据包,Byobu将只起作用。
https://askubuntu.com/questions/1149394
复制相似问题