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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
10-09-2014, 02:23 AM
|
#1
|
Member
Registered: Oct 2004
Location: LH
Posts: 648
Rep:
|
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
|
|
|
10-09-2014, 03:26 AM
|
#2
|
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726
|
Hi,
configure will generate a Makefile. The --prefix option is to specify where the software should be installed.
Evo2.
|
|
|
10-09-2014, 03:44 AM
|
#3
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,503
|
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)
|
|
|
10-09-2014, 04:38 AM
|
#4
|
Member
Registered: Oct 2004
Location: LH
Posts: 648
Original Poster
Rep:
|
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 04:41 AM.
|
|
|
10-09-2014, 04:42 AM
|
#5
|
LQ Guru
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,726
|
Hi,
the software won't be installed into to the location you specify until after you have run "make install".
Evo2.
|
|
|
10-09-2014, 05:02 AM
|
#6
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,503
|
configure --prefix will tell the build system "where to install" but actually will not install anything but configure.
|
|
|
10-09-2014, 05:56 AM
|
#7
|
Member
Registered: Oct 2004
Location: LH
Posts: 648
Original Poster
Rep:
|
Thanks for your help.well i am working on it.
Last edited by gardenair; 10-09-2014 at 06:04 AM.
|
|
|
10-09-2014, 06:04 AM
|
#8
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
← #7 .
CentOS : # yum install gcc-c++
Debian : # apt-get install g++
|
|
|
10-09-2014, 06:42 AM
|
#9
|
Member
Registered: Oct 2004
Location: LH
Posts: 648
Original Poster
Rep:
|
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
and at end
Now how can I give my path to install it ? which is /usr/local/squid
|
|
|
10-09-2014, 06:49 AM
|
#10
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,503
|
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....
|
|
|
10-09-2014, 07:40 AM
|
#11
|
Member
Registered: Oct 2004
Location: LH
Posts: 648
Original Poster
Rep:
|
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
but at the end of make install command i see 3 errors !
|
|
|
10-09-2014, 09:32 AM
|
#12
|
LQ Guru
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 11,186
|
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!
|
|
|
10-09-2014, 09:51 AM
|
#13
|
LQ Guru
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,326
|
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.
|
|
|
All times are GMT -5. The time now is 10:47 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|