[rt-users] Configure Options for Custom Directories

Tim Wiley tim at marchex.com
Sat Mar 16 13:31:53 EDT 2013


I'm wanting to change the directory layout of our RT installation just a 
bit to put it more in line with the standards of our packaging & deploy 
system.  The configure script clearly states that this is possible with 
a set of options.


<snip>
Installation directories:
   --prefix=PREFIX         install architecture-independent files in PREFIX
                           [/opt/rt4]
   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                           [PREFIX]

By default, `make install' will install all the files in
`/opt/rt4/bin', `/opt/rt4/lib' etc.  You can specify
an installation prefix other than `/opt/rt4' using `--prefix',
for instance `--prefix=$HOME'.

For better control, use the options below.

Fine tuning of the installation directories:
   --bindir=DIR            user executables [EPREFIX/bin]
   --sbindir=DIR           system admin executables [EPREFIX/sbin]
   --libexecdir=DIR        program executables [EPREFIX/libexec]
   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
   --sharedstatedir=DIR    modifiable architecture-independent data 
[PREFIX/com]
   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
   --libdir=DIR            object code libraries [EPREFIX/lib]
   --includedir=DIR        C header files [PREFIX/include]
   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
   --datarootdir=DIR       read-only arch.-independent data root 
[PREFIX/share]
   --datadir=DIR           read-only architecture-independent data 
[DATAROOTDIR]
   --infodir=DIR           info documentation [DATAROOTDIR/info]
   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
   --mandir=DIR            man documentation [DATAROOTDIR/man]
   --docdir=DIR            documentation root [DATAROOTDIR/doc/rt]
   --htmldir=DIR           html documentation [DOCDIR]
   --dvidir=DIR            dvi documentation [DOCDIR]
   --pdfdir=DIR            pdf documentation [DOCDIR]
   --psdir=DIR             ps documentation [DOCDIR]
</snip>


However, I'm finding that of the 3 options I want to use (prefix, 
sysconfdir & localstatedir), only prefix is being honored.  I've 
attached (for readability) a log of my configure command & then a grep 
for one of my option values.  Clearly, the configure script is ignoring 
my other 2 options as they show up nowhere in the grep output except for 
where the configure command is stored.

Any help?
-------------- next part --------------
user at host:~/download/rt/rt-4.0.10$ ./configure --prefix=/site/rt/rt-4.0.10 --sysconfdir=/site/rt/rt-4.0.10/conf --localstatedir=/site/rt/rt-4.0.10/run --enable-gd --enable-graphviz --with-db-type=Pg --with-db-database=rt --with-web-user=www-data --with-web-group=www-data --with-rt-group=www-data --with-web-handler=modperl2
checking for a BSD-compatible install... /usr/bin/install -c
checking for perl... /usr/bin/perl
checking for chosen layout... relative
checking if database name is set... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for aginitlib in -lgraph... no
checking for gdlib-config... yes
checking for gpg... yes
configure: creating ./config.status
config.status: creating etc/upgrade/3.8-branded-queues-extension
config.status: creating etc/upgrade/3.8-ical-extension
config.status: creating etc/upgrade/split-out-cf-categories
config.status: creating etc/upgrade/generate-rtaddressregexp
config.status: creating etc/upgrade/upgrade-articles
config.status: creating etc/upgrade/vulnerable-passwords
config.status: creating sbin/rt-attributes-viewer
config.status: creating sbin/rt-preferences-viewer
config.status: creating sbin/rt-session-viewer
config.status: creating sbin/rt-dump-metadata
config.status: creating sbin/rt-setup-database
config.status: creating sbin/rt-test-dependencies
config.status: creating sbin/rt-email-digest
config.status: creating sbin/rt-email-dashboards
config.status: creating sbin/rt-clean-sessions
config.status: creating sbin/rt-shredder
config.status: creating sbin/rt-validator
config.status: creating sbin/rt-validate-aliases
config.status: creating sbin/rt-email-group-admin
config.status: creating sbin/rt-server
config.status: creating sbin/rt-server.fcgi
config.status: creating sbin/standalone_httpd
config.status: creating sbin/rt-setup-fulltext-index
config.status: creating sbin/rt-fulltext-indexer
config.status: creating bin/rt-crontool
config.status: creating bin/rt-mailgate
config.status: creating bin/rt
config.status: creating Makefile
config.status: creating etc/RT_Config.pm
config.status: creating lib/RT/Generated.pm
config.status: creating t/data/configs/apache2.2+mod_perl.conf
config.status: creating t/data/configs/apache2.2+fastcgi.conf
user at host:~/download/rt/rt-4.0.10$ grep -r '/site/rt/rt-4.0.10/conf' .
./config.log:  $ ./configure --prefix=/site/rt/rt-4.0.10 --sysconfdir=/site/rt/rt-4.0.10/conf --localstatedir=/site/rt/rt-4.0.10/run --enable-gd --enable-graphviz --with-db-type=Pg --with-db-database=rt --with-web-user=www-data --with-web-group=www-data --with-rt-group=www-data --with-web-handler=modperl2
./config.log:CONFIGURE_INCANT='./configure --prefix=/site/rt/rt-4.0.10 --sysconfdir=/site/rt/rt-4.0.10/conf --localstatedir=/site/rt/rt-4.0.10/run --enable-gd --enable-graphviz --with-db-type=Pg --with-db-database=rt --with-web-user=www-data --with-web-group=www-data --with-rt-group=www-data --with-web-handler=modperl2'
./config.status:ac_cs_config="'--prefix=/site/rt/rt-4.0.10' '--sysconfdir=/site/rt/rt-4.0.10/conf' '--localstatedir=/site/rt/rt-4.0.10/run' '--enable-gd' '--enable-graphviz' '--with-db-type=Pg' '--with-db-database=rt' '--with-web-user=www-data' '--with-web-group=www-data' '--with-rt-group=www-data' '--with-web-handler=modperl2'"
./config.status:  set X /bin/bash './configure'  '--prefix=/site/rt/rt-4.0.10' '--sysconfdir=/site/rt/rt-4.0.10/conf' '--localstatedir=/site/rt/rt-4.0.10/run' '--enable-gd' '--enable-graphviz' '--with-db-type=Pg' '--with-db-database=rt' '--with-web-user=www-data' '--with-web-group=www-data' '--with-rt-group=www-data' '--with-web-handler=modperl2' $ac_configure_extra_args --no-create --no-recursion
./config.status:S["CONFIGURE_INCANT"]="./configure --prefix=/site/rt/rt-4.0.10 --sysconfdir=/site/rt/rt-4.0.10/conf --localstatedir=/site/rt/rt-4.0.10/run --enable-gd --enable-graphviz --"\
./etc/RT_Config.pm:#   $ ./configure --prefix=/site/rt/rt-4.0.10 --sysconfdir=/site/rt/rt-4.0.10/conf --localstatedir=/site/rt/rt-4.0.10/run --enable-gd --enable-graphviz --with-db-type=Pg --with-db-database=rt --with-web-user=www-data --with-web-group=www-data --with-rt-group=www-data --with-web-handler=modperl2


More information about the rt-users mailing list