Problems with installing to /etc and /var

Guy Fraser guy at incentre.net
Wed Jul 13 17:11:54 CEST 2005


On Fri, 2005-08-07 at 16:37 -0500, jck-freeradius at southwestern.edu
wrote: 
> I am running freeradius-1.0.4 from source, on SLES 9.0.  I want to install
> freeradius so that it uses /etc and /var, and not /usr/local/etc and /usr/local/var.
> 

On Suse, Redhat and a few other Linux distributions they like to 
clutter up these directories.

> If I do:
> 
> /usr/local/src/freeradius-1.0.4 # make clean && make distclean
> 
> /usr/local/src/freeradius-1.0.4 # ./configure --disable-shared --without-rlm_x99_token --prefix=/ --localstatedir=/var \

> --sysconfdir=/etc --exec-prefix=/ --bindir=/usr/local --sbin=/usr/local --libexec=/usr/local --datadir=/usr/local \

> --libdir=/usr/local --includedir=/usr/local --oldincludedir=/usr/local --infodir=/usr/local --mandir=/usr/local && make 
> 

You missed a few:
>From what you included, this could be derived :

./configure --disable-shared --without-rlm_x99_token \
--prefix=/ --localstatedir=/var --sysconfdir=/etc --exec-prefix=/ \
--bindir=/usr/bin --sbin=/usr/sbin --libexec=/usr/libexec \
--datadir=/usr/share --libdir=/usr/lib --includedir=/usr/include \
--infodir=/usr/share/info --mandir=/usr/share/man && make

I wouldn't modify --oldincludedir= .

You will need to also edit radiusd.conf and the maube the
dictionary file. I suggest using grep to look for other
files in the raddb directory that need to be updated.

Is there any specific reason to have set --disable-shared ?

Have you used ;

./configure --help

to make sure you understand all of the options.


> Why do I receive this error message:
> 
> /usr/local/src/freeradius-1.0.4 # src/main/radiusd
> Fri Jul  8 15:49:43 2005 : Info: Starting - reading configuration files ...
> radiusd: Couldn't open /usr/local/var/log/radius/radius.log for logging: Permission denied
>   (rlm_exec: Wait=yes but no output defined. Did you mean output=none?)
> 

Please note that there may be a more efficient way of 
specifying the changes, but to be sure you will have to 
read the help from configure. Example :


./configure --disable-shared --without-rlm_x99_token \
--prefix=/ --exec-prefix=/usr  && make

All the rest of the directories will be properly allocated.


> 
> There should be no reference to:
> 
> 	Couldn't open /usr/local/var/log/radius/radius.log
> 
> Full logs of configure and make are viewable at:
> 	http://www.southwestern.edu/~johnk/freeradius_build_logs.txt
> 
> Additionaly, why isn't there a Makefile method for deinstallation?
> 

Because nobody has contributed one.

> 
> Thanks,
> --johnk 
> - 
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html





More information about the Freeradius-Users mailing list