Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
A newbie qestion: install gnome error
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
favora
n00b
n00b


Joined: 19 Dec 2009
Posts: 6

PostPosted: Sat Dec 19, 2009 8:48 am    Post subject: A newbie qestion: install gnome error Reply with quote

hi, all

I am installing gnome these days, but it frustrate me at this problem, I am really sad. I can't know how to solve this, I googled it but had no lucky.
so I came here, hope can get solved about the problem. I really want to get into the gentoo world. I am inspired by its package system, I like that it can compile packages personally what I like.

firstly, I login into gentoo console, and set my USE flag like this:

Code:
USE="-ipv6 -qt3 -arts -qt4 -kde dbus gtk gnome hal avahi"


then, I "emerge gnome xscreensaver", it complaint that:

Code:
emerge: there are no ebuilds built with USE flags to satisfy ">=x11-libs/cairo-1.6[X]".
!!! One of the following packages is required to complete your request:
- x11-libs/cairo-1.8.8 (Change USE: +X)


so, I add "X" to USE flag to solve that requirement. but after add this it also complaint:
Code:
!!! One of the following packages is required to complete your request:
- sys-auth/pambase-20090620.1-r1 (Change USE: +consolekit)


did I need add "consolekit" to USE flag? the install manual don't say that. all right, I also add the "consolekit" to USE, it then look like below:
Code:
USE="-ipv6 -qt3 -arts -qt4 -kde X consolekit dbus gtk gnome hal avahi"


but it still gave me errors, can you give me some suggestions? how to solve this?
Code:
localhost ~ # emerge gnome xscreensaver
Calculating dependencies... done!


[nomerge      ] gnome-base/gnome-2.26.3  USE="cups -accessibility -cdr -dvdr -esd -ldap -mono"
[nomerge      ]  x11-libs/gtk+-2.16.6  USE="cups -debug -doc -jpeg -jpeg2k -test -tiff -vim-syntax -xinerama"
[ebuild  N    ]   net-print/cups-1.3.11-r1  USE="X acl avahi dbus pam perl python ssl -gnutls -java -jpeg -kerberos -ldap -php -png -ppds -samba -slp -static -tiff -xinetd -zeroconf" LINGUAS="-de -en -es -et -fr -he -id -it -ja -pl -sv -zh_TW"
[ebuild  N    ]    net-dns/avahi-0.6.24-r2  USE="dbus gdbm gtk python -autoipd -bookmarks -doc -howl-compat -ipv6 -mdnsresponder-compat -mono -qt3 -qt4 -test"
[ebuild  N    ]     dev-python/pygtk-2.14.1-r1  USE="-doc -examples -test"
[ebuild  N    ]      gnome-base/libglade-2.6.4  USE="-debug -doc"
[ebuild  N    ]       x11-libs/gtk+-2.16.6  USE="cups -debug -doc -jpeg -jpeg2k -test -tiff -vim-syntax -xinerama"

 * Error: circular dependencies:

('ebuild', '/', 'net-dns/avahi-0.6.24-r2', 'merge') depends on
  ('ebuild', '/', 'dev-python/pygtk-2.14.1-r1', 'merge') (buildtime)
  ('ebuild', '/', 'x11-libs/gtk+-2.16.6', 'merge') (buildtime)
  ('ebuild', '/', 'gnome-base/libglade-2.6.4', 'merge') (buildtime)
('ebuild', '/', 'net-print/cups-1.3.11-r1', 'merge') depends on
  ('ebuild', '/', 'net-dns/avahi-0.6.24-r2', 'merge') (buildtime)
('ebuild', '/', 'gnome-base/libglade-2.6.4', 'merge') depends on
  ('ebuild', '/', 'x11-libs/gtk+-2.16.6', 'merge') (buildtime)
('ebuild', '/', 'x11-libs/gtk+-2.16.6', 'merge') depends on
  ('ebuild', '/', 'net-print/cups-1.3.11-r1', 'merge') (buildtime)
('ebuild', '/', 'dev-python/pygtk-2.14.1-r1', 'merge') depends on
  ('ebuild', '/', 'x11-libs/gtk+-2.16.6', 'merge') (buildtime)
  ('ebuild', '/', 'gnome-base/libglade-2.6.4', 'merge') (buildtime)

 * Note that circular dependencies can often be avoided by temporarily
 * disabling USE flags that trigger optional dependencies.

!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:

