LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (http://www.linuxquestions.org/questions/red-hat-31/)
-   -   can not install/compile PHP on 64bit RHEL 6.3 : Error configure: error: utf8_mime2tex (http://www.linuxquestions.org/questions/red-hat-31/can-not-install-compile-php-on-64bit-rhel-6-3-error-configure-error-utf8_mime2tex-4175443007/)

sanjivus 12-26-2012 01:07 PM

can not install/compile PHP on 64bit RHEL 6.3 : Error configure: error: utf8_mime2tex
 
I have successfully installed openssl and apache and i am facing problem installing php5.4.9.


Code:

./configure \
--prefix=/usr/local/php5 \
--with-apxs2=/usr/local/apache2/bin/apxs \
--with-config-file-path=/usr/local/php5/conf \
--with-gd \
--with-png \
--with-jpeg \
--with-zlib \
--with-freetype \
--enable-gd-native-ttf \
--with-informix=/home/informix \
--with-pdo-informix=/home/informix \
--with-mssql=/usr/local/freetds \
--with-openssl=/usr/local/ssl \
--with-openssl-dir=/usr/local/ssl \
--enable-shmop \
--enable-sockets \
--enable-sysvshm \
--with-curl \
--with-curlwrappers \
--enable-xml \
--enable-pdo \
--enable-shared \
--with-imap \
--with-imap-ssl \
--with-kerberos \
--enable-pcntl

I am getting the following error.

Code:

checking if iconv supports errno... yes
checking if your cpp allows macro usage in include lines... yes
checking for IMAP support... yes
checking for IMAP Kerberos support... yes
checking for IMAP SSL support... yes
checking for utf8_mime2text signature... new
checking for U8T_DECOMPOSE...
configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information.

I did some research and found that I have to install libc-client-devel, but it is not available for 64 bit RHEL 6.3

Code:

[root@lab1 bin]# yum install libc-client-devel.i386
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
Updating certificate-based repositories.

Please use yum-config-manager to configure which software
repositories are used with Red Hat Subscription Management.

rhel-6-server-cf-tools-1-rpms                                                                      | 2.8 kB    00:00   
rhel-6-server-rhev-agent-rpms                                                                      | 2.8 kB    00:00   
rhel-6-server-rpms                                                                                  | 3.7 kB    00:00   
Setting up Install Process
No package libc-client-devel.i386 available.
Error: Nothing to do
[root@lab1 bin]# yum install libc-client-devel
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
Updating certificate-based repositories.

Please use yum-config-manager to configure which software
repositories are used with Red Hat Subscription Management.

rhel-6-server-cf-tools-1-rpms                                                                      | 2.8 kB    00:00   
rhel-6-server-rhev-agent-rpms                                                                      | 2.8 kB    00:00   
rhel-6-server-rpms                                                                                  | 3.7 kB    00:00   
Setting up Install Process
No package libc-client-devel available.
Error: Nothing to do
[root@lab1 bin]# yum install libc-client*
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
Updating certificate-based repositories.

Please use yum-config-manager to configure which software
repositories are used with Red Hat Subscription Management.

rhel-6-server-cf-tools-1-rpms                                                                      | 2.8 kB    00:00   
rhel-6-server-rhev-agent-rpms                                                                      | 2.8 kB    00:00   
rhel-6-server-rpms                                                                                  | 3.7 kB    00:00   
Setting up Install Process
No package libc-client* available.
Error: Nothing to do
[root@lab1 bin]# yum list libc-client*
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
Updating certificate-based repositories.

Please use yum-config-manager to configure which software
repositories are used with Red Hat Subscription Management.

rhel-6-server-cf-tools-1-rpms                                                                      | 2.8 kB    00:00   
rhel-6-server-rhev-agent-rpms                                                                      | 2.8 kB    00:00   
rhel-6-server-rpms                                                                                  | 3.7 kB    00:00   
Error: No matching Packages to list
[root@lab1 bin]# yum list libc-*
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
Updating certificate-based repositories.

Please use yum-config-manager to configure which software
repositories are used with Red Hat Subscription Management.

rhel-6-server-cf-tools-1-rpms                                                                      | 2.8 kB    00:00   
rhel-6-server-rhev-agent-rpms                                                                      | 2.8 kB    00:00   
rhel-6-server-rpms                                                                                  | 3.7 kB    00:00   
Error: No matching Packages to list
[root@lab1 bin]#


sanjivus 12-26-2012 05:24 PM

Following resolved the problem.


cd /usr/local
wget ftp://ftp.cac.washington.edu/imap/c-client.tar.Z
tar xvfz c-client.tar.Z
cd imap-2007f

edit /usr/local/imap-2007f/src/osdep/unix/os_sv2.c
change from
#define FD_SETSIZE 256
to
#define FD_SETSIZE 32768

make ln5 SSLTYPE=unix.nopwd EXTRACFLAGS=-fPIC
mkdir lib
mkdir includes
cp c-client/*.c lib/
cp c-client/*.h includes/
cp c-client/c-client.a /lib/libc-client.a
ln -s /usr/local/imap-2007f/lib/libc-client.a /usr/lib/libc-client.a


All times are GMT -5. The time now is 01:53 PM.