Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 11-06-2006, 11:04 AM   #1
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, 12:26 PM   #2
Registered: Oct 2006
Location: New Jersey (US)
Distribution: Arch Linux
Posts: 58

Rep: Reputation: 15

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, 12:56 PM   #3
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, 01:18 PM   #4
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:


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

All times are GMT -5. The time now is 03:18 AM.

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