sys-auth/pambase:0

  ('ebuild', '/', 'sys-auth/pambase-20090620.1-r1', 'merge') pulled in by
    >=sys-auth/pambase-20090430[consolekit,-gnome-keyring] required by ('ebuild', '/', 'gnome-base/gdm-2.20.10-r2', 'merge')
    (and 1 more)

  ('installed', '/', 'sys-auth/pambase-20090620.1-r1', 'nomerge') pulled in by
    sys-auth/pambase required by ('ebuild', '/', 'app-admin/sudo-1.7.2_p1', 'merge')

  Explanation:

    New USE are correctly set, but --newuse wasn't requested, so an
    installed package with incorrect USE happened to get pulled into the
    dependency graph. In order to solve this, either specify the --newuse
    option or explicitly  reinstall 'sys-auth/pambase:0'.


I really highly appreciate your help.

thanks ;)
Back to top
View user's profile Send private message
Clad in Sky
l33t
l33t


Joined: 04 May 2007
Posts: 887
Location: Germany

PostPosted: Sat Dec 19, 2009 9:27 am    Post subject: Reply with quote

Hello,

as far as I can see you did nearly everything right.
Read the end of what you posted, it tells you where you went wrong:
Code:

Explanation:

    New USE are correctly set, but --newuse wasn't requested, so an
    installed package with incorrect USE happened to get pulled into the
    dependency graph. In order to solve this, either specify the --newuse
    option or explicitly  reinstall 'sys-auth/pambase:0'.


So you can either run
Code:
emerge --newuse gnome

or
Code:
emerge pambase

and emerge gnome after that.

I don't know if that works, though.
Should it not work and you still got circular dependencies you might try emerging one of the packages mentioned by portage manually, for example
Code:
emerge avahi
(try with other packages listed in the circular dependency warning if it doesn't work with avahi).

You should then be able to solve this circular dependency issue.

Edit: I think I remember me having had the same problem a while back. For me emerging gnome without the CUPS useflag did the trick. Try adding -cups to your useflags in make.conf. When Gnome has emerged successfully (and assuming you want to use cups for printing) add the cups useflag to make.conf again and tun
Code:
emerge --newuse gnome

Might work
_________________
Kali Ma
Now it's autumn of the aeons
Dance with your sword
Now it's time for the harvest
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Sat Dec 19, 2009 11:45 am    Post subject: Reply with quote

take the 'avahi' USE flag out
you will not likely ever need it, and itll make your install a pain
if at some point down the road you need it, pull it in, but otherwise scrap it.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54216
Location: 56N 3W

PostPosted: Sat Dec 19, 2009 1:02 pm    Post subject: Reply with quote

favora,

Welcome to Gentoo.

From your first post, you have chosen the wrong profile. Gentoo provides three profiles for you to choose from.
10.0, 10.0/server and 10.0/desktop. The first is pretty bare - you have to set all your own USE flags.
The other two have some sensible defualt settings for a server or a desktop system.

Do
Code:
eselect profile list
then
Code:
 eselect profile set X
where X is the number of the desktop profile.
To make the changes take effect, do
Code:
emerge world -uDNav


Now contine with your gnome.

If you want to see the differences, run
Code:
emerge --info
before and after you change profiles.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
favora
n00b
n00b


Joined: 19 Dec 2009
Posts: 6

PostPosted: Sun Dec 20, 2009 3:25 am    Post subject: Reply with quote

hi,

I removed avahi support, it's a system which facilitates service discovery on a local network. I think I don't need them at present. my USE setting looks like:
Code:
USE="-ipv6 -qt3 -arts -qt4 -kde X consolekit dbus gtk gnome hal"


then, I run
Code:
time emerge --newuse gnome xscreensaver


I read that the portage manual, it said that the "Circular Dependencies" is a notable bug, or maybe reported by others. is this a bug of portage?

now, it is compiling. and I'll let you know if it'll have problems. I hope gnome and every things are going on well. I'll go out for some fresh air, and read some books that my mother bought which I never read before ;)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54216
Location: 56N 3W

PostPosted: Sun Dec 20, 2009 4:06 pm    Post subject: Reply with quote

favora,

Circular dependencies are a feature rather than a bug. They are worked around in two ways.
In system (emerge system) portage is told to assume that certain packages are present, so it doesn't check for them.
Gentoo provides them so it works. If you do manage to remove one of these packages and you can, then things break.

Later, circular dependences are caused by building things with options that create circular dependences.
The fix now is to do the builds twice, once with the circular dependences broken by turning off some options and again with the options you really want.

X docs and cups are all well known for causing circular dependences.

A word about USE flags. USE flags can se set in several places. First, the gentoo developers set them in your profile.
Next, you set them globally in make.conf. On a per package basis, USE flags are set in /etc/portage/package.use.
Lastly, USE flags can be set on the command line but this is a very bad idea.

To see the flags set in your profile and in make.conf, run
Code:
emerge --info
That shows all the global USE flags set for your install.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Sun Dec 20, 2009 4:24 pm    Post subject: Reply with quote

After you changed your profile, can you post this :

Code:

# emerge --info
# cat /etc/portage/package.use
# rc-update show
# emerge -auDNv world


I think that you will need to add hald,consolekit to the default runlevel, but I'm not sure, so we will wait for your answer. Also, you will need evdev for sure too.
Back to top
View user's profile Send private message
favora
n00b
n00b


Joined: 19 Dec 2009
Posts: 6

PostPosted: Mon Dec 21, 2009 3:41 am    Post subject: Reply with quote

Hi,

I have add hald and consolekit already. my gnome compilation is ok now, and I am updating after I type "emerge -auDNv world ".

and I am waiting for update processing. after updating process, I will see if gnome can run successfully ;)

