LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-09-2014, 01:23 AM   #1
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 648

Rep: Reputation: 45
How to install new software on terminal ?


hi,
I need help regarding to install and configure software in Linux.CentOS or Debian .

Suppose I want to install foo software.
I download the compress file and then extract it.

Now I use the command

./configure [--option --option...]
make
make install

The question is when i use ./configure what does it actually do ? It only check the dependencies of the software ? This step is not clear to me.

I just issue the command ./configure i scroll my screen and take 2 to 3 minutes then i can not see any new folder or show me what it need or what new step should it do ?

I did google but i can not find the actual answer that it does ./configure do ? what ./configure --prefix means ? etc etc

./configure --prefix=/some/other/directory/

Please guide me.

gardenair
 
Old 10-09-2014, 02:26 AM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

configure will generate a Makefile. The --prefix option is to specify where the software should be installed.

Evo2.
 
Old 10-09-2014, 02:44 AM   #3
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,779

Rep: Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304
in general configure make two different things: first configures a new build system on the current host and os to be able to build the actual software - and that means it will generate the makefiles required to do that. And the other thing you can also configure what and how should be built (so what will be included in the result)
 
Old 10-09-2014, 03:38 AM   #4
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 648

Original Poster
Rep: Reputation: 45
Thanks "evo2 and pan64 for your prompt reply. Well one thing is clear to understand that .configure will generate Makefile, it is done.Well the step which i take, suppose i extract a software name "foo" in "download" folder.

Code:
# cd/download/foo
root@debian:/home/user1/download/foo# ./configure
this command generate make file within /foo folder. Now i give path

Code:
root@debian:/home/user1/download/foo# ./configure --prefix=/usr/local/mysoftware
I create a folder named "mysoftware" .I execute the above command It do all working but when i open the folder "mysoftware" it is empty (nothing inside it)!

Ok if i understand that --prefix will specify where to install the software why it does not show me any single file when i enter the command for

./configure --prefix=/usr/local/mysoftware

What does this command will do ? no effect in mysoftware folder.

gardenair

Last edited by gardenair; 10-09-2014 at 03:41 AM.
 
Old 10-09-2014, 03:42 AM   #5
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

the software won't be installed into to the location you specify until after you have run "make install".

Evo2.
 
Old 10-09-2014, 04:02 AM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,779

Rep: Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304
configure --prefix will tell the build system "where to install" but actually will not install anything but configure.
 
Old 10-09-2014, 04:56 AM   #7
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 648

Original Poster
Rep: Reputation: 45
Thanks for your help.well i am working on it.

Last edited by gardenair; 10-09-2014 at 05:04 AM.
 
Old 10-09-2014, 05:04 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
← #7 .
Quote:
g++: command not found
CentOS : # yum install gcc-c++

Debian : # apt-get install g++
 
Old 10-09-2014, 05:42 AM   #9
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 648

Original Poster
Rep: Reputation: 45
well thanks i use the command. Well a little question is i want to if you visit the page http://wiki.squid-cache.org/SquidFaq/CompilingSquid under "configure options" i can see some options enable.If i does not use this option and simply use ./configure it will skip these options or it is automatically understood to configure these options as well ?

Actally i want to add these options

--enable-dlmalloc
--enable-icmp
--enable-delay-pools


so it should be

Code:
./configure --enable-dlmalloc --enable-icmp  --enable-delay-pools
then

Code:
# make
and at end

Code:
# make install
Now how can I give my path to install it ? which is /usr/local/squid
 
Old 10-09-2014, 05:49 AM   #10
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,779

Rep: Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304Reputation: 7304
usually there is a readme or similar next to configure (and also configure --help may exist) You need to read those information carefully before configuring. There can be default values, so some settings are assumed (for example there is a default for install dir), but you ought to check it....
 
Old 10-09-2014, 06:40 AM   #11
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 648

Original Poster
Rep: Reputation: 45
Well here are the steps.

Code:
# tar xzpf squid-2.4.STABLE1-src.tar.gz
We compile and install Squid (everything is in one line):

Code:
# ./configure --prefix=/usr/local/squid --exec-prefix=/opt/squid --enable-delay-pools --enable-cache-digests --enable-poll --disable-ident-lookups --enable-truncate --enable-removal-policies
Code:
# make all
Code:
# make install
but at the end of make install command i see 3 errors !
 
Old 10-09-2014, 08:32 AM   #12
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,482

Rep: Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485
Quote:
but at the end of make install command i see 3 errors !
I doubt anyone will be able to help you resolve the problem since you neglected to post the errors!
 
Old 10-09-2014, 08:51 AM   #13
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
although it is an intelligent exercise to know how to compile, install and handle dependencies manually but you should probably let the system install everything automatically via the package manager.
 
  


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
[SOLVED] unable to access software manager and download software in terminal newmintuser Linux - Newbie 16 10-30-2014 03:12 AM
install software via terminal Piyush M Linux - Newbie 9 02-03-2013 06:32 PM
Using terminal command sudo apt-get "program" install to install software rphowardjr Linux - Newbie 2 12-05-2012 12:36 PM
Terminal software metallica1973 Linux - Networking 2 12-27-2006 11:22 AM
What terminal software do u use? ICO Linux - Software 27 02-09-2004 04:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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