Install PHP

Ask questions regarding Gentoox, Gentoo and Linux in general in these forums and we'll do our best to help you!
Post Reply
rinse
Newbie
Posts: 6
Joined: Sat Dec 16, 2006 4:44 pm
Location: Netherlands
Contact:

Install PHP

Post by rinse » Sat Dec 16, 2006 4:54 pm

I like to install PHP on my BOX, but i still got a error when i use emerge php ,

* 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.

Who to fix this ?

rinse
Newbie
Posts: 6
Joined: Sat Dec 16, 2006 4:44 pm
Location: Netherlands
Contact:

Yes it works

Post by rinse » Sun Dec 17, 2006 8:05 pm

PHP is running now, the only problem i have is with PHPsysinfo,
Warning: Division by zero in /var/www/localhost/htdocs/phpsysinfo/includes/xml/filesystems.php on line 125

Any ideas ?

Rinse
http://pasma.dyndns.org:8000/phpsysinfo

li_gangyi
Newbie
Posts: 2
Joined: Tue Dec 19, 2006 3:43 pm

Post by li_gangyi » Tue Dec 19, 2006 3:45 pm

I;m here in the same spot, apache is up and running, so is Mysql...just this weird error about threads not being compatible with sharedmem
what did you do to make it work btw?

User avatar
ShALLaX
Site Admin
Posts: 1973
Joined: Sun Aug 10, 2003 9:25 pm
Location: England
Contact:

Post by ShALLaX » Wed Dec 20, 2006 12:13 pm

Yes, I wish people would post their solutions. In this case, the solution is to edit /etc/make.conf. Look for the "use=" line, and remove "sharedmem" from this line.
The original Xbox adaptation of Gentoo

rinse
Newbie
Posts: 6
Joined: Sat Dec 16, 2006 4:44 pm
Location: Netherlands
Contact:

Post by rinse » Wed Dec 20, 2006 6:35 pm

edit /etc/make.conf and remove the "sharedmem" and added "itk" in de "use" line and run emerge apache.

Rinse

Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests