Need help on testing freeradius (problems with radclient)...
Hello! A had freeradius installed via apt-get into my ubuntu 11.04. Because I need to install it with JRadius module, I decided to install it from source code (via configure, make, make install). After some issues, I achieved it well, with radiusd running in my machine. Trying to configure my /etc/raddb/users so that I can test it, I get this error when I try to run radtest:
radtest "John Doe" hello 127.0.0.1 0 radiussecret /usr/local/bin/radclient: error while loading shared libraries: libfreeradius-radius-2.2.0.so: cannot open shared object file: No such file or directory
Can anybody help me on this? -- View this message in context: http://freeradius.1045715.n5.nabble.com/Need-help-on-testing-freeradius-prob... Sent from the FreeRadius - Dev mailing list archive at Nabble.com.
probably you install radius libraries in /usr/local/lib and /usr/local/lib is not in you library path. So, you must add /usr/local/lib to list of libraries as adding one to LD_LIBRARY_PATH environment directory or to ld.so system config. (man ld.so for details). Also note, that this is a general linux question, rather then radius-specific. On Mon, Nov 21, 2011 at 11:52 AM, artaxerxe <mapandrei@gmail.com> wrote:
Hello! A had freeradius installed via apt-get into my ubuntu 11.04. Because I need to install it with JRadius module, I decided to install it from source code (via configure, make, make install). After some issues, I achieved it well, with radiusd running in my machine. Trying to configure my /etc/raddb/users so that I can test it, I get this error when I try to run radtest:
radtest "John Doe" hello 127.0.0.1 0 radiussecret /usr/local/bin/radclient: error while loading shared libraries: libfreeradius-radius-2.2.0.so: cannot open shared object file: No such file or directory
Can anybody help me on this?
-- View this message in context: http://freeradius.1045715.n5.nabble.com/Need-help-on-testing-freeradius-prob... Sent from the FreeRadius - Dev mailing list archive at Nabble.com. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/devel.html
I have included already the /usr/local/lib directory in my LD_LIBRARY_PATH, but I think the problem is I don't have this library in my system: libfreeradius-radius-2.2.0.so. So is freeradius missing something at installation time? Because I can't find this library even on the internet to download. Thanks -- View this message in context: http://freeradius.1045715.n5.nabble.com/Need-help-on-testing-freeradius-prob... Sent from the FreeRadius - Dev mailing list archive at Nabble.com.
Hi,
I have included already the /usr/local/lib directory in my LD_LIBRARY_PATH, but I think the problem is I don't have this library in my system: libfreeradius-radius-2.2.0.so. So is freeradius missing something at installation time? Because I can't find this library even on the internet to download.
the libraries needs for FR are either installed when you install the package or are installed when you install from source (./configure ; make ; make install) have you run /sbin/ldconfig -v ? alan
My problem is that I have in my system installed this library instead of what it needs: libfreeradius-radius-2.1.12.so. The freeradius installation requires version 2.2.0. So I think this is a issue that comes from the source code... I downloaded the freradius v 2.1.12 from http://freeradius.org//download.html this link, so have some ideas on this...? -- View this message in context: http://freeradius.1045715.n5.nabble.com/Need-help-on-testing-freeradius-prob... Sent from the FreeRadius - Dev mailing list archive at Nabble.com.
artaxerxe wrote:
I have included already the /usr/local/lib directory in my LD_LIBRARY_PATH, but I think the problem is I don't have this library in my system: libfreeradius-radius-2.2.0.so. So is freeradius missing something at installation time? Because I can't find this library even on the internet to download.
So you didn't tell us what you *really* did. You said you built the server. This is true. You *didn't* say that you copied radclient to a different machine. That's the *only* way you can have radclient but not any libfreeradius-radius on your system. You need to build && install radclient on the same machine. Or, when copying radclient, copy *all* of the files it needs. This means libraries, dictionaries, etc. And don't ask us which ones. That is done automatically by "make install". So you doing it manually is a waste of everyones time. Alan DeKok.
No. I have installed the client and server on the same machine. As a summary: My FR version:
/sbin/radiusd -v radiusd: FreeRADIUS Version 2.1.12, for host i686-pc-linux-gnu, built on Nov 21 2011 at 12:51:47 Copyright (C) 1999-2011 The FreeRADIUS server project and contributors. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. You may redistribute copies of FreeRADIUS under the terms of the GNU General Public License. For more information about these matters, see the file named COPYRIGHT.
required library when I make the test:
radtest "John Doe" hello 127.0.0.1 0 radiussecret /usr/local/bin/radclient: error while loading shared libraries: libfreeradius-radius-2.2.0.so: cannot open shared object file: No such file or directory
finally, if I search for libfreeradius libraries, I get the following:
find / | grep -i libfreeradius ...............
/lib/libfreeradius-eap-2.1.12.so /lib/libfreeradius-eap.a /lib/libfreeradius-eap.la /lib/libfreeradius-radius.so /lib/libfreeradius-radius-2.1.12.so /lib/libfreeradius-radius.a /lib/libfreeradius-radius-2.1.12.la /lib/libfreeradius-radius.la /lib/libfreeradius-eap-2.1.12.la /lib/libfreeradius-eap.so So, as you can see, the libraries version is 2.1.12, the FR version is 2.1.12, but the required libraries version is 2.2.0. -- View this message in context: http://freeradius.1045715.n5.nabble.com/Need-help-on-testing-freeradius-prob... Sent from the FreeRadius - Dev mailing list archive at Nabble.com.
artaxerxe wrote:
No. I have installed the client and server on the same machine. As a summary: My FR version:
/sbin/radiusd -v radiusd: FreeRADIUS Version 2.1.12, for host i686-pc-linux-gnu, built on Nov
OK... that's 2.1.12.
required library when I make the test:
radtest "John Doe" hello 127.0.0.1 0 radiussecret /usr/local/bin/radclient: error while loading shared libraries: libfreeradius-radius-2.2.0.so: cannot open shared object file: No such file or directory
Which is 2.2.0. So you have SOMEHOW managed to get radclient from 2.2.0, while installing everything else from 2.1.12. This does NOT happen on the default install. It does NOT happen for other peoples systems. It is something YOU did.
So, as you can see, the libraries version is 2.1.12, the FR version is 2.1.12, but the required libraries version is 2.2.0.
Delete the radclient binary, and re-install. But really, this isn't a RADIUS problem. This is a system administration problem. Alan DeKok.
Problem solved: I tried to install before FR version 2.2.0 from svn repository. So I think there was some conflicts from files that remains from previous installation. -- View this message in context: http://freeradius.1045715.n5.nabble.com/Need-help-on-testing-freeradius-prob... Sent from the FreeRadius - Dev mailing list archive at Nabble.com.
participants (4)
-
Alan Buxey -
Alan DeKok -
artaxerxe -
Ruslan Shevchenko