Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Installing firefox
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Hevoos
n00b
n00b


Joined: 21 May 2007
Posts: 4

PostPosted: Mon May 21, 2007 8:46 pm    Post subject: Installing firefox Reply with quote

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! :D
Back to top
View user's profile Send private message
skellr
l33t
l33t


Joined: 18 Jun 2005
Posts: 976
Location: The Village, Portmeirion

PostPosted: Mon May 21, 2007 9:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
Hevoos
n00b
n00b


Joined: 21 May 2007
Posts: 4

PostPosted: Tue May 22, 2007 1:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
tboloo
Guru
Guru


Joined: 20 Jan 2006
Posts: 403
Location: Grodzisq, Poland

PostPosted: Tue May 22, 2007 2:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
ComicBookGuy
n00b
n00b


Joined: 13 Apr 2007
Posts: 28

PostPosted: Tue May 22, 2007 3:17 pm    Post subject: Reply with quote

I didn't know until yesterday, that -X meant that the flag X is not used.
Back to top
View user's profile Send private message
skellr
l33t
l33t


Joined: 18 Jun 2005
Posts: 976
Location: The Village, Portmeirion

PostPosted: Tue May 22, 2007 10:18 pm    Post subject: Reply with quote

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. :lol:

Welcome to Gentoo
Once you get the basics down it will be cake to maintain.
Back to top
View user's profile Send private message
Hevoos
n00b
n00b


Joined: 21 May 2007
Posts: 4

PostPosted: Sat May 26, 2007 10:09 am    Post subject: Reply with quote

Thanks for the replies!

Ive now compiled Firefox successfully and I really like the speed of gentoo! :D

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things 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