QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1164|回复: 2

Perl-5.8.6 - Permission denied

[复制链接]
发表于 2005-7-23 23:22:23 | 显示全部楼层 |阅读模式
Hi folks,

5.32. Perl-5.8.6
http://www.linuxfromscratch.org/lfs/view/stable/chapter05/perl.html

Performed following steps
lfs:/mnt/lfs/sources$ tar xjf perl-5.8.6.tar.bz2
lfs:/mnt/lfs/sources$ cd perl-5.8.6
lfs:/mnt/lfs/sources/perl-5.8.6$ patch -Np1 -i ../perl-5.8.6-libc-1.patch[code:1]
patching file hints/linux.sh
Hunk #1 succeeded at 51 with fuzz 1.
Hunk #2 succeeded at 314 (offset 32 lines). [/code:1]
     
lfs:/mnt/lfs/sources/perl-5.8.6$ ./configure.gnu --prefix=/tools -Dstatic_ext='IO Fcntl POSIX'
lfs:/mnt/lfs/sources/perl-5.8.6$ make perl utilities
lfs:/mnt/lfs/sources/perl-5.8.6$ cp perl pod/pod2man /tools/bin  
lfs:/mnt/lfs/sources/perl-5.8.6$ mkdir -p /tools/lib/perl5/5.8.6

All went through without complaint.

lfs:/mnt/lfs/sources/perl-5.8.6$ cp -R lib/* /tools/lib/perl5/5.8.6[code:1]
cp: cannot create regular file
`/tools/lib/perl5/5.8.6/AnyDBM_File.pm': Permission
denied
cp: cannot create regular file
`/tools/lib/perl5/5.8.6/AnyDBM_File.t': Permission
denied
cp: cannot create regular file
`/tools/lib/perl5/5.8.6/Attribute/Handlers/Changes':
Permission denied
.....
.....
cp: cannot create regular file
`/tools/lib/perl5/5.8.6/vars.t': Permission denied
cp: cannot create regular file
`/tools/lib/perl5/5.8.6/vmsish.pm': Permission denied
cp: cannot create regular file
`/tools/lib/perl5/5.8.6/vmsish.t': Permission denied
cp: cannot create regular file
`/tools/lib/perl5/5.8.6/warnings/register.pm':
Permission denied
cp: cannot create regular file
`/tools/lib/perl5/5.8.6/warnings.t': Permission denied[/code:1]

[root@localhost ~]# ls -al /tools[code:1]
lrwxrwxrwx  1 root root 15 Jun 28 17:06 /tools ->  //mnt/lfs/tools[/code:1]

[root@localhost ~]# ls -al /mnt/lfs/tools/[code:1]total 100
drwxr-xr-x  13 lfs  root 4096 Jul 22 15:36 .
drwxr-xr-x   6 root root 4096 Jul 21 22:23 ..
drwxr-xr-x   2 lfs  lfs  4096 Jul 23 20:12 bin
drwxr-xr-x   2 lfs  lfs  4096 Jul 20 21:23 etc
drwxr-xr-x   4 lfs  lfs  4096 Jul 19 09:35
i686-pc-linux-gnu
drwxr-xr-x  24 lfs  lfs  4096 Jul 23 20:12 include
drwxr-xr-x   2 root root 4096 Jul 23 10:18 info
drwxr-xr-x   9 lfs  lfs  4096 Jul 23 20:12 lib
drwxr-xr-x   4 lfs  lfs  4096 Jul 21 17:47 libexec
drwxr-xr-x   3 root root 4096 Jul 22 15:36 man
drwxr-xr-x   2 lfs  lfs  4096 Jul 21 18:37 sbin
drwxr-xr-x  15 lfs  lfs  4096 Jul 21 18:17 share
drwxr-xr-x   2 lfs  lfs  4096 Jul 21 13:03 var[/code:1]

Please advise how to fix it.

B.R.
satimis
发表于 2005-7-24 20:17:16 | 显示全部楼层
drwxr-xr-x  13 lfs  root 4096 Jul 22 15:36 .

chang it to lfs:lfs
回复

使用道具 举报

 楼主| 发表于 2005-7-24 20:37:47 | 显示全部楼层
Hi linky_fan,

chang it to lfs:lfs
Tks for your advice.

I already have my problem solved as follows;

1) lfs:/mnt/lfs/sources$ rm -rf /tools/lib/perl5
2) lfs:/mnt/lfs/sources$ rm -rf perl-5.8.6

re-run following steps:
lfs:/mnt/lfs/sources$ tar xjf perl-5.8.6.tar.bz2
lfs:/mnt/lfs/sources$ cd perl-5.8.6
lfs:/mnt/lfs/sources/perl-5.8.6$ patch -Np1 -i ../perl-5.8.6-libc-1.patch[code:1]
patching file hints/linux.sh
Hunk #1 succeeded at 51 with fuzz 1.
Hunk #2 succeeded at 314 (offset 32 lines).[/code:1]      
lfs:/mnt/lfs/sources/perl-5.8.6$ ./configure.gnu --prefix=/tools -Dstatic_ext='IO Fcntl POSIX'
lfs:/mnt/lfs/sources/perl-5.8.6$ make perl utilities
lfs:/mnt/lfs/sources/perl-5.8.6$ cp perl pod/pod2man /tools/bin
lfs:/mnt/lfs/sources/perl-5.8.6$ mkdir -p /tools/lib/perl5/5.8.6
lfs:/mnt/lfs/sources/perl-5.8.6$ cp -R lib/* /tools/lib/perl5/5.8.6

All went through without complaint.

My remaining problem is how get through "chroot".  I could not discover what mistakes I have committed in going through the Notes taken down  during building LFS 6.1.  I took down all steps performed on the Notes.

Thanks again for your advice.

B.R.
satimis
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-10-2 06:40 , Processed in 0.059736 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表