Re: (PM) Hacked and resetting up radius

Thomas C Kinnen (tkinnen@livingston.com)
Fri, 30 Apr 1999 10:57:41 -0700

Jack Hatfield wrote:

This should be on the RADIUS list.

>
> I have unpacked radius 2.0 and running radiusd I get the message
>
> can't load library 'libdb.so.1'

This is also in the radius mail list archives:

Changes you need to make for compiling RADIUS on RedHat's Linux.

1. Since the crypt function has been moved out of the libc archive to its
own
library. Add the "-lcrypt" to the LIB definition in the
radius/src/conf/Linux_2.0 file.

Before : LIBS= -ldb
After : LIBS= -ldb -lcrypt

2. Also, you will need to change the sys_errlist definition in
radius/src/conf.h. You can simply comment it out or change it to
match the definition in /usr/include/stdio.h, either way.

Before : extern char * sys_errlist[];
After : /* extern char * sys_errlist[]; */

2a. Now run build
make EXT=Linux_2.0 build

3. If you are using shadow passwords i.e. you have a /etc/passwd and
/etc/shadow
then delete the -DNOSHADOW flag from CPPFLAGS in the Makefile

Before : CPPFLAGS = -DNOSHADOW
After : #CPPFLAGS = -DNOSHADOW

4. Then make the binary:

make EXT=Linux_2.0 build

5. Skip this step generally...
YOU ONLY NEED TO DO THIS STEP IF YOU GET A ERROR SIMILAR TO THIS

libdb.so.1 library not found

With some versions of LINUX the LIB's change.
They use libdb.so.2 while we look for libdb.so.1
This can be fixed by creating a symbolic link to libdb.so.1

ln -s /usr/lib/libdb.so.2 /usr/lib/libdb.so.1

3a. To verify symbolic link type:

ls -l libdb.so.1

-- 
Thomas C Kinnen - <tkinnen@livingston.com> <tkinnen@sobhrach.com>
[RADIUS Test Engineer] - LUCENT Technologies RABU
"All of the opinions stated above are my own and not my employer's,
unless they were given to me by my employer"

- To unsubscribe, email 'majordomo@livingston.com' with 'unsubscribe portmaster-users' in the body of the message. Searchable list archive: <URL:http://www.livingston.com/Tech/archive/>