Below is my "emerge --info" messages. I removed avahi, and the circle dependencies was gone.

Code:
localhost ~ # emerge --info
Portage 2.1.6.13 (default/linux/x86/10.0, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.31-gentoo-r6 i686)
=================================================================
System uname: Linux-2.6.31-gentoo-r6-i686-Intel-R-_Pentium-R-_Dual_CPU_E2160_@_1.80GHz-with-gentoo-1.12.13
Timestamp of tree: Fri, 18 Dec 2009 01:45:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:     4.0_p35
dev-lang/python:     2.6.4
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.aditsu.net/ http://ftp.jaist.ac.jp/pub/Linux/Gentoo/ ftp://ftp.ecc.u-tokyo.ac.jp/GENTOO http://gentoo.channelx.biz/ http://ftp.iij.ad.jp/pub/linux/gentoo/ ftp://ftp.jaist.ac.jp/pub/Linux/Gentoo/ http://gentoo.gg3.net/ ftp://gg3.net/pub/linux/gentoo/ ftp://ftp.iij.ad.jp/pub/linux/gentoo/ ftp://ftp.twaren.net/Linux/Gentoo/ http://ftp.twaren.net/Linux/Gentoo/ ftp://gentoo.cs.nctu.edu.tw/gentoo/ http://gentoo.cs.nctu.edu.tw/gentoo/ http://ftp.ncnu.edu.tw/Linux/Gentoo/ ftp://ftp.cs.pu.edu.tw/Linux/Gentoo/ http://ftp.cs.pu.edu.tw/Linux/Gentoo/ ftp://ftp.ncnu.edu.tw/Linux/Gentoo/ "
LDFLAGS="-Wl,-O1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl berkdb bzip2 cli consolekit cracklib crypt cups cxx dbus dri fortran gdbm gnome gpm gstreamer gtk hal iconv modules mudflap ncurses nls nptl nptlonly openmp pam pcre perl pppd python readline reflection session spl ssl sysfs tcpd unicode x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY



Code:
localhost ~ # cat /etc/portage/package.use
cat: /etc/portage/package.use: No such file or directory


Code:
localhost ~ # rc-update show
            bootmisc | boot                         
             checkfs | boot                         
           checkroot | boot                         
               clock | boot                         
         consolefont | boot                         
            hostname | boot                         
             keymaps | boot                         
               local |      default nonetwork       
          localmount | boot                         
             modules | boot                         
            net.eth0 |      default                 
              net.lo | boot                         
            netmount |      default                 
           rmnologin | boot                         
           syslog-ng |      default                 
             urandom | boot                         
          vixie-cron |      default   



Code:
localhost ~ # emerge -auDNv world

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] sys-apps/tcp-wrappers-7.6-r8  USE="-ipv6*" 113 kB
[ebuild   R   ] net-misc/iputils-20071127  USE="-doc -ipv6* -static" 99 kB
[ebuild   R   ] net-misc/rsync-3.0.6  USE="acl iconv -ipv6* -static -xattr" 761 kB
[ebuild   R   ] app-admin/syslog-ng-3.0.4  USE="pcre ssl tcpd -caps -hardened -ipv6* (-selinux) -spoof-source -sql -static" 0 kB
[ebuild  N    ] x11-apps/xauth-1.0.4  USE="-debug -ipv6" 117 kB
[ebuild   R   ] sys-process/psmisc-22.7  USE="X* nls -ipv6* (-selinux)" 302 kB
[ebuild   R   ] net-misc/wget-1.12  USE="nls ssl -debug -idn -ipv6* -ntlm -static" 1,572 kB
[ebuild  N    ] x11-libs/libXpm-3.5.8  USE="-debug" 383 kB
[ebuild   R   ] sys-devel/gcc-4.3.4  USE="fortran gtk* mudflap nls nptl openmp (-altivec) -bootstrap -build -doc (-fixed-point) -gcj (-hardened) -ip28 -ip32r10k (-libffi) (-multilib) -multislot (-n32) (-n64) -nocxx -nopie -objc -objc++ -objc-gc -test -vanilla" 58,060 kB
[ebuild  N    ] x11-libs/libXaw-1.0.7  USE="-debug -doc" 585 kB
[ebuild   R   ] sys-apps/groff-1.20.1-r1  USE="X* -examples" LINGUAS="(-ja)" 3,511 kB
[ebuild   R   ] mail-mta/ssmtp-2.62-r7  USE="ssl -ipv6* -maxsysuid -md5sum" 0 kB
[ebuild   R   ] dev-lang/python-2.6.4  USE="berkdb gdbm ncurses readline ssl threads (wide-unicode) xml -build -doc -examples -ipv6* -sqlite -tk -wininst" 10,997 kB
[ebuild   R   ] dev-libs/libxml2-2.7.3-r2  USE="python readline -debug -doc -examples -ipv6* -test" 4,678 kB
[ebuild   R   ] net-misc/openssh-5.2_p1-r3  USE="X* pam tcpd -X509 -hpn -kerberos -ldap -libedit -pkcs11 (-selinux) -skey -smartcard -static" 1,082 kB

