satimis 发表于 2005-7-23 23:22:23

Perl-5.8.6 - Permission denied

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
patching file hints/linux.sh
Hunk #1 succeeded at 51 with fuzz 1.
Hunk #2 succeeded at 314 (offset 32 lines).
   
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
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

# ls -al /tools
lrwxrwxrwx1 root root 15 Jun 28 17:06 /tools ->//mnt/lfs/tools

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

Please advise how to fix it.

B.R.
satimis

linky_fan 发表于 2005-7-24 20:17:16


drwxr-xr-x13 lfsroot 4096 Jul 22 15:36 .

chang it to lfs:lfs

satimis 发表于 2005-7-24 20:37:47

Hi linky_fan,

chang it to lfs:lfsTks 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
patching file hints/linux.sh
Hunk #1 succeeded at 51 with fuzz 1.
Hunk #2 succeeded at 314 (offset 32 lines).      
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 downduring building LFS 6.1.I took down all steps performed on the Notes.

Thanks again for your advice.

B.R.
satimis
页: [1]
查看完整版本: Perl-5.8.6 - Permission denied