In reply to:
So you mean libbcmath is already came with DreamHost's default version but libiconv is not? Therefore, if my chat forum need both I will need to compile my own PHP from scratch? or I just have to enable them in the PHP.ini?
Well, no ... I'm sorry I was not more clear. What I was trying to say is that "iconvert" *is* available on Dreamhost, but that turns out not to be the relevant question in your case, as what you are needing is the *PHP library libiconv , which is a different thing. (see my previous followup post).
My tests via phpinfo() indicate that libiconv is *not* installed by default (and if that is what DH support was talking about with you, then they are correct). The PHP 4 custopm install script you were using *does* prepare this for you, so that should not be an issue if you use this install script.
Secondly, the error message you provided does not appear to be related to libiconv, but rather is related to bcmath being missing. Per the manual page that I linked from php.net, is *is* shipped with PHP 4.4.7, but needs to be enabled *at compile time* (you can not do it just via php.ini) - you need to compile PHP bcmath enabled, as described here. Tat is why I mentioned in earlier in this thread.
To do this, all you have to do was add the line "--enable-bcmath" to the "# What PHP features do you want enabled?" section of the install scrikpt, and when it is completed you should be good to go (the install script handles the libiconv already).
So, in that install script, instead of:
# What PHP features do you want enabled?
PHPFEATURES="--prefix=${INSTALLDIR}
--with-config-file-path=${INSTALLDIR}/etc/php4
--enable-force-cgi-redirect
--with-xml --with-libxml-dir=${INSTALLDIR}
--with-freetype-dir=${INSTALLDIR}
--enable-soap
--with-xsl=${INSTALLDIR}
--with-openssl=/usr
--with-mhash=${INSTALLDIR}
--with-mcrypt=${INSTALLDIR}
--with-zlib-dir=${INSTALLDIR}
--with-jpeg-dir=/usr
--with-png-dir=/usr
--with-gd
--enable-gd-native-ttf
--enable-ftp
--enable-sockets
--enable-wddx
--with-iconv=${INSTALLDIR}
--enable-sqlite-utf8
--enable-calendar
--with-curl=${INSTALLDIR}
--enable-mbstring
--enable-mbregex
--with-mysql=/usr --with-mysqli
--with-imap=${INSTALLDIR}"
# ---- end of user-editable bits. Hopefully! ----
You add the line to enable bcmath like so:
# What PHP features do you want enabled?
PHPFEATURES="--prefix=${INSTALLDIR}
--with-config-file-path=${INSTALLDIR}/etc/php4
--enable-bcmath
--enable-force-cgi-redirect
--with-xml --with-libxml-dir=${INSTALLDIR}
--with-freetype-dir=${INSTALLDIR}
--enable-soap
--with-xsl=${INSTALLDIR}
--with-openssl=/usr
--with-mhash=${INSTALLDIR}
--with-mcrypt=${INSTALLDIR}
--with-zlib-dir=${INSTALLDIR}
--with-jpeg-dir=/usr
--with-png-dir=/usr
--with-gd
--enable-gd-native-ttf
--enable-ftp
--enable-sockets
--enable-wddx
--with-iconv=${INSTALLDIR}
--enable-sqlite-utf8
--enable-calendar
--with-curl=${INSTALLDIR}
--enable-mbstring
--enable-mbregex
--with-mysql=/usr --with-mysqli
--with-imap=${INSTALLDIR}"
# ---- end of user-editable bits. Hopefully! ----
.Then, when you run the install script, you should have as a result a PHP 4.4.7 compilation with libiconv *and* bcmath installed/enabled (which are the two issues you have reported so far).
--rlparker