Asterisk 1.4 install problem --prefix ignored

Hi,

Season’s greetings and all that.

I have a working 1.2.14 installation.

Now I am trying to upgrade to the shiny new 1.4 release (and I want to keep the new release separate from my existing working 1.2 installation) but when I use “configure --prefix=/opt/asterisk-1.4”, the generated Makefile tries to put the sound files under /var. i.e. it’s ignoring the --prefix. I didn’t notice if any other installation directories are wrong.

Cheers,

Mark

Here’s the defaults.h I get after “configure --prefix=/opt/asterisk-1.4”

/*

  • defaults.h
  • Automatically generated
    */
    #define AST_CONFIG_DIR “/etc/asterisk”
    #define AST_RUN_DIR “/var/run”
    #define AST_SOCKET “/var/run/asterisk.ctl”
    #define AST_PID “/var/run/asterisk.pid”
    #define AST_MODULE_DIR “/opt/asterisk-1.4/lib/asterisk/modules”
    #define AST_SPOOL_DIR “/var/spool/asterisk”
    #define AST_VAR_DIR “/var/lib/asterisk”
    #define AST_DATA_DIR “/var/lib/asterisk”
    #define AST_LOG_DIR “/var/log/asterisk”
    #define AST_AGI_DIR “/var/lib/asterisk/agi-bin”
    #define AST_KEY_DIR “/var/lib/asterisk/keys”
    #define AST_DB “/var/lib/asterisk/astdb”
    #define AST_TMP_DIR “/var/spool/asterisk/tmp”

#define AST_CONFIG_FILE “/etc/asterisk/asterisk.conf”

#define AST_SOUNDS “/var/lib/asterisk/sounds”
#define AST_IMAGES “/var/lib/asterisk/images”


You need to specify all those in 1.4 to get the proper prefix.

You need to specify all those in 1.4 to get the proper prefix.

[quote=“mnordstr”]./configure --prefix=/opt/asterisk-1.4 --sysconfdir=/opt/asterisk-1.4/etc --localstatedir=/opt/asterisk-1.4/var

You need to specify all those in 1.4 to get the proper prefix.[/quote]

Thanks for that info. Perhaps it would be useful if that requirement was documented in the release. I’m sure I won’t be the last to be confused by the “non standard” behaviour of the configure script.