View previous topic :: View next topic |
Author |
Message |
Hevoos n00b
Joined: 21 May 2007 Posts: 4
|
Posted: Mon May 21, 2007 8:46 pm Post subject: Installing firefox |
|
|
I tried to install firefox today and it complained about cairo needing the X flag. I have installed the package 'cairo' and it just worked fine, but when trying to install firefox however it complained about it. I find this strange since I thought the X flag was used per default. How can I solve this problem (it's quite frustrating to surf the web with links )?
I'm completely new to gentoo so explain in a simple way, please! |
|
Back to top |
|
|
skellr l33t
Joined: 18 Jun 2005 Posts: 976 Location: The Village, Portmeirion
|
Posted: Mon May 21, 2007 9:36 pm Post subject: |
|
|
Yeah, the gtk+ ebuild wants ciaro built with X. You can use emerge -1av cairo to check that it really is compiled with X. If the X useflag is green then that means the flag is set but the package hasn't been compiled to use it, a changed useflag.
I used the --oneshot (-1) option with emerge as cairo is a dependency. It will prevent it being added to the world file. there are other ways to update after things have changed
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=2&chap=1
That page will look better than the forums using links. |
|
Back to top |
|
|
Hevoos n00b
Joined: 21 May 2007 Posts: 4
|
Posted: Tue May 22, 2007 1:20 pm Post subject: |
|
|
When I run emerge -1av www-client/mozilla-firefox I get the message:
x11-libs/gtk+-2.10.9 USE="-X -debug -doc -jpeg -tiff -xinerama"
Everything after USE=" is in blue, could this be the problem?
As I'm new to this OS I don't have a clue, I hope you will understand. |
|
Back to top |
|
|
tboloo Guru
Joined: 20 Jan 2006 Posts: 403 Location: Grodzisq, Poland
|
Posted: Tue May 22, 2007 2:17 pm Post subject: |
|
|
Hevoos wrote: | When I run emerge -1av www-client/mozilla-firefox I get the message:
x11-libs/gtk+-2.10.9 USE="-X -debug -doc -jpeg -tiff -xinerama"
Everything after USE=" is in blue, could this be the problem?
As I'm new to this OS I don't have a clue, I hope you will understand. |
Than you _really_ should read the docs. Start with the handbook, and then come back asking questions.
AS for USE flags, see this url - everything is explained there.
As for missing X flag for cairo, you should (as root) do:
Code: |
echo "x11-libs/cairo X" >> /etc/portage/package.keywords
emerge -1 cairo
emerge mozilla-firefox
|
But before that read about USE flags, since merging ffox on P4 can take up to one hour you wouldn't like to reemerge it couple of time just to get the functionality that you want. _________________ The clock is ticking, brothers and sisters, counting down to Armageddon. |
|
Back to top |
|
|
ComicBookGuy n00b
Joined: 13 Apr 2007 Posts: 28
|
Posted: Tue May 22, 2007 3:17 pm Post subject: |
|
|
I didn't know until yesterday, that -X meant that the flag X is not used. |
|
Back to top |
|
|
skellr l33t
Joined: 18 Jun 2005 Posts: 976 Location: The Village, Portmeirion
|
Posted: Tue May 22, 2007 10:18 pm Post subject: |
|
|
Hevoos wrote: | When I run emerge -1av www-client/mozilla-firefox I get the message:
x11-libs/gtk+-2.10.9 USE="-X -debug -doc -jpeg -tiff -xinerama"
Everything after USE=" is in blue, could this be the problem?
As I'm new to this OS I don't have a clue, I hope you will understand. |
Yeah, that would do it. If it's showing -X for gtk+ then it's a good chance cairo was compiled with -X also, and it needs/wants X.
There is a desktop profile you can switch to that will enable usefalgs suitable for a desktop. It might make the useflags easier to manage. Use the desktop profile then edit out a few things you don't want, or just add a boat-load of stuff to the USE in /etc/make.conf. Either way will work. eselect is a quick way to change the profile, just emerge eselect if you don't have it installed yet.
Then to update after you get useflags straightened out use Code: | emerge --update --deep --newuse --ask --verbose world | (emerge -uDNav world)
The --newuse will rebuild packages that have changed useflags. It will want to rebuild alot of stuff when you do this.
Welcome to Gentoo
Once you get the basics down it will be cake to maintain. |
|
Back to top |
|
|
Hevoos n00b
Joined: 21 May 2007 Posts: 4
|
Posted: Sat May 26, 2007 10:09 am Post subject: |
|
|
Thanks for the replies!
Ive now compiled Firefox successfully and I really like the speed of gentoo!
I have only used Debian and Ubuntu before, these flags are completely new to me, but they seem great when you get used to them. |
|
Back to top |
|
|
|