[PHP] RHEL 5 PHP php-5.1.6-7.el5.src.rpm using freetds-0.63-1.2.el4.rf.x86_64.rpm Won't rpm

2007-03-28 Thread Mitch
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 \


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

2007-03-28 Thread Chris



  ./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


Remove the trailing \

You only need the \ if you're adding more options after that line (it 
continues that command basically) - the last line shouldn't have it.


--
Postgresql  php tutorials
http://www.designmagick.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php