problem in php installation..


 
Thread Tools Search this Thread
Operating Systems Solaris problem in php installation..
# 1  
Old 03-10-2011
problem in php installation..

hi am senthil,

am trying to install PHP in my solaris 10 x86 ...
i installed oracle,apache,tomcat,mysql ..
the only thing am missing is PHP..

i tried to install php using ./configure ..

my ./configure command..

Code:
./configure \
--with-apxs=/usr/apache/bin/apxs \
--with-libxml-dir=/usr/include/libxml2/libxml \
--with-config-file-path=/etc/apache2 \
--with-mysql=shared,/opt/mysql/mysql \
--with-mysqli=shared,/opt/mysql/mysql/bin/mysql_config

first everthing runs well ..
finally it showed me ..

"Thanking for using PHP"
it didn throw me any error..
when i typed
make command..

it showed me some messages and
finally i got this error..

Code:
Undefined                       first referenced
 symbol                                in file
libiconv_close                        ext/iconv/.libs/iconv.o
libiconv_open                        ext/iconv/.libs/iconv.o
libiconv                                            ext/iconv/.libs/iconv.o
ld: fatal: Symbol referencing errors. No output written to sapi/cli/php
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `sapi/cli/php'

i dono why am getting this error..
tell me what i am missing ..
need to sort this problem out soon..
thanks...

---------- Post updated at 04:10 PM ---------- Previous update was at 02:13 PM ----------

now am getting this error ..

Code:
Undefined                          first referenced
 symbol                              in file
libiconv_close                    ext/gd/libgd/.libs/gdkanji.o
libiconv_open                     ext/gd/libgd/.libs/gdkanji.o
libiconv                              ext/gd/libgd/.libs/gdkanji.o
ld: fatal: Symbol referencing errors. No output written to sapi/cli/php
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `sapi/cli/php'

after changing my
./configure command..

Code:
./configure \
--with-apxs=/usr/apache/bin/apxs \
--with-libxml-dir=/usr/include/libxml2/libxml \
--with-config-file-path=/etc/apache2 \
--with-mysql=shared,/opt/mysql/mysql \
--with-mysqli=shared,/opt/mysql/mysql/bin/mysql_config \
--with-iconv-dir=/usr/local \
--with-xpm-dir=/usr/share/gnome/gperfmeter --with-gd --with-jpeg-dir=/usr/sfw/lib/gimp/2.0/plug-ins \
--with-png-dir=/usr/sfw/lib/gimp/2.0/plug-ins/ --with-zlib --enable-mbstring

can anyone tell me where am making mistake....

---------- Post updated at 07:02 PM ---------- Previous update was at 04:10 PM ----------

m getting the following error when i tried this command ..

Code:
./config.nice | grep iconv

./configure: ./build/shtool: cannot execute
./configure: ./build/shtool: cannot execute
./configure: ./build/shtool: cannot execute
./configure: ./build/shtool: cannot execute
./configure: !: not found
configure: warning: bison versions supported for regeneration of the  Zend/PHP parsers: 1.28 1.35 1.75 1.875 2.0 2.1 2.2 2.3 2.4 2.4.1 (found:  none).
configure: warning: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
./configure: !: not found
./configure: !: not found
./configure: ./build/shtool: cannot execute
checking for iconv support... yes
./configure: ./build/shtool: cannot execute
checking for iconv... (cached) yes
checking if iconv is glibc's... no
checking if using GNU libiconv... no
checking if iconv is Konstantin Chuguev's... no
checking if iconv supports errno... no
./configure: ./build/shtool: cannot execute
./configure: ./build/shtool: cannot execute
./configure: ./build/shtool: cannot execute
./configure: ./build/shtool: cannot execute
./configure: ./build/shtool: cannot execute
./configure: ./build/shtool: cannot execute
./configure: ./build/shtool: cannot execute
configure: warning: lemon versions supported for regeneration of libsqlite parsers: 1.0 (found: none).
./configure: ./build/shtool: cannot execute
checking iconv dir for XMLRPC-EPI... /usr/local
configure: warning: bison versions supported for regeneration of the  Zend/PHP parsers: 1.28 1.35 1.75 1.875 2.0 2.1 2.2 2.3 2.4 2.4.1 (found:  none).
./configure: ./build/shtool: cannot execute
./configure: ./build/shtool: cannot execute
./configure: ./build/shtool: cannot execute
./configure: ./build/shtool: cannot execute
./configure: ./build/shtool: cannot execute

what does this error show...
can u lead me .. to solve this error..

Last edited by pludi; 03-11-2011 at 03:38 AM..
# 2  
Old 03-10-2011
It would seem that you do not have libiconv installed.
# 3  
Old 03-11-2011
thanks for the reply .. but i installed libiconv ..

i have added libiconv using

pkgadd -d libiconv-1.13.1-sol10-x86-local

and when i find libiconv

it shows ..
find / -name "libiconv"

/usr/local/doc/libiconv
/usr/local/share/doc/libiconv

---------- Post updated 2011-03-11 at 09:55 AM ---------- Previous update was 2011-03-10 at 08:31 PM ----------

can u guide me where am i going wrong ..

---------- Post updated at 11:34 AM ---------- Previous update was at 09:55 AM ----------

this problem is killing me for days...

i googled and got some hints ..saying..
they asked me to add manually EXTRA_LIBS - libconv in Makefile ..

i found that line when i less Makefile ..
but when i tried to edit using vi command .. i couldn find the line..

plz tel me the reason...
# 4  
Old 03-11-2011
Why not just download a binary PHP5 package from Freeware for Solaris

If you want to continue building PHP5, you need to check where the iconv library was installed and modify your ./configure command line accordingly. It is probably in /usr/local/lib.
# 5  
Old 04-15-2011
Adding --with-iconv-dir=/usr/local/lib

where libiconv.so live in my ./configure command solve the same probleme I had...
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Problem with rpm installation

When i try to install rpm with rpm -ivh ntp* it shows package is already install and when i query for same package it shows package is not installed ?How to resolve DSA signature error for rpm? How to choose rpm package except redhat version(el5) and architecture(i386) and site link for that? (5 Replies)
Discussion started by: amitbharad
5 Replies

2. Shell Programming and Scripting

mdbtools installation problem

i have been tryin to install mdbtools in my rhel 5... ./configure is working but at the time of make it gives an error pls help error log odbc.c:778: warning: conflicting types for 'bind_columns' odbc.c:778: error: static declaration of 'bind_columns' follows non-static declaration... (0 Replies)
Discussion started by: born
0 Replies

3. Solaris

php package installation problem

can u tell me the procedure to install php 5 using package .. i downloaded php-5.2.1-sol10-x86-local.gz from sunfreeware i have added package using pkgadd -d php-5.2.1-sol10-x86-local then i have added these two lines in httpd.conf LoadModule php5_module modules/libphp5.so... (7 Replies)
Discussion started by: senkerth
7 Replies

4. Solaris

php installation problem..

hi am senthil, i want to install php 5 in my solaris 10 x86server.. i already enabled apache and my mysql 5 is woking fine.. i want to know the procedure to install php.. i googled it and got some info .. i have doubt in the following thing /configure -with-apache2=/opt/httpd-2.0.49... (1 Reply)
Discussion started by: senkerth
1 Replies

5. Solaris

php installation ..

hi.. i need to install or enable php on solaris 10 x86.. can u guide me .. tell me as soon as possible.. thanks... ---------- Post updated at 12:17 PM ---------- Previous update was at 10:38 AM ---------- tell me as soon as possible... (1 Reply)
Discussion started by: senkerth
1 Replies

6. UNIX for Advanced & Expert Users

PHP installation problem

Hey Linux experts, I am very new to Linux and PHP. I am trying to install php-5.3.2 on Linux(Centos), but I am getting an error as given below: cc1: out of memory allocating 2036 bytes after a total of 63528960 bytes make: *** Error 1 What is exactly meant by this error?Can someone guide... (5 Replies)
Discussion started by: mahesh_raghu
5 Replies

7. Solaris

dmidecode installation problem

Today I had to check RAM info on solaris 10 system. I know that there is 4 GB, 2 modules , but I really needed more details like exact model, frequency and so on I downloaded several versions of dmidecode, but non of them worked. At first I found that there is no gcc in the system, well I... (5 Replies)
Discussion started by: Zorbeg
5 Replies

8. Red Hat

RHEL 5 installation problem

Hi everyone, I m new here and I have few questions regarding RHEL installation. The story goes like this... I have a PC with the following specifications: 1. ASUS P5N-MX motherboard with on-board GForce 7050/nforce 610i chipset 2. Intel Pentium Dual Core Processor 3. Two SATA HDD(250GB + 160GB)... (4 Replies)
Discussion started by: willa
4 Replies

9. Ubuntu

kubuntu installation problem

Hi, i had a problem during kubuntu installation from ubuntu and now i can't start ubuntu correctly. it loads only desktop and doesn't work. Is there a way to solve this problem? I have ubuntu 8.10 2.6.27-7 generic (0 Replies)
Discussion started by: littleboyblu
0 Replies

10. Shell Programming and Scripting

Installation problem

Hi , I have installed a s/w for work tracking (work tracking fecilitator) in linix OS. all my other perl programs are working fine. i have completed the backend part of it but unable to use this application . Please guide me regarding this . I have downloaded the source from... (4 Replies)
Discussion started by: alma
4 Replies
Login or Register to Ask a Question