LinuxQuestions.org
Visit Jeremy's Blog.
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 09-19-2008, 03:44 PM   #1
thoughtless
LQ Newbie
 
Registered: Sep 2008
Posts: 4

Rep: Reputation: 0
Possible to re ./configure ?


This is a question I've had on my mind for a long time and every time I search for it I don't get anything.

Anyway... Is it possible to rerun configure for an application? For example, PHP. Like right now I'm really wishing I would have configured PHP with tidy built-in -- but I didn't. I'd rather not have to start over by downloading source, configure, make, make install.

This happens every so often with PHP and other applications, so my questions is, is it possible to just reconfigure an application somehow without having to rebuild?
 
Old 09-19-2008, 03:51 PM   #2
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
Originally Posted by thoughtless View Post
This is a question I've had on my mind for a long time and every time I search for it I don't get anything.

Anyway... Is it possible to rerun configure for an application? For example, PHP. Like right now I'm really wishing I would have configured PHP with tidy built-in -- but I didn't. I'd rather not have to start over by downloading source, configure, make, make install.

This happens every so often with PHP and other applications, so my questions is, is it possible to just reconfigure an application somehow without having to rebuild?
No.

The tipical configure script is an automated way to create the makefiles that will guide the build process.

These configure script will search for needed libraries, will enable or disable some functionalities (which in turn might add or substract dependencies) and will set up everything for the later compilation. So, configuring the sources is a previous step to compile them with the needed functionalities.

If you reconfigure the sources, you need to rebuild the program with the new settings. And of course, you need to make install afterwards to put the new binaries in your system.
 
Old 09-19-2008, 04:00 PM   #3
thoughtless
LQ Newbie
 
Registered: Sep 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by i92guboj View Post
No.

The tipical configure script is an automated way to create the makefiles that will guide the build process.

These configure script will search for needed libraries, will enable or disable some functionalities (which in turn might add or substract dependencies) and will set up everything for the later compilation. So, configuring the sources is a previous step to compile them with the needed functionalities.

If you reconfigure the sources, you need to rebuild the program with the new settings. And of course, you need to make install afterwards to put the new binaries in your system.
Ok. I guessed that'd be the answer. Damn, wishful thinking never works out ;p
 
Old 09-19-2008, 04:28 PM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
You have to run "make clean" or "make distclean" before running ./configure again. Read this to see the difference between the 2 commands.

Regards
 
Old 09-19-2008, 05:03 PM   #5
thoughtless
LQ Newbie
 
Registered: Sep 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by bathory View Post
You have to run "make clean" or "make distclean" before running ./configure again. Read this to see the difference between the 2 commands.

Regards
Never heard of distclean before. I only ran make clean and it seemed to compile OK and my change took effect. I'll keep it in mind for the future. Thanks all for your quick help.
 
  


Reply

Tags
configure


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
dpkg-buildpackage configure: error: can only configure for one host and one target at donnied Debian 0 05-26-2008 07:08 PM
Configure dhcpd (Configure DHCP Server) hanserver2004 LinuxQuestions.org Member Success Stories 3 10-23-2006 06:39 AM
./configure fails with: libz... configure: error: not found. erpe Linux - Software 17 10-11-2006 05:56 PM
[root@Linuxboy magicolor2430DL-1.1.0]# ./configure ./configure: No such file or ... anseK Mandriva 7 01-02-2006 04:21 PM
configure: error: when trying to install / configure new software ? met tomfer007 Linux - Software 1 07-25-2004 03:52 PM

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

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