Total: 15 packages (3 new, 12 reinstalls), Size of downloads: 82,255 kB

Would you like to merge these packages? [Yes/No] yes

>>> Verifying ebuild manifests

[/code]
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54216
Location: 56N 3W

PostPosted: Mon Dec 21, 2009 7:12 pm    Post subject: Reply with quote

favora,

Code:
default/linux/x86/10.0
is your profile - you need to change the profile to default/linux/x86/10.0/desktop.
You have a lot of USE flags missing that are taken for granted on a desktop system.

For example alsa - needed for sound support, dvd needed to play DVDs.

Code:
-march=i686
is a poor choice for your CFLAGS and CXXFLAGS. Thats for a Pentium2 or PentiumPro, or building code you need to run on many different CPUs. You can do better here.

Multimedia programmes can take advantage of extra multimedia instructions, like mmx, mmxext, sse which is something else to add to your USE flags. However, you need to match them to your CPU as Intel and AMD do their own thing in this area.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Tue Dec 22, 2009 12:59 am    Post subject: Reply with quote

favora, can you post this :

Code:

# cat /proc/cpuinfo
Back to top
View user's profile Send private message
favora
n00b
n00b


Joined: 19 Dec 2009
Posts: 6

PostPosted: Tue Dec 22, 2009 6:12 am    Post subject: Reply with quote

hi,
at present, I have done these things: emerge gnome, emerge xorg-server. After then, I can use "startx" to enter into gnome environment.
but the application menu has nothing actions.

here is my cpuinfo: which argument should I set to replace for "-march=i686", for using my architecture more effectively?

and if I change my gentoo profile to ddefault/linux/x86/10.0/desktop, what should I do later, maybe I need to update the whole gentoo again, right?

at least, I can see the gnome desktop right now, Can I stick on the current profile settings, though maybe it's a bit problems, but this require me the least changes to do. If I changed to desktop profile, it can do every thing for me, maybe I just need "emerge xorg-server gnome", after that, just type "startx" to enter the gnome, right?

Code:

localhost ~ # cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 15
model name      : Intel(R) Pentium(R) Dual  CPU  E2160  @ 1.80GHz
stepping        : 13
cpu MHz         : 1795.550
cache size      : 1024 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss nx constant_tsc up arch_perfmon pebs bts tsc_reliable pni ssse3 hypervisor
bogomips        : 3591.10
clflush size    : 64
power management:
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54216
Location: 56N 3W

PostPosted: Tue Dec 22, 2009 8:34 pm    Post subject: Reply with quote

favora,

Set -march=native and gcc will work out what it best for your CPU.

Add
Code:
mmx sse sse2 ssse3
to your USE flags so that packages with optional support for those multi-media extensions will use them.

If yu are happy with the functionality of your system, you need not change your profile. Its just a way of making changes you find you want in one go. You can keep addinf USE flags and rebuilding things if you prefer.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
favora
n00b
n00b


Joined: 19 Dec 2009
Posts: 6

PostPosted: Wed Dec 23, 2009 2:06 am    Post subject: Reply with quote

hi,

my gentoo is working on my pc now.
I built gentoo from bottom to top (I mean from kernel, grub, to desktop environment), and have no package build errors.
it indeed is a outstanding system ;).

Thanks all your help. I would like to thinks gentoo's developers too. ;)
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Wed Dec 23, 2009 2:51 am    Post subject: Reply with quote

Nice, good luck and welcome aboard :P
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum