View previous topic :: View next topic |
Author |
Message |
Guest
|
Posted: Wed Jul 24, 2002 12:02 am Post subject: emerge gdk-pixbuf=> mkdir: /usr/share...:Permission Denie |
|
|
I encountered a very strange problem when I was trying to emerge gdk-pixbuf needed by galeon, even when I was root.
gentoo $ uname -a
Linux gentoo 2.4.19-gentoo-r7 #8 Tue Jul 23 18:55:41 EDT 2002 i686 GenuineIntel
Here is the error message:
================
/bin/sh ../mkinstalldirs /usr/share/gnome/html/gdk-pixbuf
mkdir /usr/share/gnome/html/gdk-pixbuf
ACCESS DENIED mkdir: /usr/share/gnome/html/gdk-pixbuf
mkdir: cannot create directory `/usr/share/gnome/html/gdk-pixbuf': Permission de
nied
make[2]: *** [install-data-local] Error 1
make[2]: Leaving directory `/var/tmp/portage/gdk-pixbuf-0.18.0-r1/work/gdk-pixbu
f-0.18.0/doc'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/var/tmp/portage/gdk-pixbuf-0.18.0-r1/work/gdk-pixbu
f-0.18.0/doc'
make: *** [install-recursive] Error 1
!!! ERROR: The ebuild did not complete successfully.
!!! Function src_install, Line 4, Exitcode 2
!!! (no error message)
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/tmp/sandbox-gdk-pixbuf-0.18.0-r1-18521.log"
mkdir: /usr/share/gnome/html/gdk-pixbuf
mkdir: /usr/share/gnome/html/gdk-pixbuf
--------------------------------------------------------------------------------
!!! emerge aborting on /usr/portage/media-libs/gdk-pixbuf/gdk-pixbuf-0.18.0-r1.
================
Any idea why?
Rowsen[/quote] |
|
Back to top |
|
|
enloop n00b
Joined: 13 Jul 2002 Posts: 16
|
Posted: Wed Jul 24, 2002 1:00 am Post subject: |
|
|
Same thing happened here at just about the same time. I'd just finished a new install and emerged Galeon to pull in Mozilla and chunks of Gnome. The Galeon emerge worked just fine a few days ago in similar circumstances. |
|
Back to top |
|
|
Guest
|
Posted: Wed Jul 24, 2002 4:28 am Post subject: solved |
|
|
There is a workaround to solve this:
export SANDBOX_DISABLED=1 |
|
Back to top |
|
|
Guest Guest
|
Posted: Wed Jul 24, 2002 11:22 am Post subject: edit ebuild file |
|
|
Hi,
another workaround, which I hope is correct, since I have been using gentoo for just 2 days now is the following. It worked for me:
Edit the file:
gdk-pixbuf-0.18.0-r1.ebuild
in /usr/portage/media-libs/gdk-pixbuf
and change the src_install() function as follows (add one line about datadir)
src_install() {
make prefix=${D}/usr \
datadir=${D}/usr/share \
sysconfdir=${D}/etc/X11/gdk-pixbuf \
install || die
#fix permissions on the loaders
chmod a+rx ${D}/usr/lib/gdk-pixbuf/loaders
chmod a+r ${D}/usr/lib/gdk-pixbuf/loaders/*
dodoc AUTHORS COPYING* ChangeLog INSTALL README NEWS TODO
}
emerge gdk-pixbuf again and it works... (at least for me ;-) )
Grtx,
Anton. |
|
Back to top |
|
|
Guest
|
Posted: Thu Jul 25, 2002 12:59 am Post subject: |
|
|
One change to the above fix, the file I had to edit was:
/usr/portage/media-libs/gdk-pixbuf/gdk-pixbuf-0.18.0.ebuild
the r1 file does not have the necessary setting of the prefix var.
cheers, |
|
Back to top |
|
|
bazik Retired Dev
Joined: 22 Jul 2002 Posts: 277 Location: Behind you.
|
Posted: Thu Jul 25, 2002 8:11 am Post subject: |
|
|
I try to install Gentoo on my main box since three days and it always fails at the first "emerge system", because of the same error (access denied) in the Perl package.
I will try the SANDBOX_DISABLED trick and hope it works, because everytime this bug happens, emerge is fscked up..even after a reboot _________________ Gentoo Linux/Sparc Developer
http://dev.gentoo.org/~bazik/ |
|
Back to top |
|
|
rac Bodhisattva
Joined: 30 May 2002 Posts: 6553 Location: Japanifornia
|
Posted: Thu Jul 25, 2002 8:19 am Post subject: |
|
|
bAZiK wrote: | I try to install Gentoo on my main box since three days and it always fails at the first "emerge system", because of the same error (access denied) in the Perl package. |
There used to be a problem between the Perl ebuild, libsandbox, and GCC 3 on certain architectures; see the GCC3 forum archives for details. The fix was to build libsandbox with -march=i486, and it should work that way automatically if you are on x86, but you might want to double-check the next time you remerge portage, and make sure that it is being compiled that way, or else Perl will probably not be the last of your sandbox compatibility problems. _________________ For every higher wall, there is a taller ladder |
|
Back to top |
|
|
bazik Retired Dev
Joined: 22 Jul 2002 Posts: 277 Location: Behind you.
|
Posted: Thu Jul 25, 2002 9:35 am Post subject: |
|
|
rac wrote: | bAZiK wrote: | I try to install Gentoo on my main box since three days and it always fails at the first "emerge system", because of the same error (access denied) in the Perl package. |
There used to be a problem between the Perl ebuild, libsandbox, and GCC 3 on certain architectures; see the GCC3 forum archives for details. The fix was to build libsandbox with -march=i486, and it should work that way automatically if you are on x86, but you might want to double-check the next time you remerge portage, and make sure that it is being compiled that way, or else Perl will probably not be the last of your sandbox compatibility problems. |
Erm... I use Gentoo 1.2 with GCC 2.95.3
Strange is, that it worked fine before on my Laptop with the same Boot CD (and the same version of Perl). Maybe it is a compiler problem... but I will try the DISABLED flag later today.
Thanks for your reply! _________________ Gentoo Linux/Sparc Developer
http://dev.gentoo.org/~bazik/ |
|
Back to top |
|
|
|