View previous topic :: View next topic |
Author |
Message |
med-gentoo n00b
Joined: 07 Jul 2012 Posts: 36
|
Posted: Sat Aug 18, 2012 5:15 pm Post subject: [SOLVED] installing gentoo from debian |
|
|
hi
I used debian to install gentoo but when I arrive to this command emerge gentoo-sources
it shows me that
Code: | * ERROR: dev-lang/perl-5.12.4-r1 failed (install phase):
* Unable to remove module man pages
*
* Call stack:
* ebuild.sh, line 85: Called src_install
* environment, line 2560: Called die
* The specific snippet of code:
* rm -rf "${D}"/usr/share/man/man3 || die "Unable to remove module man pages";
*
* If you need support, post the output of `emerge --info '=dev-lang/perl-5.12.4-r1'`,
* the complete build log and the output of `emerge -pqv '=dev-lang/perl-5.12.4-r1'`.
* The complete build log is located at '/var/tmp/portage/dev-lang/perl-5.12.4-r1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-lang/perl-5.12.4-r1/temp/environment'.
* Working directory: '/var/tmp/portage/dev-lang/perl-5.12.4-r1/work/perl-5.12.4'
* S: '/var/tmp/portage/dev-lang/perl-5.12.4-r1/work/perl-5.12.4'
>>> Failed to emerge dev-lang/perl-5.12.4-r1, Log file:
>>> '/var/tmp/portage/dev-lang/perl-5.12.4-r1/temp/build.log'
* Messages for package dev-lang/perl-5.12.4-r1:
* ERROR: dev-lang/perl-5.12.4-r1 failed (install phase):
* Unable to remove module man pages
*
* Call stack:
* ebuild.sh, line 85: Called src_install
* environment, line 2560: Called die
* The specific snippet of code:
* rm -rf "${D}"/usr/share/man/man3 || die "Unable to remove module man pages";
*
* If you need support, post the output of `emerge --info '=dev-lang/perl-5.12.4-r1'`,
* the complete build log and the output of `emerge -pqv '=dev-lang/perl-5.12.4-r1'`.
* The complete build log is located at '/var/tmp/portage/dev-lang/perl-5.12.4-r1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/dev-lang/perl-5.12.4-r1/temp/environment'.
* Working directory: '/var/tmp/portage/dev-lang/perl-5.12.4-r1/work/perl-5.12.4'
* S: '/var/tmp/portage/dev-lang/perl-5.12.4-r1/work/perl-5.12.4' |
Last edited by med-gentoo on Sun Aug 19, 2012 5:33 pm; edited 1 time in total |
|
Back to top |
|
|
med-gentoo n00b
Joined: 07 Jul 2012 Posts: 36
|
|
Back to top |
|
|
loki_val Retired Dev
Joined: 13 Nov 2006 Posts: 418 Location: Denmark
|
Posted: Sat Aug 18, 2012 8:12 pm Post subject: |
|
|
This smells like /proc and/or /dev not being mounted. |
|
Back to top |
|
|
med-gentoo n00b
Joined: 07 Jul 2012 Posts: 36
|
Posted: Sat Aug 18, 2012 9:47 pm Post subject: |
|
|
loki_val wrote: | This smells like /proc and/or /dev not being mounted. |
exept /boot all my files are in the same partition . should I separate them in different partitions |
|
Back to top |
|
|
creaker l33t
Joined: 14 Jul 2012 Posts: 651
|
Posted: Sat Aug 18, 2012 10:38 pm Post subject: |
|
|
med-gentoo wrote: |
exept /boot all my files are in the same partition . should I separate them in different partitions |
You should mount /gentoo/dev and /gentoo/proc to appropriate directories of host system (debian)
Code: | # mount -t proc none /mnt/gentoo/proc
# mount --rbind /sys /mnt/gentoo/sys
# mount --rbind /dev /mnt/gentoo/dev |
|
|
Back to top |
|
|
DONAHUE Watchman
Joined: 09 Dec 2006 Posts: 7651 Location: Goose Creek SC
|
Posted: Sun Aug 19, 2012 6:14 am Post subject: |
|
|
perl was reported as blocking emerge gentoo sources in another recent thread.
I tend to suspect that the /dev-lang/perl-5.12.4-r1 package is the problem.
Your build log shows multiple lines like Quote: | rm: cannot remove `/var/tmp/portage/dev-lang/perl-5.12.4-r1/image//usr/share/man/man3/Time::gmtime.3pm': Bad file descriptor | the //is a bad entry. It appears that ${D} in rm -rf "${D}"/usr/share/man/man3 || die "Unable to remove module man pages"; has been misparsed as
/var/tmp/portage/dev-lang/perl-5.12.4-r1/image/ instead of
/var/tmp/portage/dev-lang/perl-5.12.4-r1/image
Having a die because man pages cannot be removed from a temporary image file seems to be an overreaction.
Suggest you boot debian and, as root, (using your partition scheme if different from handbook) Code: | mount /dev/sda3 /mnt/gentoo
mount /dev/sda1 /mnt/gentoo/boot
cp /etc/resolv.conf /mnt/gentoo/etc/resolv.conf
mount -t proc none /mnt/gentoo/proc
mount -o bind /dev /mnt/gentoo/dev
chroot /mnt/gentoo /bin/bash
env-update
source /etc/profile
export PS1="(chroot) $PS1" | to enter the chroot and then run Code: | USE="-doc -man" emerge -av perl
USE="-doc -man" emerge -av gentoo-sources |
_________________ Defund the FCC. |
|
Back to top |
|
|
med-gentoo n00b
Joined: 07 Jul 2012 Posts: 36
|
Posted: Sun Aug 19, 2012 5:32 pm Post subject: |
|
|
DONAHUE I used your commands and it works thank you
and thank you all for your help |
|
Back to top |
|
|
|