[rt-users] rt2 install error: make install bombs on config.replace target

Jonathan C. Detert detertj at msoe.edu
Fri Dec 21 14:43:58 EST 2001


Hello Users,

anyone have this problem when installing rt 2.x (2.0.9 in my case) :

        'make install' dies while making the target config.replace
        
Here's the full output:
-------------------------------
# make install
mkdir -p //usr/local/rt/bin
mkdir -p //usr/local/rt/WebRT/data
mkdir -p //usr/local/rt/WebRT/sessiondata
mkdir -p //usr/local/rt/etc
mkdir -p //usr/local/rt/lib
mkdir -p //usr/local/rt/WebRT/html
mkdir -p //usr/local/rt/local/WebRT/html
/usr/bin/perl   tools/initdb 'mysql' '/usr' 'localhost' '' 'root' 'rt2'
create
Now creating a database for RT.
Enter the mysql password for root:
Creating mysql database rt2.
cp etc/acl.mysql '//usr/local/rt/etc/acl.mysql'
/usr/bin/perl -p -i -e " s'!!DB_TYPE!!'"mysql"'g;\
                        s'!!DB_HOST!!'"localhost"'g;\
                        s'!!DB_RT_PASS!!'"hilfmir!"'g;\
                        s'!!DB_RT_HOST!!'"localhost"'g;\
                        s'!!DB_RT_USER!!'"rt"'g;\
                        s'!!DB_DATABASE!!'"rt2"'g;"
//usr/local/rt/etc/acl.mysqlbin/initacls.mysql '/usr' 'localhost' ''
//'root' '' 'rt2' '//usr/local/rt/etc/acl.mysql'
Enter the mysql administrator's database password to create a new user
for RT
Enter password:
Enter the mysql administrator's database password to nondestructively
reload the database
Enter password:
/usr/bin/perl   tools/initdb 'mysql' '/usr' 'localhost' '' 'rt' 'rt2'
insert
Now populating database schema.
Enter the mysql password for rt:
Creating database schema.
schema sucessfully inserted
Makefile:370: *** unterminated variable reference.  Stop.
#
--------

If I'm right in assuming the '370' reference is a line number in the
Makefile, then I'm right is saying, as i did above, that the make dies
while trying to build the "config.replace" target.

Here's the blurb in the Makefile for that target:
-------------------------------------------------
config-replace:
        -[ -f $(DESTDIR)/$(RT_CONFIG) ] && \
                mv $(DESTDIR)/$(RT_CONFIG) $(DESTDIR)/$(RT_CONFIG).old && \
                chmod 000 $(DESTDIR)/$(RT_CONFIG).old
        cp -rp ./etc/config.pm $(DESTDIR)/$(RT_CONFIG)
        $(PERL) -p -i -e "\
        s'!!DB_TYPE!!'"$(DB_TYPE)"'g;\
        s'!!DB_HOST!!'"$(DB_HOST)"'g;\
        s'!!DB_PORT!!'"$(DB_PORT)"'g;\
        s'!!DB_RT_PASS!!'"$(DB_RT_PASS)"'g;\
        s'!!DB_RT_USER!!'"$(DB_RT_USER)"'g;\
        s'!!DB_DATABASE!!'"$(DB_DATABASE)"'g;\
        s'!!MASON_HTML_PATH!!'"$(MASON_HTML_PATH)"'g;\
        s'!!MASON_LOCAL_HTML_PATH!!'"$(MASON_LOCAL_HTML_PATH)"'g;\
        s'!!MASON_SESSION_PATH!!'"$(MASON_SESSION_PATH)"'g;\
        s'!!MASON_DATA_PATH!!'"$(MASON_DATA_PATH)"'g;\
        s'!!RT_LOG_PATH!!'"$(RT_LOG_PATH)"'g;\
        s'!!RT_VERSION!!'"$(RT_VERSION)"'g;\
        " $(DESTDIR)/$(RT_CONFIG)

-------------------------------------------------

Based on the error message, i'm assuming the error was in the PERL
execution as part of the config.replace target.  However,
if i'm not mistaken, in my case, $(RT_CONFIG) should evaluate to
/usr/local/rt/etc/config.pm, which doesn't exist.  So why would make
be trying to do this anyway?

Any ideas?  Thanks
-- 
Happy Landings,

Jon Detert
Unix System Administrator, Milwaukee School of Engineering
1025 N. Broadway, Milwaukee, Wisconsin 53202




More information about the rt-users mailing list