LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Mixing RPMs and self-compiled application (https://www.linuxquestions.org/questions/linux-server-73/mixing-rpms-and-self-compiled-application-553089/)

Swakoo 05-11-2007 05:22 AM

Mixing RPMs and self-compiled application
 
I have a box on CentOS 4.4, and everything is fine but my user requires httpd 2.0.54 exactly due to the strict limitation of Java's Policy Agent.

Anyway, so I setup to self-compile:

httpd 2.0.54
php 5.2.2
mysql 5.0.41
openssl 9.x (because i tested a few version)

on a test server.

I first compiled httpd with ssl but i kept getting error. silly me, i just went ahead and compile/install openssl 9.8, 9.7a and 9.7g (one at a time) but same problem persist. End up I realise there was a copy of openssl 9.7a in centos 4.4 already.

Q1: Is it possible for me to self-compile a copy of openssl and yet leave the rpm version in there?

That is because if i try to remove it (via yum), it will remove all the dependencies, which includes alot of software... no no.

But even though I compile and install to /usr/local/ssl, and during compilation of httpd i've pointed sslprefix to that particular directory, it still gives the same error... hence I was wondering, can rpms (openssl)and self-compilation (httpd) work hand in hand?

Everytime i type 'openssl' it always runs the rpm one.


Moving on, I try to install php with gd option, and naturally, i needed libpng - which seems to be already in the system. Again, another case of rpm (libpng) and php (self-compile)

possible?

thanks for your attention!

hollywoodb 05-12-2007 10:49 AM

Might be a good idea to learn how to write spec files and build RPMs. If you do this you can then use the package manager to install the packages, then use "exclude=" in /etc/yum.conf to prevent yum from updating the things you've installed yourself.

Would make administering the server a lot easier, and would satisfy the dependences.

You can also download the SRPMs for the versions that CentOS provides and perhaps modify them to fit your needs rather than writing spec files from scratch.

Swakoo 05-14-2007 02:50 AM

is it possible to install, for example,

a self-compiled version of apache
and a rpm-installation of php?

what do i need to do to ensure they will link up?

theYinYeti 05-14-2007 04:48 AM

You may be interested in my page where I explain this exact issue:
http://yves.gablin.club.fr/gablin.ph...ftware_install
If you have the knowledge, however, I would advise you to study the scripts instead of using them as is because, althouth they shouldn't do harm, I'm not sure they still do what they're supposed to do (Linux changes so fast).

Yves.

Swakoo 06-20-2007 04:23 AM

hi there, i read your page and boy is it informative. seems like there are tools that help manage self-compiled softwares, but it does seem that managing it can ultimately be painful.

Pardon me though, but I don't seem to read about allow compiled software and packaged software to work together (php and httpd for example). I may have miss it or my understanding is not enough to realise its there....

thanks guys for the guidance so far :)


All times are GMT -5. The time now is 05:01 AM.