LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to Install packages From Source ? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-install-packages-from-source-4175512714/)

abhilashbsstabilix 07-30-2014 04:39 AM

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

brianL 07-30-2014 05:44 AM

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

abhilashbsstabilix 07-30-2014 06:00 AM

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" ..

shardik 07-30-2014 06:43 AM

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 :-)

frankbell 07-30-2014 09:24 PM

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.

abhilashbsstabilix 08-04-2014 07:06 AM

Thank you for your response... Problem Solved ... its interesting to compile from source but time consuming ... :)

mirage1993 08-05-2014 09:25 AM

You can read INSTALL or README to learn how to install it.
these two files are in the directory of software

Ztcoracat 08-05-2014 09:29 AM

Quote:

Originally Posted by abhilashbsstabilix (Post 5214645)
Thank you for your response... Problem Solved ... its interesting to compile from source but time consuming ... :)

Yup, it can be recursive-

Enjoy your CentOS!


All times are GMT -5. The time now is 06:36 PM.