help with php

Daniel Bossert daniel.bossert at dabo.ch
Tue Dec 2 22:58:09 CET 2014


Hi Carlos

Always set $PATH to the end:
bash-3.2# export PATH=/usr/ccs/bin:/usr/sfw/bin:$PATH

Hope this help!

Kind regards
Daniel


Am 02.12.2014 um 22:53 schrieb Carlos Andrés Loaiza Osorio:
> i´m so sorry, really this process is to sloo, i´m export some env vars 
> and the advance is here but get other errors, many thanks to all . really
>
> bash-3.2# export PATH=$PATH:/usr/ccs/bin:/usr/sfw/bin
>
> bash-3.2# ./pecl install oci8
>
> downloading oci8-2.0.8.tgz ...
>
> Starting to download oci8-2.0.8.tgz (190,854 bytes)
>
> .....................................done: 190,854 bytes
>
> 11 source files, building
>
> WARNING: php_bin /opt/csw/php5/bin/php appears to have a suffix 
> 5/bin/php, but config variable php_suffix does not match
>
> running: phpize
>
> Configuring for:
>
> PHP Api Version:         20090626
>
> Zend Module Api No:      20090626
>
> Zend Extension Api No:   220090626
>
> configure.in:3 <http://configure.in:3/>: warning: prefer named diversions
>
> configure.in:3 <http://configure.in:3/>: warning: prefer named diversions
>
> Please provide the path to the ORACLE_HOME directory. Use 
> 'instantclient,/path/to/instant/client/lib' if you're compiling with 
> Oracle Instant Client [autodetect] : 
> /oracle/app/oracle/product/11.2.0/dbhome_1/
>
> building in /tmp/pear/temp/pear-build-defaultuserA_a4oo/oci8-2.0.8
>
> running: /tmp/pear/temp/oci8/configure 
> --with-oci8=/oracle/app/oracle/product/11.2.0/dbhome_1/
>
> checking for grep that handles long lines and -e... /opt/csw/bin/ggrep
>
> checking for egrep... /opt/csw/bin/ggrep -E
>
> checking for a sed that does not truncate output... /opt/csw/bin/gsed
>
> checking for cc... no
>
> checking for gcc... gcc
>
> checking whether the C compiler works... yes
>
> checking for C compiler default output file name... a.out
>
> checking for suffix of executables...
>
> checking whether we are cross compiling... no
>
> checking for suffix of object files... o
>
> checking whether we are using the GNU C compiler... yes
>
> checking whether gcc accepts -g... yes
>
> checking for gcc option to accept ISO C89... none needed
>
> checking how to run the C preprocessor... gcc -E
>
> checking for icc... no
>
> checking for suncc... no
>
> checking whether gcc and cc understand -c and -o together... yes
>
> checking for system library directory... lib
>
> checking if compiler supports -R... yes
>
> checking build system type... sparc-sun-solaris2.10
>
> checking host system type... sparc-sun-solaris2.10
>
> checking target system type... sparc-sun-solaris2.10
>
> checking for PHP prefix... /opt/csw/php5
>
> checking for PHP includes... -I/opt/csw/php5/include/php 
> -I/opt/csw/php5/include/php/main -I/opt/csw/php5/include/php/TSRM 
> -I/opt/csw/php5/include/php/Zend -I/opt/csw/php5/include/php/ext 
> -I/opt/csw/php5/include/php/ext/date/lib
>
> checking for PHP extension directory... 
> /opt/csw/php5/lib/php/extensions/no-debug-non-zts-20090626
>
> checking for PHP installed headers prefix... /opt/csw/php5/include/php
>
> checking if debug is enabled... no
>
> checking if zts is enabled... no
>
> checking for re2c... no
>
> configure: WARNING: You will need re2c 0.13.4 or later if you want to 
> regenerate PHP parsers.
>
> checking for gawk... gawk
>
> checking for Oracle Database OCI8 support... yes, shared
>
> checking PHP version... 5.3.21, ok
>
> checking OCI8 DTrace support... no
>
> checking size of long int... 4
>
> checking checking if we're on a 64-bit platform... no
>
> checking Oracle ORACLE_HOME install directory... 
> /oracle/app/oracle/product/11.2.0/dbhome_1/
>
> checking ORACLE_HOME library validity... lib
>
> checking Oracle library version compatibility... 11.1
>
> checking for ld used by gcc... /usr/ccs/bin/ld
>
> checking if the linker (/usr/ccs/bin/ld) is GNU ld... no
>
> checking for /usr/ccs/bin/ld option to reload object files... -r
>
> checking for BSD-compatible nm... /usr/ccs/bin/nm -p
>
> checking whether ln -s works... yes
>
> checking how to recognize dependent libraries... pass_all
>
> checking dlfcn.h usability... yes
>
> checking dlfcn.h presence... yes
>
> checking for dlfcn.h... yes
>
> checking the maximum length of command line arguments... 786240
>
> checking command to parse /usr/ccs/bin/nm -p output from gcc object... ok
>
> checking for objdir... .libs
>
> checking for ar... ar
>
> checking for ranlib... ranlib
>
> checking for strip... strip
>
> checking if gcc supports -fno-rtti -fno-exceptions... no
>
> checking for gcc option to produce PIC... -fPIC
>
> checking if gcc PIC flag -fPIC works... yes
>
> checking if gcc static flag -static works... no
>
> checking if gcc supports -c -o file.o... yes
>
> checking whether the gcc linker (/usr/ccs/bin/ld) supports shared 
> libraries... yes
>
> checking whether -lc should be explicitly linked in... no
>
> checking dynamic linker characteristics... solaris2.10 ld.so
>
> checking how to hardcode library paths into programs... immediate
>
> checking whether stripping libraries is possible... no
>
> checking if libtool supports shared libraries... yes
>
> checking whether to build shared libraries... yes
>
> checking whether to build static libraries... no
>
> creating libtool
>
> appending configuration tag "CXX" to libtool
>
> configure: creating ./config.status
>
> config.status: creating config.h
>
> running: make
>
> /bin/bash 
> /tmp/pear/temp/pear-build-defaultuserA_a4oo/oci8-2.0.8/libtool 
> --mode=compile gcc  -I. -I/tmp/pear/temp/oci8 -DPHP_ATOM_INC 
> -I/tmp/pear/temp/pear-build-defaultuserA_a4oo/oci8-2.0.8/include 
> -I/tmp/pear/temp/pear-build-defaultuserA_a4oo/oci8-2.0.8/main 
> -I/tmp/pear/temp/oci8 -I/opt/csw/php5/include/php 
> -I/opt/csw/php5/include/php/main -I/opt/csw/php5/include/php/TSRM 
> -I/opt/csw/php5/include/php/Zend -I/opt/csw/php5/include/php/ext 
> -I/opt/csw/php5/include/php/ext/date/lib 
> -I/oracle/app/oracle/product/11.2.0/dbhome_1//rdbms/public 
> -I/oracle/app/oracle/product/11.2.0/dbhome_1//rdbms/demo 
> -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/temp/oci8/oci8.c -o oci8.lo
>
> mkdir .libs
>
> gcc -I. -I/tmp/pear/temp/oci8 -DPHP_ATOM_INC 
> -I/tmp/pear/temp/pear-build-defaultuserA_a4oo/oci8-2.0.8/include 
> -I/tmp/pear/temp/pear-build-defaultuserA_a4oo/oci8-2.0.8/main 
> -I/tmp/pear/temp/oci8 -I/opt/csw/php5/include/php 
> -I/opt/csw/php5/include/php/main -I/opt/csw/php5/include/php/TSRM 
> -I/opt/csw/php5/include/php/Zend -I/opt/csw/php5/include/php/ext 
> -I/opt/csw/php5/include/php/ext/date/lib 
> -I/oracle/app/oracle/product/11.2.0/dbhome_1//rdbms/public 
> -I/oracle/app/oracle/product/11.2.0/dbhome_1//rdbms/demo 
> -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/oci8/oci8.c -fPIC -DPIC -o 
> .libs/oci8.o
>
> /bin/bash 
> /tmp/pear/temp/pear-build-defaultuserA_a4oo/oci8-2.0.8/libtool 
> --mode=compile gcc  -I. -I/tmp/pear/temp/oci8 -DPHP_ATOM_INC 
> -I/tmp/pear/temp/pear-build-defaultuserA_a4oo/oci8-2.0.8/include 
> -I/tmp/pear/temp/pear-build-defaultuserA_a4oo/oci8-2.0.8/main 
> -I/tmp/pear/temp/oci8 -I/opt/csw/php5/include/php 
> -I/opt/csw/php5/include/php/main -I/opt/csw/php5/include/php/TSRM 
> -I/opt/csw/php5/include/php/Zend -I/opt/csw/php5/include/php/ext 
> -I/opt/csw/php5/include/php/ext/date/lib 
> -I/oracle/app/oracle/product/11.2.0/dbhome_1//rdbms/public 
> -I/oracle/app/oracle/product/11.2.0/dbhome_1//rdbms/demo 
> -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/temp/oci8/oci8_lob.c -o oci8_lob.lo
>
> gcc -I. -I/tmp/pear/temp/oci8 -DPHP_ATOM_INC 
> -I/tmp/pear/temp/pear-build-defaultuserA_a4oo/oci8-2.0.8/include 
> -I/tmp/pear/temp/pear-build-defaultuserA_a4oo/oci8-2.0.8/main 
> -I/tmp/pear/temp/oci8 -I/opt/csw/php5/include/php 
> -I/opt/csw/php5/include/php/main -I/opt/csw/php5/include/php/TSRM 
> -I/opt/csw/php5/include/php/Zend -I/opt/csw/php5/include/php/ext 
> -I/opt/csw/php5/include/php/ext/date/lib 
> -I/oracle/app/oracle/product/11.2.0/dbhome_1//rdbms/public 
> -I/oracle/app/oracle/product/11.2.0/dbhome_1//rdbms/demo 
> -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/oci8/oci8_lob.c -fPIC -DPIC 
> -o .libs/oci8_lob.o
>
> /bin/bash 
> /tmp/pear/temp/pear-build-defaultuserA_a4oo/oci8-2.0.8/libtool 
> --mode=compile gcc  -I. -I/tmp/pear/temp/oci8 -DPHP_ATOM_INC 
> -I/tmp/pear/temp/pear-build-defaultuserA_a4oo/oci8-2.0.8/include 
> -I/tmp/pear/temp/pear-build-defaultuserA_a4oo/oci8-2.0.8/main 
> -I/tmp/pear/temp/oci8 -I/opt/csw/php5/include/php 
> -I/opt/csw/php5/include/php/main -I/opt/csw/php5/include/php/TSRM 
> -I/opt/csw/php5/include/php/Zend -I/opt/csw/php5/include/php/ext 
> -I/opt/csw/php5/include/php/ext/date/lib 
> -I/oracle/app/oracle/product/11.2.0/dbhome_1//rdbms/public 
> -I/oracle/app/oracle/product/11.2.0/dbhome_1//rdbms/demo 
> -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/temp/oci8/oci8_statement.c -o 
> oci8_statement.lo
>
> gcc -I. -I/tmp/pear/temp/oci8 -DPHP_ATOM_INC 
> -I/tmp/pear/temp/pear-build-defaultuserA_a4oo/oci8-2.0.8/include 
> -I/tmp/pear/temp/pear-build-defaultuserA_a4oo/oci8-2.0.8/main 
> -I/tmp/pear/temp/oci8 -I/opt/csw/php5/include/php 
> -I/opt/csw/php5/include/php/main -I/opt/csw/php5/include/php/TSRM 
> -I/opt/csw/php5/include/php/Zend -I/opt/csw/php5/include/php/ext 
> -I/opt/csw/php5/include/php/ext/date/lib 
> -I/oracle/app/oracle/product/11.2.0/dbhome_1//rdbms/public 
> -I/oracle/app/oracle/product/11.2.0/dbhome_1//rdbms/demo 
> -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/oci8/oci8_statement.c  -fPIC 
> -DPIC -o .libs/oci8_statement.o
>
> /bin/bash 
> /tmp/pear/temp/pear-build-defaultuserA_a4oo/oci8-2.0.8/libtool 
> --mode=compile gcc  -I. -I/tmp/pear/temp/oci8 -DPHP_ATOM_INC 
> -I/tmp/pear/temp/pear-build-defaultuserA_a4oo/oci8-2.0.8/include 
> -I/tmp/pear/temp/pear-build-defaultuserA_a4oo/oci8-2.0.8/main 
> -I/tmp/pear/temp/oci8 -I/opt/csw/php5/include/php 
> -I/opt/csw/php5/include/php/main -I/opt/csw/php5/include/php/TSRM 
> -I/opt/csw/php5/include/php/Zend -I/opt/csw/php5/include/php/ext 
> -I/opt/csw/php5/include/php/ext/date/lib 
> -I/oracle/app/oracle/product/11.2.0/dbhome_1//rdbms/public 
> -I/oracle/app/oracle/product/11.2.0/dbhome_1//rdbms/demo 
> -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/temp/oci8/oci8_collection.c -o 
> oci8_collection.lo
>
> gcc -I. -I/tmp/pear/temp/oci8 -DPHP_ATOM_INC 
> -I/tmp/pear/temp/pear-build-defaultuserA_a4oo/oci8-2.0.8/include 
> -I/tmp/pear/temp/pear-build-defaultuserA_a4oo/oci8-2.0.8/main 
> -I/tmp/pear/temp/oci8 -I/opt/csw/php5/include/php 
> -I/opt/csw/php5/include/php/main -I/opt/csw/php5/include/php/TSRM 
> -I/opt/csw/php5/include/php/Zend -I/opt/csw/php5/include/php/ext 
> -I/opt/csw/php5/include/php/ext/date/lib 
> -I/oracle/app/oracle/product/11.2.0/dbhome_1//rdbms/public 
> -I/oracle/app/oracle/product/11.2.0/dbhome_1//rdbms/demo 
> -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/oci8/oci8_collection.c  -fPIC 
> -DPIC -o .libs/oci8_collection.o
>
> /bin/bash 
> /tmp/pear/temp/pear-build-defaultuserA_a4oo/oci8-2.0.8/libtool 
> --mode=compile gcc  -I. -I/tmp/pear/temp/oci8 -DPHP_ATOM_INC 
> -I/tmp/pear/temp/pear-build-defaultuserA_a4oo/oci8-2.0.8/include 
> -I/tmp/pear/temp/pear-build-defaultuserA_a4oo/oci8-2.0.8/main 
> -I/tmp/pear/temp/oci8 -I/opt/csw/php5/include/php 
> -I/opt/csw/php5/include/php/main -I/opt/csw/php5/include/php/TSRM 
> -I/opt/csw/php5/include/php/Zend -I/opt/csw/php5/include/php/ext 
> -I/opt/csw/php5/include/php/ext/date/lib 
> -I/oracle/app/oracle/product/11.2.0/dbhome_1//rdbms/public 
> -I/oracle/app/oracle/product/11.2.0/dbhome_1//rdbms/demo 
> -DHAVE_CONFIG_H  -g -O2   -c /tmp/pear/temp/oci8/oci8_interface.c -o 
> oci8_interface.lo
>
> gcc -I. -I/tmp/pear/temp/oci8 -DPHP_ATOM_INC 
> -I/tmp/pear/temp/pear-build-defaultuserA_a4oo/oci8-2.0.8/include 
> -I/tmp/pear/temp/pear-build-defaultuserA_a4oo/oci8-2.0.8/main 
> -I/tmp/pear/temp/oci8 -I/opt/csw/php5/include/php 
> -I/opt/csw/php5/include/php/main -I/opt/csw/php5/include/php/TSRM 
> -I/opt/csw/php5/include/php/Zend -I/opt/csw/php5/include/php/ext 
> -I/opt/csw/php5/include/php/ext/date/lib 
> -I/oracle/app/oracle/product/11.2.0/dbhome_1//rdbms/public 
> -I/oracle/app/oracle/product/11.2.0/dbhome_1//rdbms/demo 
> -DHAVE_CONFIG_H -g -O2 -c /tmp/pear/temp/oci8/oci8_interface.c  -fPIC 
> -DPIC -o .libs/oci8_interface.o
>
> /bin/bash 
> /tmp/pear/temp/pear-build-defaultuserA_a4oo/oci8-2.0.8/libtool 
> --mode=link gcc -DPHP_ATOM_INC 
> -I/tmp/pear/temp/pear-build-defaultuserA_a4oo/oci8-2.0.8/include 
> -I/tmp/pear/temp/pear-build-defaultuserA_a4oo/oci8-2.0.8/main 
> -I/tmp/pear/temp/oci8 -I/opt/csw/php5/include/php 
> -I/opt/csw/php5/include/php/main -I/opt/csw/php5/include/php/TSRM 
> -I/opt/csw/php5/include/php/Zend -I/opt/csw/php5/include/php/ext 
> -I/opt/csw/php5/include/php/ext/date/lib 
> -I/oracle/app/oracle/product/11.2.0/dbhome_1//rdbms/public 
> -I/oracle/app/oracle/product/11.2.0/dbhome_1//rdbms/demo 
> -DHAVE_CONFIG_H  -g -O2   -o oci8.la <http://oci8.la/> -export-dynamic 
> -avoid-version -prefer-pic -module -rpath 
> /tmp/pear/temp/pear-build-defaultuserA_a4oo/oci8-2.0.8/modules oci8.lo 
> oci8_lob.lo oci8_statement.lo oci8_collection.lo oci8_interface.lo 
> -R/oracle/app/oracle/product/11.2.0/dbhome_1//lib 
> -L/oracle/app/oracle/product/11.2.0/dbhome_1//lib -lclntsh
>
> gcc -shared -Wl,-h -Wl,oci8.so -o .libs/oci8.so  .libs/oci8.o 
> .libs/oci8_lob.o .libs/oci8_statement.o .libs/oci8_collection.o 
> .libs/oci8_interface.o 
> -R/oracle/app/oracle/product/11.2.0/dbhome_1//lib 
> -L/oracle/app/oracle/product/11.2.0/dbhome_1//lib -lclntsh
>
> ld: fatal: file 
> /oracle/app/oracle/product/11.2.0/dbhome_1//lib/libclntsh.so: wrong 
> ELF class: ELFCLASS64
>
> ld: fatal: file processing errors. No output written to .libs/oci8.so
>
> *** Error code 1
>
> make: Fatal error: Command failed for target `oci8.la <http://oci8.la/>'
>
> ERROR: `make' failed
>
> bash-3.2#
>
>
> On Tue, Dec 2, 2014 at 4:43 PM, Dagobert Michelsen <dam at opencsw.org 
> <mailto:dam at opencsw.org>> wrote:
>
>     Hi Carlos,
>
>>     Am 02.12.2014 um 22:41 schrieb Carlos Andrés Loaiza Osorio
>>     <calo.hk at gmail.com <mailto:calo.hk at gmail.com>>:
>>
>>     Many many thanks for your help.. it´s amazing.. really thanks,
>>     and the last one.. pls.
>>
>>     creating libtool
>>     appending configuration tag "CXX" to libtool
>>     configure: creating ./config.status
>>     config.status: creating config.h
>>     running: make
>>     sh: make: not found
>>     ERROR: `make’ failed
>
>     Depending on your environment you need either CSWgmake and
>     /optcsw/gnu in your path or
>     /usr/ccs/bin.
>
>
>     Best regards
>
>       — Dago
>
>>
>>     On Tue, Dec 2, 2014 at 4:30 PM, Maciej (Matchek) Bliziński
>>     <maciej at opencsw.org <mailto:maciej at opencsw.org>> wrote:
>>
>>         Is /opt/csw/bin in your $PATH?
>>
>>
>>         A ter, 2/12/2014, 21:16, Carlos Andrés Loaiza Osorio
>>         <calo.hk at gmail.com <mailto:calo.hk at gmail.com>> escreveu:
>>
>>             Good day again
>>
>>             i´m running and install gcc dependencies, and then try to
>>             install again, and give me :
>>
>>
>>             /opt/csw/bin/sparc-sun-solaris2.10-c++-4.9 <linked pathname>
>>
>>             Registering 'gcc_gplusplus' alternative
>>             /opt/csw/bin/g++-4.9 ...
>>
>>             [ verifying class <cswalternatives> ]
>>
>>             Installation of <CSWgcc4g++> was successful.
>>
>>             bash-3.2#
>>
>>             bash-3.2# ./pecl install oci8
>>
>>             downloading oci8-2.0.8.tgz ...
>>
>>             Starting to download oci8-2.0.8.tgz (190,854 bytes)
>>
>>             .........................................done: 190,854 bytes
>>
>>             11 source files, building
>>
>>             WARNING: php_bin /opt/csw/php5/bin/php appears to have a
>>             suffix 5/bin/php, but config variable php_suffix does not
>>             match
>>
>>             running: phpize
>>
>>             Configuring for:
>>
>>             PHP Api Version:         20090626
>>
>>             Zend Module Api No:      20090626
>>
>>             Zend Extension Api No:   220090626
>>
>>             configure.in:3 <http://configure.in:3/>: warning: prefer
>>             named diversions
>>
>>             configure.in:3 <http://configure.in:3/>: warning: prefer
>>             named diversions
>>
>>             Please provide the path to the ORACLE_HOME directory. Use
>>             'instantclient,/path/to/instant/client/lib' if you're
>>             compiling with Oracle Instant Client [autodetect] :
>>             /oracle/app/oracle/product/11.2.0/dbhome_1
>>
>>             building in
>>             /tmp/pear/temp/pear-build-defaultuserV9aO.Z/oci8-2.0.8
>>
>>             running: /tmp/pear/temp/oci8/configure
>>             --with-oci8=/oracle/app/oracle/product/11.2.0/dbhome_1
>>
>>             checking for grep that handles long lines and -e...
>>             /usr/xpg4/bin/grep
>>
>>             checking for egrep... /usr/xpg4/bin/grep -E
>>
>>             checking for a sed that does not truncate output...
>>             /usr/bin/sed
>>
>>             checking for cc... no
>>
>>             checking for gcc... no
>>
>>             configure: error: in
>>             `/tmp/pear/temp/pear-build-defaultuserV9aO.Z/oci8-2.0.8':
>>
>>             configure: error: no acceptable C compiler found in $PATH
>>
>>             See `config.log' for more details
>>
>>             ERROR: `/tmp/pear/temp/oci8/configure
>>             --with-oci8=/oracle/app/oracle/product/11.2.0/dbhome_1'
>>             failed
>>
>>             bash-3.2#
>>
>>
>>             On Tue, Dec 2, 2014 at 2:28 PM, Maciej (Matchek)
>>             Bliziński <maciej at opencsw.org
>>             <mailto:maciej at opencsw.org>> wrote:
>>
>>                 Carlos Andrés Loaiza Osorio <calo.hk at gmail.com
>>                 <mailto:calo.hk at gmail.com>> escreveu no dia Tue Dec
>>                 02 2014 at 7:20:53 PM:
>>
>>                     checking for cc... no
>>                     checking for gcc... no
>>                     configure: error: in
>>                     `/tmp/pear/temp/pear-build-defaultuserBGa49p/oci8-2.0.8':
>>                     configure: error: no acceptable C compiler found
>>                     in $PATH
>>
>>
>>                 If it's looking for a compiler and this checks for
>>                 the "gcc" binary, maybe try installing CSWgcc4core?
>>                 (and maybe also CSWgcc4g++ if it needs the C++
>>                 compiler, it's likely)
>>
>>                 Maciej
>>
>>
>>
>
>     -- 
>     "You don't become great by trying to be great, you become great by
>     wanting to do something,
>     and then doing it so hard that you become great in the process." -
>     xkcd #896
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opencsw.org/pipermail/users/attachments/20141202/5c37ef42/attachment-0001.html>


More information about the users mailing list