LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 07-26-2006, 09:02 AM   #1
Ratclaws
Member
 
Registered: Sep 2001
Location: New York
Distribution: Slackware 8
Posts: 102

Rep: Reputation: 16
RHEL3 - how do i make the php-mcrypt rpm


Some Info
Using RHEL ES 3.
We decided to upgrade to MySQL 5.0 using mysql's rh3 rpms. This all went perfectly. Obviously we had to recompile the php-mysql rpm to use mysql5. To do this we get the php source using up2date --get-source, and installed the src rpm. Then I looked at the spec file, and commented out pgsql (i didn't see any other way to disable it), and installed whatever other dependancies there were.

The end result gave us a few rpms, one of which was php-mysql. this worked perfectly. In the process however, we managed to break mcrypt. I'm not sure how it broke, as we didn't change any of the base php rpm's, and mcrypt was working for about 1 week. None the less, the php-mcrypt rpm i had to get from a DAG repository. I don't want to keep having to fetch rpm's from random places to stay up2date, nevermind the security risk.

Question
So, how can i create the php-mcrypt-4.3.2-33.rpm? I have the mcrypt libs installed, and i can build php with mcrypt manually, I just can't do it in RPM. I have edited the spec file and tried to mimic what they did to make the php-mysql rpm.. I would think that adding modules would be a common task, especially for php.


with my edited spec file: rpmbuild -bb php.spec
Code:
 php = 4.3.2-33.ent
Obsoletes: mod_php3-mysql stronghold-php-mysql
Processing files: php-odbc-4.3.2-33.ent
Provides: config(php-odbc) = 4.3.2-33.ent odbc.so php_database
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: config(php-odbc) = 4.3.2-33.ent libc.so.6 libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1.3) libodbc.so.1 libodbcpsql.so.2 php = 4.3.2-33.ent
Obsoletes: stronghold-php-odbc


RPM build errors:
    File not found: /var/tmp/php-root/usr/lib/php4/mcrypt.so
 
Old 07-26-2006, 09:28 AM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Think about this you installed php 5 and are attempting to build php-mcrypt which is looking for the shared lib mcrypt.so for php-4.

Maybe you want;

ftp://download.fedora.redhat.com/pub...-3.fc4.src.rpm
ftp://download.fedora.redhat.com/pub...-1.fc5.src.rpm
 
Old 07-26-2006, 10:31 AM   #3
Ratclaws
Member
 
Registered: Sep 2001
Location: New York
Distribution: Slackware 8
Posts: 102

Original Poster
Rep: Reputation: 16
where did you get php5 from? In the post i said it was 4.3.2 (build 33).

If i move to version 5, then i'll have a lot of code to start digging through, at a very inopportune time. Also, compiling 5 on rhel3 with it's very outdated versions of software will be a nightmare. While i don't mind grabbing thousands of packages and compiling them on gentoo or bsd, in rhel i want to stay compatible with it's rpm system. Otherwise, why bother using rhel at all.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
php mcrypt cookie - mysql query lemack Linux - Security 3 02-09-2005 09:21 AM
php-mcrypt? nigeledge Linux - Software 0 10-03-2004 09:39 AM
PHP Modules (IMAP, Mcrypt, and MCAL) grahammm Linux - Software 0 08-02-2004 02:47 AM
php mcrypt shared configuration option Pete Dogg Linux - Software 1 02-22-2004 12:00 PM
php and mcrypt mayankjohri Linux - General 3 06-29-2002 04:20 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 07:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration