Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
php non c'e' la funzione bcdiv?[RISOLTO]
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
evilripper
n00b
n00b


Joined: 28 Feb 2007
Posts: 24
Location: rimini,italy

PostPosted: Tue Jul 03, 2007 12:49 pm    Post subject: php non c'e' la funzione bcdiv?[RISOLTO] Reply with quote

Sono riuscito ad avere un server lamp con gentoo e va tutto solo che non mi trova la funzione bcdiv? 8O 8O

Fatal error: Call to undefined function bcdiv()

com'e' che non c'e'?

la versione che mi ha emerso e' questa:

Version 5.2.2-pl1-gentoo

ciao grazie per eventuali info.
_________________
http://www.evilripper.net


Last edited by evilripper on Tue Jul 03, 2007 4:41 pm; edited 1 time in total
Back to top
View user's profile Send private message
Scen
Retired Dev
Retired Dev


Joined: 29 Jul 2003
Posts: 2470
Location: Padova, Italy

PostPosted: Tue Jul 03, 2007 12:51 pm    Post subject: Reply with quote

Posta l'output di
Code:

emerge -pv php

altrimenti è difficile capire cosa hai/non hai abilitato tra i supporti di PHP.

[EDIT]
Probabilmente hai compilato PHP con la use "bcmath" disabilitata.

http://it.php.net/manual/it/ref.bc.php
http://it.php.net/manual/it/function.bcdiv.php
[/EDIT]
_________________
I was born in a deep forest/I wish I could live here all my life/I am made from stones and roots/My home, these woods and roads
All my life I loved this sound/Of the woods all around/Eagles flies where the winds blows free
Journey is my destiny
Back to top
View user's profile Send private message
evilripper
n00b
n00b


Joined: 28 Feb 2007
Posts: 24
Location: rimini,italy

PostPosted: Tue Jul 03, 2007 3:55 pm    Post subject: Reply with quote

Scen wrote:


[EDIT]
Probabilmente hai compilato PHP con la use "bcmath" disabilitata.


si e' cosi' c'e' -bcmath

[nubbio mode on]
1. non ho capito bene sebbene abbia letto la parte relativa(e' la cosa che fatico di piu' a comprendere di gentoo)
http://www.gentoo.org/doc/it/handbook/handbook-sparc.xml?part=2&chap=2
dove devo mettere la variabile use bcmath ? :(

in make.defaults?
in make.conf?
in package.use?
o come variabile di ambiente?

voi come fate a decidere dove metterla(mi fate degli esempi? ho fatto l'emerge di firefox e ci ha messo una vita... probabilmente perche' avevo le variabili use sballate? )?

2. come faccio a fare il riemerge visto che l'ho gia' installato php?

3. dove e' stata impostata a -bcmath era cosi' nel default?

[nubbio mode off]

thanks
_________________
http://www.evilripper.net
Back to top
View user's profile Send private message
Scen
Retired Dev
Retired Dev


Joined: 29 Jul 2003
Posts: 2470
Location: Padova, Italy

PostPosted: Tue Jul 03, 2007 4:03 pm    Post subject: Reply with quote

evilripper wrote:
[nubbio mode on]
1. non ho capito bene sebbene abbia letto la parte relativa(e' la cosa che fatico di piu' a comprendere di gentoo)
http://www.gentoo.org/doc/it/handbook/handbook-sparc.xml?part=2&chap=2
dove devo mettere la variabile use bcmath ? :(

in make.defaults?
in make.conf?
in package.use?
o come variabile di ambiente?

voi come fate a decidere dove metterla(mi fate degli esempi?

Premessa: make.defaults NON VA MAI MODIFICATO :roll:

Regola semplice ma efficace:

  • Se è una USE "globale", impostala in /etc/make.conf, in modo che l'impostazione si rifletta su TUTTI i pacchetti
  • Se è una USE "locale", impostala per i pacchetti interessati in /etc/portage/package.use.


evilripper wrote:

ho fatto l'emerge di firefox e ci ha messo una vita... probabilmente perche' avevo le variabili use sballate? )?

Probabilmente hai installato la versione "da sorgente", ed ovviamente firefox è un bel programmone, per cui ci sta un bel pò; per risparmiare tempo puoi installare la versione binaria firefox-bin.

evilripper wrote:

2. come faccio a fare il riemerge visto che l'ho gia' installato php?

use l'opzione --newuse (abbreviato -N) di emerge.

evilripper wrote:

3. dove e' stata impostata a -bcmath era cosi' nel default?

Yes. Se lanci
Code:

emerge --info | grep USE

vedrai quali sono le impostazioni predefinite globali di USE.
_________________
I was born in a deep forest/I wish I could live here all my life/I am made from stones and roots/My home, these woods and roads
All my life I loved this sound/Of the woods all around/Eagles flies where the winds blows free
Journey is my destiny
Back to top
View user's profile Send private message
lavish
Bodhisattva
Bodhisattva


Joined: 13 Sep 2004
Posts: 4296

PostPosted: Tue Jul 03, 2007 4:05 pm    Post subject: Reply with quote

Moved from Forum di discussione italiano to Forum italiano (Italian).

Perche' sarebbe OT il thread? :P
Ricordati di mettere il tag [RISOLTO], ciao ;)
_________________
minimalblue.com | secgroup.github.io/
Back to top
View user's profile Send private message
evilripper
n00b
n00b


Joined: 28 Feb 2007
Posts: 24
Location: rimini,italy

PostPosted: Tue Jul 03, 2007 4:40 pm    Post subject: Reply with quote

grazie mille a tutti!!

ho messo la use "locale" in /etc/portage/package.use (dev-lang/php bcmath),
ho riemerso facendo emerge -N (grazie Scen)
ho riavviato apache e va tutto a scheggia!!

Ciao!
_________________
http://www.evilripper.net
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) 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