Thanks for your reply, I fixed the problem by re-installing Gentoox. Too bad I didn't see your reply before hand. Thanks for your help though.
Now I'm trying to install apache with PHP so I'm following the tuturial that Shallax made. "in the tutorials section" and I followed the part upto where it says:
"4) emerge sync
5) pico -w /etc/make.conf 6) Ensure that "apache2" and "php" are in the USE="" line 7) emerge apache dev-lang/php"
However, upon waiting through "emerge apache dev-lang/php" it says the following at the end of the installation.
* checking php-patchset-5.1.6-r3.tar.bz2 ;-) ... [ ok ]
* Determining SAPI(s) to build
* Enabled SAPI: cli
* Disabled SAPI: cgi
* Disabled SAPI: apache
* Enabled SAPI: apache2
*
* If this package fails with a fatal error about Apache2 not having
* been compiled with a compatible MPM, this is normally because you
* need to toggle the 'threads' USE flag.
*
* If 'threads' is off, try switching it on.
* If 'threads' is on, try switching it off.
*
*
* USE flag 'truetype' needs one of these additional flag(s) set:
* gd gd-external
*
* 'gd' was automatically selected and enabled.
* You can change that by enabling/disabling those flags accordingly
* in /etc/portage/package.use.
*
*
* USE flag 'sharedmem' conflicts with these USE flag(s):
* threads
*
* You must disable these conflicting flags before you can emerge this package.
* You can do this by disabling these flags in /etc/portage/package.use:
* =dev-lang/php-5.1.6-r6 -threads
*
!!! ERROR: dev-lang/php-5.1.6-r6 failed.
Call stack:
ebuild.sh, line 1562: Called dyn_setup
ebuild.sh, line 665: Called pkg_setup
php-5.1.6-r6.ebuild, line 106: Called php5_1-sapi_pkg_setup
php5_1-sapi.eclass, line 270: Called php5_1-sapi_check_use_flags
php5_1-sapi.eclass, line 196: Called phpconfutils_use_conflict 'sharedmem' 'threads'
phpconfutils.eclass, line 163: Called die
!!! Conflicting USE flags found
!!! If you need support, post the topmost build error, and the call stack if relevant.
Okay so I found out that I should switch the thread flag to -thread. And it got further this time in the emerge process. However, near the end of emerge apache dev-lang/php it says the following this time "as opposed to the last error message
!!! ERROR: dev-lang/php-5.1.6-r6 failed.
Call stack:
ebuild.sh, line 1546: Called dyn_compile
ebuild.sh, line 937: Called src_compile
php-5.1.6-r6.ebuild, line 173: Called src_compile_normal
php-5.1.6-r6.ebuild, line 339: Called php5_1-sapi_src_compile
php5_1-sapi.eclass, line 577: Called die
!!! make failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
Does anyone have any ideas on what I can do?? I'm really running out of ideas. It doesn't even say what to do this time? So I have no idea what to look for.