Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
Download the source rpm file, install it, modify the spec file and build.
rpm -ivh <source filename here>
cd /usr/src/redhat/SPECS
edit the spec file using any text editor save the changes and exit
rpmbuild -bb <the spec file name here>
It is your responsibility to meet the building requirements (i.e install missing dependencies).
Download the source rpm file, install it, modify the spec file and build.
rpm -ivh <source filename here>
cd /usr/src/redhat/SPECS
edit the spec file using any text editor save the changes and exit
rpmbuild -bb <the spec file name here>
It is your responsibility to meet the building requirements (i.e install missing dependencies).
I'm assuming i should get php-XXX.srpm?
What about 11g support ?
What will happened if and when i'll get a new version of the binary rpm? Won't it raise conflicts ?
Download the source rpm file, install it, modify the spec file and build.
rpm -ivh <source filename here>
cd /usr/src/redhat/SPECS
edit the spec file using any text editor save the changes and exit
rpmbuild -bb <the spec file name here>
It is your responsibility to meet the building requirements (i.e install missing dependencies).
Also i'm trying to folow these instructions, but, apparently there is a newer way of doing things - using "mock"..
Am i missing smth?
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
Nope you are missing nothing. You still need to edit the spec file, it does not matter if you are you, root or mock. There is also rpmrebuild which would not help you either for this very same reason.
Nope you are missing nothing. You still need to edit the spec file, it does not matter if you are you, root or mock. There is also rpmrebuild which would not help you either for this very same reason.
I provided you with the how to install the source rpm file, this will extract the spec file and place it in the appropriate location.
That's correctt, Lenard. And i'm thankfull to you for this .
It's just i'm lost a bit about how to do the rebuild using mock. The only reason i got that ( mock) is because it ( rpm -ivh ) raised errors.
Please advise
thank you
P.S. I've got php.srpm.
I've installed the mock
added current user to mock group
did moch init;
mock shell install php.srpm
ok. copy srpm into /var/lib/mock/centos-5-i386/root/
mock chroot 'rpm -ihv /php-5.1.6-15.el5.src.rpm '
'as root' vi spec file and added to the spec file:
--with-oci8=$ORACLE_HOME
saved; went back to mock-shell>
rpmbuild came back with :
checking OCI8 libraries dir... lib32
checking Oracle version... configure: error: Oracle-OCI8 needed libraries not found
error: Bad exit status from /var/tmp/rpm-tmp.98019 (%build)
Which makes sense since it's chroot. But doesn't help me
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
I do not use mock myself, I do use the rpmdevtools package so I do not have to build as root most of the time. In some cases (still) one cannot use rpmdevtools or mock to rebuild rpm's, this is one of them.
I decided to stop with my experiments ( for now ) and just do it "old " way.
After getting the src and installing it ( rpm -Uhv ).
i've got some warnings about not existing mockbuild group, the package got installed though - i see the source and spec files in the /usr/src/.../SOURCE and .../SPECS directories.
I modified php.spec from :
Code:
--with-libxml-dir=%{_prefix} \
--with-xml \
$*
if test $? != 0; then
to :
Code:
--with-libxml-dir=%{_prefix} \
--with-xml \
--with-oci8=$ORACLE_HOME \
--enable-sigchild
$*
if test $? != 0; then
and enjoying the following output from rpmbuild -bs ./php.spec
Code:
Generating files
updating cache ../config.cache
configure: creating ./config.status
creating main/internal_functions.c
creating main/internal_functions_cli.c
+--------------------------------------------------------------------+
| *** WARNING *** |
| |
| You will be compiling the CGI version of PHP without any |
| redirection checking. By putting this cgi binary somewhere in |
| your web space, users may be able to circumvent existing .htaccess |
| security by loading files directly through the parser. See |
| http://www.php.net/manual/security.php for more details. |
+--------------------------------------------------------------------+
| *** ATTENTION *** |
| |
| Something is likely to be messed up here, because the configure |
| script was not able to detect a simple feature on your platform. |
| This is often caused by incorrect configuration parameters. Please |
| see the file debug.log for error messages. |
| |
| If you are unable to fix this, send the file debug.log to the |
| php-install@lists.php.net mailing list and include appropiate |
| information about your setup. |
+--------------------------------------------------------------------+
| License: |
| This software is subject to the PHP License, available in this |
| distribution in the file LICENSE. By continuing this installation |
| process, you are bound by the terms of this license agreement. |
| If you do not agree with the terms of this license, you must abort |
| the installation process at this point. |
+--------------------------------------------------------------------+
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
+ --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.83487: line 116: --enable-force-cgi-redirect: command not found
error: Bad exit status from /var/tmp/rpm-tmp.83487 (%build)
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
OK, did some digging................
The needed libclntsh.so.11.1 library should be supplied by Oracle 11g, you may have to reconfigure your ldconfig so that the library path is known to the system.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.