Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Mon Dec 01, 2003 2:41 pm 
Offline
Junior Member

Joined: Mon Dec 01, 2003 2:09 pm
Posts: 20
AOL: cheshire_cat_sf@yahoo.com
Location: Oakland, CA
So I got my Linode last night (thanks for the quick setup, Chris!) and selected a Gentoo distro as its the most BSD-like in terms of installing new apps. I'm not sure if I need to do anything special after using the distro wizard to install it because neither apache nor any email programs seem to be installed.

So I'm assuming that I need to install them myself with this particular distro. I've tried emerge apache-2.0.48 but I get this error message:

Quote:
Calculating dependencies
emerge: there are no masked or unmasked ebuilds to satisfy "apache-2.0.48".

!!! Error calculating dependencies. Please correct.


I seem to get this when I try to emerge anything, although emerge sync did seem to work fine. Can someone point out to me what I'm doing incorrectly?


Top
   
 Post subject:
PostPosted: Mon Dec 01, 2003 4:40 pm 
Offline
Senior Newbie

Joined: Wed Sep 03, 2003 2:58 pm
Posts: 19
Drop the -2.0.48 and try

Code:
emerge -p apache


-p means pretend. Emerge will find 2.0.48-r1, which is the current unmasked version.

If you've emerged gentoolkit (highly recommended)

Code:
etcat versions apache


will show you what's available.

Oh, and I should ask, you've set the apache2 USE flag and any other flags that apache (or mod_php, mysql) might appreciate, right?


Top
   
 Post subject: Erm, uh....
PostPosted: Tue Dec 02, 2003 4:15 am 
Offline
Junior Member

Joined: Mon Dec 01, 2003 2:09 pm
Posts: 20
AOL: cheshire_cat_sf@yahoo.com
Location: Oakland, CA
alphonso wrote:
Drop the -2.0.48 and try

Code:
emerge -p apache



I eventually managed to figure out this. Heh.


Quote:
If you've emerged gentoolkit (highly recommended)

Code:
etcat versions apache


will show you what's available.

Oh, and I should ask, you've set the apache2 USE flag and any other flags that apache (or mod_php, mysql) might appreciate, right?


Errrm...no. Sorry I'm totally new to Gentoo so this is a learning process. I've skimmed the FAQ on emerge over on Gentoo's website but maybe you can explain in clearer detail the purpose of USE?

Thanks for your help! :)


Top
   
 Post subject:
PostPosted: Tue Dec 02, 2003 9:10 am 
Offline
Senior Member

Joined: Thu Oct 30, 2003 11:27 am
Posts: 52
Website: http://www.wasteland.org/
Location: Rochester, NY
The USE flags basically turn on features. So if you emerge say php and want it to have gd support for drawing graphics, you'd add "gd" to your use flags. Your use flags are defined near the top of /etc/make.conf. There is a list on the gentoo web site in the documentation, or you could emerge ufed which is the use flag editor. It will let you go through and set all the flags appropriately.


Top
   
 Post subject:
PostPosted: Tue Dec 02, 2003 5:54 pm 
Offline
Junior Member

Joined: Mon Dec 01, 2003 2:09 pm
Posts: 20
AOL: cheshire_cat_sf@yahoo.com
Location: Oakland, CA
dmuench wrote:
The USE flags basically turn on features. So if you emerge say php and want it to have gd support for drawing graphics, you'd add "gd" to your use flags. Your use flags are defined near the top of /etc/make.conf. There is a list on the gentoo web site in the documentation, or you could emerge ufed which is the use flag editor. It will let you go through and set all the flags appropriately.


So say I didn't have "gd" in my USE flags. Would it then compile PHP (and other apps) without gd support? So basically USE flags let the portage system know what options to compile apps with?

It might be that I didn't look hard enough but Gentoo's website did a fair job of explaining HOW to use USE, but not such a great job about what it is. :)

Again, thanks for your help.


Top
   
 Post subject:
PostPosted: Wed Dec 03, 2003 9:52 am 
Offline
Senior Member

Joined: Thu Oct 30, 2003 11:27 am
Posts: 52
Website: http://www.wasteland.org/
Location: Rochester, NY
Exactly. Did you see this doc, which is on the Gentoo documentation page?

http://www.gentoo.org/doc/en/use-howto.xml

I think it covers most everything other than ufed, which should be self explanatory once you emerge it.


Top
   
 Post subject:
PostPosted: Wed Dec 03, 2003 12:39 pm 
Offline
Senior Newbie

Joined: Wed Sep 03, 2003 2:58 pm
Posts: 19
The first thing I did was read the descriptions of every USE flag and
turned off some that even Gentoo set as defaults.

Since I didn't want X or X-support for newly-emerged apps I turned
that off.

Oh, and watch out for any emerge which modifies make.conf, since
Gentoo will happily overwrite Caker's custom CFLAGS and you'll
find yourself compiling unoptimized apps. I did this for a long time.
(How long, I'm too embarassed to say).

Have fun!


Top
   
 Post subject: Overwritting
PostPosted: Sat Dec 06, 2003 10:50 pm 
Offline
Junior Member

Joined: Mon Dec 01, 2003 2:09 pm
Posts: 20
AOL: cheshire_cat_sf@yahoo.com
Location: Oakland, CA
alphonso wrote:
Oh, and watch out for any emerge which modifies make.conf, since
Gentoo will happily overwrite Caker's custom CFLAGS and you'll
find yourself compiling unoptimized apps. I did this for a long time.
(How long, I'm too embarassed to say).

Have fun!


Errm...how do I know which ones will overwrite the .conf files?


Top
   
 Post subject:
PostPosted: Sat Dec 06, 2003 11:23 pm 
Offline
Senior Member

Joined: Thu Oct 30, 2003 11:27 am
Posts: 52
Website: http://www.wasteland.org/
Location: Rochester, NY
After you do an emerge that has updated config files, it should say so at the end, and suggest you update them. The easiest way to do that is to run etc-update, which will scan the system for updated config files and let you selectively replace or keep your originals.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


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

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group