LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Compile from source into a *.rpm (https://www.linuxquestions.org/questions/linux-software-2/compile-from-source-into-a-%2A-rpm-4175553795/)

mgoblue0970 09-17-2015 04:10 PM

Compile from source into a *.rpm
 
Hello:

I'm compiling openssl from source -- having no problems doing that on my dev box. However, my production machines don't have some of the prerequisites to compile on each and every one of them. Nor will they; I'm not going to load a bunch of otherwise unnecessary software on production machines just to compile some software.

What I want to do is take the compiled program from my dev box and install it on the production machines. I've looked through the openssl readme and I didn't see anything in there about a switch or argument or something which could be provided to make or make install. It would be really great if what happens in make could create a rpm or something.

Does the forum have any ideas? How can I compile on one machine and then install that program on another machine? I do this in windows all the time... I build in Visual Studio, create a *.exe on the dev box, and then take that *.exe (over the network or on a DVD) to production boxes.

Thanks for any assistance!

knudfl 09-17-2015 04:31 PM

You can create rpm packages from SRC RPMS.
Just edit the file openssl.spec to your requirements.

Setting up the rpmbuild environment in your /home/<name>/ :
http://www.linuxquestions.org/questi...1-a-766486/#13


Please read ...
. http://www.linuxquestions.org/linux/...Ask_a_Question
. http://www.catb.org/~esr/faqs/smart-questions.html
I.e. some more information is required when you ask a question :
OS name and version, and of course the version of the software (openssl).
( There may be a "Source RPM" for your openssl version.)


-


All times are GMT -5. The time now is 12:30 AM.