LinuxQuestions.org
Visit Jeremy's Blog.
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 07-30-2014, 04:39 AM   #1
abhilashbsstabilix
LQ Newbie
 
Registered: Jul 2014
Posts: 10

Rep: Reputation: Disabled
Lightbulb How to Install packages From Source ?


hello linuxquestions forum..

i'm using CentOS .. i would like to learn in detail about the installation and configurations of vsftpd and httpd packages using the "installation from source code method " .. i know how to install it using yum repository.. bt no idea about compile,make and configure commands..

plz help ...

Abhilash B S

Last edited by abhilashbsstabilix; 07-30-2014 at 04:45 AM.
 
Old 07-30-2014, 05:44 AM   #2
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,453
Blog Entries: 55

Rep: Reputation: Disabled
Usually the same for any software, any distro. In the source directory, run:
Code:
./configure --help
to see what options are available.
then:
Code:
./configure (with whatever options you want)
then:
Code:
make
then, as root:
Code:
make install
 
Old 07-30-2014, 06:00 AM   #3
abhilashbsstabilix
LQ Newbie
 
Registered: Jul 2014
Posts: 10

Original Poster
Rep: Reputation: Disabled
Exclamation

Thank you for your response ...


but my system showing ./configure command not found..
i was following the instructions from this tutorial

http://howtolamp.com/lamp/mysql/5.6/...#dependencies1


but in step 4 , cmake command again throws error that "cmake command not found" ..
 
Old 07-30-2014, 06:43 AM   #4
shardik
LQ Newbie
 
Registered: Jul 2014
Posts: 6

Rep: Reputation: Disabled
You will have to install cmake to.
if you also want to do that from source:

Code:
cd ~
wget http://www.cmake.org/files/v3.0/cmake-3.0.0.tar.gz
tar zxvf cmake-3.0.0.tar.gz
cd cmake-3.0.0
./bootstrap
make 
make install
cd ..
rm cmake* -rf
This could also throw some errors about other missing dependencies...
for things like make and cmake installs i would personally still opt for:

Code:
yum install cmake
I understand that it's interesting to install some things from source, but in some case it just isn't worth it either :-)
 
Old 07-30-2014, 09:24 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, and whatever VMs I happen to be playing with
Posts: 12,383
Blog Entries: 16

Rep: Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156Reputation: 3156
Occasionally, software sources come without a "configure" file and with a makefile already in place. With those, you generally start with "make."

Most sources include a README and an INSTALL file. Reading those will generally provide much useful information.
 
Old 08-04-2014, 07:06 AM   #6
abhilashbsstabilix
LQ Newbie
 
Registered: Jul 2014
Posts: 10

Original Poster
Rep: Reputation: Disabled
Thank you for your response... Problem Solved ... its interesting to compile from source but time consuming ...
 
Old 08-05-2014, 09:25 AM   #7
mirage1993
Member
 
Registered: Feb 2014
Location: China
Distribution: CentOS6.4
Posts: 51

Rep: Reputation: Disabled
You can read INSTALL or README to learn how to install it.
these two files are in the directory of software
 
Old 08-05-2014, 09:29 AM   #8
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware
Posts: 7,667
Blog Entries: 10

Rep: Reputation: Disabled
Quote:
Originally Posted by abhilashbsstabilix View Post
Thank you for your response... Problem Solved ... its interesting to compile from source but time consuming ...
Yup, it can be recursive-

Enjoy your CentOS!
 
  


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
Would you still use linux today if you had to install packages by source KickAss General 14 10-15-2013 04:43 PM
Arch Linux: Do I need to install most of packages from source? ravi.xolve Linux - Distributions 2 03-21-2011 06:33 PM
Cant Install the source packages for drivers Jakuar Linux - Software 3 03-21-2007 07:06 AM
How I Can I Install All Source Packages In A Dir? HGeneAnthony Linux - General 1 06-26-2005 10:38 AM

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

All times are GMT -5. The time now is 10:28 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration