How to fetch ./configure parameters used at last time?
8,761
Solution 1
Was the decompressed source directory kept around? If so, the configure
flags would typically be in config.status
or config.log
.
This differs slightly depending on the software and whether or not autoconf was used.
Solution 2
config.status has a --config
flag to print out the last configuration. I found it by running ./config.status --help
--config print configuration, then exit
So just run ./config.status --config
, and it will print out all the configure parameters.
Related videos on Youtube
Author by
Vladislav Rastrusny
Updated on September 17, 2022Comments
-
Vladislav Rastrusny almost 2 years
I am upgrading LAMP stack on customer's server and need to ./configure mysql and apache with exact last settings they were compiled with last time. Where do I get these? PHP configure string can be got by php -i. What about others?
-
Vladislav Rastrusny over 14 yearsThis is not evangelical, this is just how that works ;) Unfortunately, RPM versions don't satisfy that case.
-
Ophidian over 14 yearsThis is the usual "I'm running CentOS but I need more recent versions of everything" case?
-
William Pursell over 14 years+1: Also (assuming configure was generated by autoconf), you can reconfigure using the same flags by running $ config.status --recheck.
-
Vladislav Rastrusny over 14 yearsNo. Different reasons. CentOS version of Apache does not support worker mpm for example. Being torrent tracker, server needed worker mpm. etc.
-
Ophidian over 14 yearsI suppose you could rebuild the source rpm with support turned on... A patch on the spec might be easier to maintain. You probably need to have your own, higher epoch set up so that system updates to httpd don't override yours.