由于mkdir拒绝,无法安装软件

时间:2016-06-24 22:37:20

标签: linux bash ubuntu ubuntu-16.04 installation-package

所以,我在安装一套软件时遇到了这个问题,在某些时候错误是:

 make[7]: Nothing to be done for 'install-exec-am'.
 /bin/mkdir -p '/home/repositories/lalsuite/include/lal'
/bin/mkdir: cannot create directory ‘/home/repositories’: Permission denied
Makefile:592: recipe for target 'install-pkgincludeHEADERS' failed
make[7]: *** [install-pkgincludeHEADERS] Error 1
make[7]: Leaving directory '/home/utina/repositories/lalsuite/lal/src/std'
Makefile:708: recipe for target 'install-am' failed
make[6]: *** [install-am] Error 2

我提到特定文件夹中ls -l的输出是:

    /repositories/lalsuite$ ls -l
total 368
-rwxrwxr-x  1 utina utina   1223 Jun 24 15:02 00boot
-rw-rw-r--  1 utina utina  29029 Jun 24 15:14 aclocal.m4
drwxr-xr-x  2 utina utina   4096 Jun 24 15:14 autom4te.cache
-rw-rw-r--  1 utina utina  10598 Jun 24 16:48 config.log
-rwxrwxr-x  1 utina utina  26176 Jun 24 16:47 config.status
-rwxrwxr-x  1 utina utina 143165 Jun 24 15:14 configure
-rw-rw-r--  1 utina utina   5439 Jun 24 15:02 configure.ac
drwxrwxr-x 12 utina utina   4096 Jun 24 15:16 glue
drwxrwxr-x  2 utina utina   4096 Jun 24 15:02 gnuscripts
drwxrwxr-x 12 utina utina   4096 Jun 24 16:47 lal
drwxrwxr-x  9 utina utina   4096 Jun 24 16:57 lalapps
drwxrwxr-x 12 utina utina   4096 Jun 24 16:51 lalburst
drwxrwxr-x 12 utina utina   4096 Jun 24 16:51 laldetchar
drwxrwxr-x 12 utina utina   4096 Jun 24 16:47 lalframe
drwxrwxr-x 12 utina utina   4096 Jun 24 16:56 lalinference
drwxrwxr-x 12 utina utina   4096 Jun 24 16:51 lalinspiral
drwxrwxr-x 12 utina utina   4096 Jun 24 16:47 lalmetaio
drwxrwxr-x 12 utina utina   4096 Jun 24 16:54 lalpulsar
drwxrwxr-x 12 utina utina   4096 Jun 24 16:50 lalsimulation
drwxrwxr-x 12 utina utina   4096 Jun 24 16:54 lalstochastic
-rw-rw-r--  1 utina utina   2104 Jun 24 16:48 lalsuiterc
drwxrwxr-x 12 utina utina   4096 Jun 24 16:49 lalxml
drwxrwxr-x  5 utina utina   4096 Jun 24 15:03 lars
drwxrwxr-x  4 utina utina   4096 Jun 24 15:03 ligo
-rw-rw-r--  1 utina utina  30014 Jun 24 16:47 Makefile
-rw-rw-r--  1 utina utina   3099 Jun 24 15:02 Makefile.am
-rw-rw-r--  1 utina utina  29510 Jun 24 15:14 Makefile.in
drwxrwxr-x 13 utina utina   4096 Jun 24 15:16 pylal

此外:

utina@utinax55:~/repositories$ ls -l
total 2576
drwxrwxr-x 21 utina utina    4096 Jun 24 16:48 lalsuite
drwxrwxr-x  9 utina utina    4096 Jun 24 15:14 metaio
drwxrwxr-x 15 utina utina    4096 Jun 24 15:13 v8r26
-rw-rw-r--  1 utina utina 2624760 May 17  2015 v8r26.tar.gz

因此,似乎应用了特定文件夹的执行权限;任何想法?

1 个答案:

答案 0 :(得分:1)

您还没有解释为什么它会尝试写入/home/repositories而不是/home/utina/repositories。我猜你已经把~repositories放在了某个地方,当你的意思是~/repositories时。