Skip to Content.
Sympa Menu

freetds - Re: [freetds] RHEL 5 PHP php-5.1.6-7.el5.src.rpmusingfreetds-0.63-1.2.el4.rf.x86_64.rpm

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Frank M. Kromann" <frank AT kromann.info>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Cc: <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] RHEL 5 PHP php-5.1.6-7.el5.src.rpmusingfreetds-0.63-1.2.el4.rf.x86_64.rpm
  • Date: Thu, 29 Mar 2007 15:03:00 -0800

You can replace --with-sybase-ct=/usr/local/freetds with
--with-mssql=/usr/local/freetds that will give you access to a few more
mssql_* functions, but that is not your problem.

It looks like you are trying to store php.ini in /etc and that directory
is missing or you don't have access to it.

- Frank

> I can't use yum so that leaves me with making the rpm myself after hours
of
> pain I am sending this email in hopes that someone can help.
>
>
>
> Download php-5.1.6-7.el5.src.rpm after exploding the rpm I put these 2
lines
> in the rpm. I am not sure if It should be in both places or not, in an
ideal
> world someone would build a x86_64 rhel 5 rpm for me, but here I am
just
> asking for help unless you already have it built.
>
> I need to connect to a MSSQL 2000 database When the rpm is building
> "rpmbuild -bb /usr/src/redhat/SPECS/php.spec"
>
>
>
> I get the below error msg ,
>
> Thank you for using PHP.
> config.status: creating php5.spec
> config.status: creating main/build-defs.h
> config.status: creating scripts/phpize
> config.status: creating scripts/man1/phpize.1
> config.status: creating scripts/php-config
> config.status: creating scripts/man1/php-config.1
> config.status: creating sapi/cli/php.1
> config.status: creating main/php_config.h
> config.status: executing default commands
> + --with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.d
> --disable-debug --with-pic --disable-rpath --without-pear --with-bz2
> --with-curl --with-exec-dir=/usr/bin --with-freetype-dir=/usr
> --with-png-dir=/usr --enable-gd-native-ttf --without-gdbm
--with-gettext
> --with-sybase-ct=/usr/local/freetds --with-gmp --with-iconv
> --with-jpeg-dir=/usr --with-openssl --with-png --with-pspell
> --with-expat-dir=/usr --with-pcre-regex=/usr --with-zlib
--with-layout=GNU
> --enable-exif --enable-ftp --enable-magic-quotes --enable-sockets
> --enable-sysvsem --enable-sysvshm --enable-sysvmsg --enable-track-vars
> --enable-trans-sid --enable-yp --enable-wddx --with-kerberos
> --enable-ucd-snmp-hack --with-unixODBC=shared,/usr
--enable-memory-limit
> --enable-shmop --enable-calendar --enable-dbx --enable-dio
> --with-mime-magic=/etc/httpd/conf/magic --without-sqlite
> --with-libxml-dir=/usr --with-xml --enable-force-cgi-redirect
--enable-pcntl
> --with-imap=shared --with-imap-ssl --enable-mbstring=shared
> --enable-mbstr-enc-trans --enable-mbregex --with-ncurses=shared
> --with-gd=shared --enable-bcmath=shared --enable-dba=shared
--with-db4=/usr
> --with-xmlrpc=shared --with-ldap=shared --with-mysql=shared,/usr
> --with-mysqli=shared,/usr/bin/mysql_config --enable-dom=shared
> --with-dom-xslt=/usr --with-dom-exslt=/usr --with-pgsql=shared
> --with-snmp=shared,/usr --enable-soap=shared --with-xsl=shared,/usr
> --enable-xmlreader=shared --enable-xmlwriter=shared --enable-fastcgi
> --enable-pdo=shared --with-pdo-odbc=shared,unixODBC,/usr
> --with-pdo-mysql=shared,/usr --with-pdo-pgsql=shared,/usr
> --with-pdo-sqlite=shared,/usr
>
> /var/tmp/rpm-tmp.15318: line 77: --with-config-file-path=/etc: No such
file
> or directory
> error: Bad exit status from /var/tmp/rpm-tmp.15318 (%build)
> RPM build errors:
> Bad exit status from /var/tmp/rpm-tmp.15318 (%build)
>
> Line 77 is
> done ;
>
> ./configure --build=x86_64-redhat-linux-gnu
--host=x86_64-redhat-linux-gnu
>
> --target=x86_64-redhat-linux-gnu --program-prefix=
--prefix=/usr --exec-prefix=/usr --bindir=/usr/bin
--sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share
--includedir=/usr/include --libdir=/usr/lib64
--libexecdir=/usr/libexec --localstatedir=/var
--sharedstatedir=/usr/com --mandir=/usr/share/man
--infodir=/usr/share/info --cache-file=../config.cache
--with-libdir=lib64 --with-config-file-path=/etc
--with-config-file-scan-dir=/etc/php.d \ <-LINE 77
>
> =======================================================
>
> What I gather it is talking about this below.
>
> # Generate files lists and stub .ini files for each subpackage
> for mod in pgsql mysql mysqli odbc ldap snmp xmlrpc imap mbstring
ncurses gd dom xsl soap bcmath dba xmlreader xmlwriter pdo pdo_mysql
pdo_pgsql pdo_odbc pdo_sqlite; do
> cat > $RPM_BUILD_ROOT%{_sysconfdir}/php.d/${mod}.ini <<EOF
> ; Enable ${mod} extension module
> extension=${mod}.so
> EOF
> cat > files.${mod} <<EOF
> %attr(755,root,root) %{_libdir}/php/modules/${mod}.so
> %config(noreplace) %attr(644,root,root) %{_sysconfdir}/php.d/${mod}.ini
>
> =======================================================
> ++++++++++++php.spec+++++++++++++++++++++++++
>
> # bison-1.875-2 seems to produce a broken parser; workaround.
>
> mkdir Zend && cp ../Zend/zend_{language,ini}_{parser,scanner}.[ch] Zend
>
> ln -sf ../configure
>
> %configure
> --cache-file=../config.cache
> --with-libdir=%{_lib}
> --with-config-file-path=%{_sysconfdir}
> --with-config-file-scan-dir=%{_sysconfdir}/php.d
> --disable-debug
> --with-pic
> --disable-rpath
> --without-pear
> --with-bz2
> --with-curl
> --with-exec-dir=%{_bindir}
> --with-freetype-dir=%{_prefix}
> --with-png-dir=%{_prefix}
> --enable-gd-native-ttf
> --without-gdbm
> --with-gettext
> --with-sybase-ct=/usr/local/freetds
> --with-gmp
> --with-iconv
> --with-jpeg-dir=%{_prefix}
> --with-openssl
> --with-png
> --with-pspell
> --with-expat-dir=%{_prefix}
> --with-pcre-regex=%{_prefix}
> --with-zlib
> --with-layout=GNU
> --enable-exif
> --enable-ftp
> --enable-magic-quotes
> --enable-sockets
> --enable-sysvsem --enable-sysvshm --enable-sysvmsg
> --enable-track-vars
> --enable-trans-sid
> --enable-yp
> --enable-wddx
> --with-kerberos
> --enable-ucd-snmp-hack
> --with-unixODBC=shared,%{_prefix}
> --enable-memory-limit
> --enable-shmop
> --enable-calendar
> --enable-dbx
> --enable-dio
> --with-mime-magic=%{_sysconfdir}/httpd/conf/magic
> --without-sqlite
> --with-libxml-dir=%{_prefix}
> --with-xml
> $*
>
> # Build Apache module, and the CLI SAPI, /usr/bin/php
>
> pushd build-apache
>
> build --with-apxs2=%{_sbindir}/apxs
> --without-mysql --without-gd
> --without-odbc --disable-dom
> --with-sybase-ct=/usr/local/freetds
> --disable-dba --without-unixODBC
> --disable-pdo --disable-xmlreader --disable-xmlwriter
>
> Popd
>
>
>
> _______________________________________________
> FreeTDS mailing list
> FreeTDS AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/freetds
>






  • Re: [freetds] RHEL 5 PHP php-5.1.6-7.el5.src.rpmusingfreetds-0.63-1.2.el4.rf.x86_64.rpm, Frank M. Kromann, 03/29/2007

Archive powered by MHonArc 2.6.24.

Top of Page