Welcome to the Linux Foundation Forum!

Is there a command to show the configure options?

Hi,

Is there a cmd to display the configure options when installing this software?

I saw it before, but can't remember it now, anyone knows ?

Thanks in advance

Comments

  • marc
    marc Posts: 647
    robbin wrote:
    Hi,

    Is there a cmd to display the configure options when installing this software?

    I saw it before, but can't remember it now, anyone knows ?

    Thanks in advance

    Which software? linux?

    If that is it:
    make menuconfig
    
    or
    make xconfigmenu
    
    (that last one if I recall correctly....)

    Regards
  • robbin
    robbin Posts: 3
    I mean all of applications, impossible?
    such as apache, mysql

    I installed them via apt-get, but I want to check the configure options, e.g. --prefix, is there a way?

    Thanks
  • Goineasy9
    Goineasy9 Posts: 1,114
    Either in a terminal, or in a google search field type "man <appname>"
    Example "man mysql"

    Some apps don't have a man page but many do.
  • mfillpot
    mfillpot Posts: 2,177
    robbin wrote:
    Hi,

    Is there a cmd to display the configure options when installing this software?

    I saw it before, but can't remember it now, anyone knows ?

    Thanks in advance

    When you you compiling the new software you can issue the command "./configure --help" to review all of the options.

    If you are wanting to view the configure flags for pre-compiled packages it will be more difficult because not all applications use autotools and because each distro using a different method to build their packages. If you are looking for the flags on pre-build packages then we will need to know which distro you are using so we can refer you to a site or file to locate that information.
  • robbin
    robbin Posts: 3
    Thank you marc.

    how about debian and CentOS, in the most cases, i used these both.
  • marc
    marc Posts: 647
    robbin wrote:
    Thank you marc.

    how about debian and CentOS, in the most cases, i used these both.

    You can always have a look at the source packages (src-deb and srpm). In srpm there'll be a whatever.spec file where the build process is described.

    Here is an extract of a spec file for a perl module I made:
    %build
    %{__perl} Makefile.PL INSTALLDIRS="vendor" PREFIX="%{buildroot}%{_prefix}"
    %{__make} %{?_smp_mflags}
    
    %install
    %{__rm} -rf %{buildroot}
    %{__make} pure_install
    

    Regards

Categories

Upcoming Training