Re: how source.tar.gz -> source.src.rpm -> binary.rpm

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sergio Durand wrote:
i started from zero and me to it:
./configure    OK
make        OK
checkinstall    Ok

the out of checkinstall...

Building RPM package...OK
Installing RPM package...OK
Erasing temporary files...OK
Writing backup package...OK
Deleting temp dir...OK

 Done. The new package has been installed and saved to
 /usr/src/redhat/RPMS/i386/php-4.3.1-1.i386.rpm
 You can remove it from your system anytime using:
      rpm -e php-4.3.1-1

and after i do:

[root@lcl2 php-4.3.1]# rpm -qa | grep php
php-4.3.1-1
[root@lcl2 php-4.3.1]# rpm -V php
Unsatisfied dependencies for php-4.3.1-1: libclntsh.so.9.0, libsybdb.so.1
[root@lcl2 php-4.3.1]#

why ??? do you have any tip or idea ???
After a little google research, it appears that libclntsh is an Oracle database library. My guess from the name is that libsybdb is a Sybase library. Apparently, you have compiled PHP with Oracle and Sybase support. Maybe the default compile time options have these turned on?

Usually, you can see what compile options there are with:
./configure --help

I think what you have discovered is that replacing a complex system component like PHP is not as easy as configure;make;make install. This is why there is a market for distro makers to sort out all the compiler and packaging options to fit all the pieces together. There are sometimes significant differences in how distros package these things. For example, Red Hat has a separate RPM you must install to get MySQL support in PHP while SuSE bundles it.

There doesn't appear to be any issue with checkinstall. It created an RPM from your source, installed it, and updated the RPM database.

To push ahead with a new version of PHP, I recommend that you use the exact same options as Red Hat when compiling the new version. Or, you could hunt down the Oracle and Sybase libraries and install them first to satisfy the PHP compile options.

Here are ./configure options used by Red Hat for PHP on Red Hat 8.0:

'./configure' '--host=i386-redhat-linux' '--build=i386-redhat-linux' '--target=i386-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/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--prefix=/usr' '--with-config-file-path=/etc' '--enable-force-cgi-redirect' '--disable-debug' '--enable-pic' '--disable-rpath' '--enable-inline-optimization' '--with-bz2' '--with-db3' '--with-curl' '--with-dom=/usr' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-gd' '--enable-gd-native-ttf' '--with-ttf' '--with-gdbm' '--with-gettext' '--with-ncurses' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-regex=system' '--with-xml' '--with-expat-dir=/usr' '--with-zlib' '--with-layout=GNU' '--enable-bcmath' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-discard-path' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--without-oci8' '--with-pear=/usr/share/pear' '--with-imap=shared' '--with-imap-ssl' '--with-kerberos=/usr/kerberos' '--with-ldap=shared' '--with-mysql=shared,/usr' '--with-pgsql=shared' '--with-snmp=shared,/usr' '--with-snmp=shared' '--enable-ucd-snmp-hack' '--with-unixODBC=shared' '--enable-memory-limit' '--enable-bcmath' '--enable-shmop' '--enable-versioning' '--enable-calendar' '--enable-dbx' '--enable-dio' '--enable-mcal' '--with-apxs2=/usr/sbin/apxs'

Best Regards,
Keith
--
LPIC-2, MCSE, N+
Wake up, baby, cause I'm coming to you from the future -- D Wyndorf
Got spam? Get spastic http://spastic.sourceforge.net



--
Psyche-list mailing list
Psyche-list@redhat.com
https://listman.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux