LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-06-2006, 10:04 AM   #1
jmille34
LQ Newbie
 
Registered: Jul 2005
Location: Tampa
Distribution: lots
Posts: 13

Rep: Reputation: 0
Newbish question on compiling software for a production server


It seems a lot of packages need to be compiled (postgres and postfix are my current two) which means the compilers need to be installed, but is this bad practice for a production server to leave the compilers in place? Wouldn't it be preferable to have the system be as clean and bare as possible? I would prefer not to install them in the first place so that I don't have to trust myself to remove them later or to remove them correctly..

Aside from switching from Slackware to something a little more package-y, what is the SOP for handling this?
 
Old 11-06-2006, 11:26 AM   #2
josenj
Member
 
Registered: Oct 2006
Location: New Jersey (US)
Distribution: Arch Linux
Posts: 58

Rep: Reputation: 15
Options:

1) If you have a test machine (everything is the same as far as the production server is concern) then you can leave the compiler in the test machine and compile your stuff there then transer them over to your production machine. You can do the "./configure", "make" steps then tar up your folder, transfer it to the production server and then do the "make install" there. Then remove the tar and the untarred folder once your done.

2) You can put the compiler on the production machine and change permissions on the compiler. So that only you can compile stuff. Create a group for yourself and make sure you do remove permission for the "world". Something like chmod 750 xxxxx.

3) If you are using a distro just use the packages.

Good luck!
 
Old 11-06-2006, 11:56 AM   #3
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
If you're on a debian based distro and the project you are building uses the GNU build system (autoconf and friends), you can build on a separate machine and use the checkinstall script to generate a .deb package which can then be installed on the production server. make sure you compile appropriate options to strip out debugging symbols and so on, as required.
 
Old 11-06-2006, 12:18 PM   #4
josenj
Member
 
Registered: Oct 2006
Location: New Jersey (US)
Distribution: Arch Linux
Posts: 58

Rep: Reputation: 15
matthewg42 has brought up another good option. The checkinstall script can create slackware, rpm or deb packages. *.deb is the default.

So instead of typing "make install" you would just type "checkinstall" and it creates your package.

If you go this route and install "checkinstall" you can run checkinstall -h for options.

Checkinstall's website: http://asic-linux.com.mx/~izto/checkinstall/
 
  


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
Very very newbish question Kryshu2 MEPIS 8 07-12-2005 10:53 PM
Very Newbish Question d3c1us MEPIS 5 07-05-2005 12:47 AM
Compiling Apache on production box maunded Linux - Security 11 05-03-2005 01:38 AM
A really newbish Mandrake 9.1 question Ekim Gram Linux - Newbie 3 05-08-2003 10:07 PM
Newbish Question Oricon Linux - Newbie 5 03-09-2003 12:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:52 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