Hello, i have compiled perl latest version from source then i have compiled freeradius in order to make rlm_perl work. But i have an issue when i execute the ld command: ldd /opt/freeradius/current/lib/rlm_perl.so i get this: linux-vdso.so.1 => (0x00007ffe5fc4d000) libperl.so => /usr/local/lib/perl5/5.26.1/x86_64-linux/CORE/libperl.so (0x00007f2e20b15000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f2e208ec000) libnsl.so.1 => /lib64/libnsl.so.1 (0x00007f2e206d3000) libdl.so.2 => /lib64/libdl.so.2 (0x00007f2e204cf000) libm.so.6 => /lib64/libm.so.6 (0x00007f2e201cc000) libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007f2e1ff95000) libutil.so.1 => /lib64/libutil.so.1 (0x00007f2e1fd92000) libc.so.6 => /lib64/libc.so.6 (0x00007f2e1f9ce000) /lib64/ld-linux-x86-64.so.2 (0x000055bfb2e85000) libfreebl3.so => /lib64/libfreebl3.so (0x00007f2e1f7cb000) my problem is that i don't see this module: libresolv.so.2 => /lib64/libresolv.so.2 (0x00007f028153b000) how can i compile lib_perl with this module please or must i compile perl with this module in order to make rlm_perl see this module? someone could help me please? Best Regards Mettichi Bassem
On 5/02/2018, at 10:04 PM, Bassem Mettichi <mettichi@gmail.com> wrote:
Hello,
i have compiled perl latest version from source then i have compiled freeradius in order to make rlm_perl work. But i have an issue
when i execute the ld command: ldd /opt/freeradius/current/lib/rlm_perl.so i get this:
linux-vdso.so.1 => (0x00007ffe5fc4d000) libperl.so => /usr/local/lib/perl5/5.26.1/x86_64-linux/CORE/libperl.so (0x00007f2e20b15000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f2e208ec000) libnsl.so.1 => /lib64/libnsl.so.1 (0x00007f2e206d3000) libdl.so.2 => /lib64/libdl.so.2 (0x00007f2e204cf000) libm.so.6 => /lib64/libm.so.6 (0x00007f2e201cc000) libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007f2e1ff95000) libutil.so.1 => /lib64/libutil.so.1 (0x00007f2e1fd92000) libc.so.6 => /lib64/libc.so.6 (0x00007f2e1f9ce000) /lib64/ld-linux-x86-64.so.2 (0x000055bfb2e85000) libfreebl3.so => /lib64/libfreebl3.so (0x00007f2e1f7cb000)
my problem is that i don't see this module: libresolv.so.2 => /lib64/libresolv.so.2 (0x00007f028153b000)
how can i compile lib_perl with this module please or must i compile perl with this module in order to make rlm_perl see this module? someone could help me please?
Can you describe the exact problem you are seeing? Why are you running these commands? What are you trying to do? What sort of system are you on? Compiling lib_perl (I presume you mean libperl) is something for the perl mailing list. Compiling rlm_perl is for this list, but, I really have no idea what the problem that you are trying to solve is - please provide as much information as possible, not just the stuff that you think is interesting. -- Nathan Ward
Hello, i have two machines runing both centos 7, in the first machine to make rlm_perl working i have installed all perl modules with: yum install perl* in the second machine, i have compiled the latest version of perl perl-5.26.1: ./Configure -Accflags='-fPIC' -Duseshrplib -des -Dlibpth="/usr/local/lib64 /lib64 /usr/lib64" $ make $ make test # make install because with yum install perl* this will install a lot of modules that i don't need. ine the first machine module rlm_perl is working good and i have the same configuration of freerdius in the two machines and the same example.pl file, i have created a clone method to conncet to database and i have use this conncetion in the autorisation method, my problem is in the second machine every thing is working good however in the second machine when i run freerdaius and do an access request packet it doesn't see the connection property that i have declared on clone method. in order to make this work i have to declare the connection on autorisation method that is why i have provided the modules that dépends on rlm_perl and i thing the problem is with module libresolv.so.2 so could any one has an ide on this? Thanks in advance Best regrads Mettichi Bassem 2018-02-05 10:16 GMT+01:00 Nathan Ward <lists+freeradius@daork.net>:
On 5/02/2018, at 10:04 PM, Bassem Mettichi <mettichi@gmail.com> wrote:
Hello,
i have compiled perl latest version from source then i have compiled freeradius in order to make rlm_perl work. But i have an issue
when i execute the ld command: ldd /opt/freeradius/current/lib/ rlm_perl.so i get this:
linux-vdso.so.1 => (0x00007ffe5fc4d000) libperl.so => /usr/local/lib/perl5/5.26.1/x86_64-linux/CORE/libperl.so (0x00007f2e20b15000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f2e208ec000) libnsl.so.1 => /lib64/libnsl.so.1 (0x00007f2e206d3000) libdl.so.2 => /lib64/libdl.so.2 (0x00007f2e204cf000) libm.so.6 => /lib64/libm.so.6 (0x00007f2e201cc000) libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007f2e1ff95000) libutil.so.1 => /lib64/libutil.so.1 (0x00007f2e1fd92000) libc.so.6 => /lib64/libc.so.6 (0x00007f2e1f9ce000) /lib64/ld-linux-x86-64.so.2 (0x000055bfb2e85000) libfreebl3.so => /lib64/libfreebl3.so (0x00007f2e1f7cb000)
my problem is that i don't see this module: libresolv.so.2 => /lib64/libresolv.so.2 (0x00007f028153b000)
how can i compile lib_perl with this module please or must i compile perl with this module in order to make rlm_perl see this module? someone could help me please?
Can you describe the exact problem you are seeing? Why are you running these commands? What are you trying to do? What sort of system are you on?
Compiling lib_perl (I presume you mean libperl) is something for the perl mailing list. Compiling rlm_perl is for this list, but, I really have no idea what the problem that you are trying to solve is - please provide as much information as possible, not just the stuff that you think is interesting.
-- Nathan Ward
- List info/subscribe/unsubscribe? See http://www.freeradius.org/ list/users.html
On 5/02/2018, at 10:32 PM, Bassem Mettichi <mettichi@gmail.com> wrote:
Hello,
i have two machines runing both centos 7, in the first machine to make rlm_perl working i have installed all perl modules with: yum install perl* in the second machine, i have compiled the latest version of perl perl-5.26.1:
./Configure -Accflags='-fPIC' -Duseshrplib -des -Dlibpth="/usr/local/lib64 /lib64 /usr/lib64" $ make $ make test # make install
because with yum install perl* this will install a lot of modules that i don't need.
So, it worked on machine A fine when you installed with yum, but on machine B you decided to compile perl from scratch, and have come to the FreeRADIUS list for support? It is clear what the problem here is. If machine A worked, do machine B the same way you did machine A. Once you understand what you are doing, you can start doing things like compiling perl from scratch by hand (but you won’t, because you’ll have learned by then that that’s almost always a silly thing to do). If you’d like, here is a super cheat code for you, but this is off topic for the FreeRADIUS list and is something for the perl list(s) - don’t install “perl*” - install “perl” and if you need to compile something with perl headers (i.e. if you compile your own FreeRADIUS which it sounds like you probably do for some reason) you can install “perl-devel”. Then only install the perl modules you actually want to use in your code.
ine the first machine module rlm_perl is working good and i have the same configuration of freerdius in the two machines and the same example.pl file,
i have created a clone method to conncet to database and i have use this conncetion in the autorisation method, my problem is in the second machine every thing is working good however in the second machine when i run freerdaius and do an access request packet it doesn't see the connection property that i have declared on clone method. in order to make this work i have to declare the connection on autorisation method that is why i have provided the modules that dépends on rlm_perl and i thing the problem is with module
libresolv.so.2 so could any one has an ide on this?
I still see no information that you have provided where there is any reference to libresolv.so.2, or why you think it is related to FreeRADIUS. Please provide that information if you want assistance. We all know what libresolv.so.2 is for and what it does, but there’s no clear reason why you’re asking about it. -- Nathan Ward
hello, ldd /opt/freeradius/current/lib/rlm_perl.so linux-vdso.so.1 => (0x00007ffd6fef7000) libperl.so => /usr/lib64/perl5/CORE/libperl.so (0x00007fc1c5c1b000) libresolv.so.2 => /lib64/libresolv.so.2 (0x00007fc1c59ee000) libnsl.so.1 => /lib64/libnsl.so.1 (0x00007fc1c57d5000) libdl.so.2 => /lib64/libdl.so.2 (0x00007fc1c55d1000) libm.so.6 => /lib64/libm.so.6 (0x00007fc1c52ce000) libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007fc1c5097000) libutil.so.1 => /lib64/libutil.so.1 (0x00007fc1c4e94000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fc1c4c77000) libc.so.6 => /lib64/libc.so.6 (0x00007fc1c48b4000) /lib64/ld-linux-x86-64.so.2 (0x000055eedd16b000) libfreebl3.so => /lib64/libfreebl3.so (0x00007fc1c46b1000) this is the output of the machine that is working good and this the output of the machine where i have the problem that i have described above: ldd /opt/freeradius/current/lib/rlm_perl.so linux-vdso.so.1 => (0x00007ffdcc1a1000) libperl.so => /usr/local/lib/perl5/5.26.1/x86_64-linux/CORE/libperl.so (0x00007f3670394000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f367016a000) libnsl.so.1 => /lib64/libnsl.so.1 (0x00007f366ff51000) libdl.so.2 => /lib64/libdl.so.2 (0x00007f366fd4d000) libm.so.6 => /lib64/libm.so.6 (0x00007f366fa4a000) libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007f366f813000) libutil.so.1 => /lib64/libutil.so.1 (0x00007f366f610000) libc.so.6 => /lib64/libc.so.6 (0x00007f366f24c000) /lib64/ld-linux-x86-64.so.2 (0x0000559acff99000) libfreebl3.so => /lib64/libfreebl3.so (0x00007f366f049000) if you make a simple comparaison you will see that it miss this module libresolv.so.2 i hope every this is clear now. Thanks in advance 2018-02-05 10:43 GMT+01:00 Nathan Ward <lists+freeradius@daork.net>:
On 5/02/2018, at 10:32 PM, Bassem Mettichi <mettichi@gmail.com> wrote:
Hello,
i have two machines runing both centos 7, in the first machine to make rlm_perl working i have installed all perl modules with: yum install perl* in the second machine, i have compiled the latest version of perl perl-5.26.1:
./Configure -Accflags='-fPIC' -Duseshrplib -des -Dlibpth="/usr/local/lib64 /lib64 /usr/lib64" $ make $ make test # make install
because with yum install perl* this will install a lot of modules that i don't need.
So, it worked on machine A fine when you installed with yum, but on machine B you decided to compile perl from scratch, and have come to the FreeRADIUS list for support? It is clear what the problem here is. If machine A worked, do machine B the same way you did machine A. Once you understand what you are doing, you can start doing things like compiling perl from scratch by hand (but you won’t, because you’ll have learned by then that that’s almost always a silly thing to do).
If you’d like, here is a super cheat code for you, but this is off topic for the FreeRADIUS list and is something for the perl list(s) - don’t install “perl*” - install “perl” and if you need to compile something with perl headers (i.e. if you compile your own FreeRADIUS which it sounds like you probably do for some reason) you can install “perl-devel”. Then only install the perl modules you actually want to use in your code.
ine the first machine module rlm_perl is working good and i have the same configuration of freerdius in the two machines and the same example.pl file,
i have created a clone method to conncet to database and i have use this conncetion in the autorisation method, my problem is in the second machine every thing is working good however in the second machine when i run freerdaius and do an access request packet it doesn't see the connection property that i have declared on clone method. in order to make this work i have to declare the connection on autorisation method that is why i have provided the modules that dépends on rlm_perl and i thing the problem is with module
libresolv.so.2 so could any one has an ide on this?
I still see no information that you have provided where there is any reference to libresolv.so.2, or why you think it is related to FreeRADIUS. Please provide that information if you want assistance. We all know what libresolv.so.2 is for and what it does, but there’s no clear reason why you’re asking about it.
-- Nathan Ward
- List info/subscribe/unsubscribe? See http://www.freeradius.org/ list/users.html
On 5/02/2018, at 11:07 PM, Bassem Mettichi <mettichi@gmail.com> wrote:
hello,
<blahblahblah>
i hope every this is clear now.
Nope. Why are you running these commands? Why do you expect that there will be a dependency on libresolv.so.2? I do not see any unresolved dependencies listed, so I’m not sure what the problem is exactly. Perhaps you can show exactly the problem you are experiencing, as I have asked several times. Why are you trying to compile things from scratch without understanding what you are doing? -- Nathan Ward
because with yum install perl* this will install a lot of modules that i don't need.
ummm...theres a reason for the 'lof of modules' - its because when you do yum install perl, you are asking for the system to install PERL system - and you get what the distro developers have decided is needed for a basic PERL installation environment. I can give you a hint here - if you dont know exactly what random IO etc modules you need, you will need to just accept this. as for PERL with FreeRADIUS, to get a working environment, you will need to compile FreeRADIUS with PERL support on a system that has the PERL development headers installed. to use that binary elsewhere, you will need to ensure that ALL of the required dependencies, working PERL environment etc, are present on the target machine...thats all the required libraries AND all the PATH environments etc. alan On 5 February 2018 at 09:32, Bassem Mettichi <mettichi@gmail.com> wrote:
Hello,
i have two machines runing both centos 7, in the first machine to make rlm_perl working i have installed all perl modules with: yum install perl* in the second machine, i have compiled the latest version of perl perl-5.26.1:
./Configure -Accflags='-fPIC' -Duseshrplib -des -Dlibpth="/usr/local/lib64 /lib64 /usr/lib64" $ make $ make test # make install
because with yum install perl* this will install a lot of modules that i don't need.
ine the first machine module rlm_perl is working good and i have the same configuration of freerdius in the two machines and the same example.pl file,
i have created a clone method to conncet to database and i have use this conncetion in the autorisation method, my problem is in the second machine every thing is working good however in the second machine when i run freerdaius and do an access request packet it doesn't see the connection property that i have declared on clone method. in order to make this work i have to declare the connection on autorisation method that is why i have provided the modules that dépends on rlm_perl and i thing the problem is with module
libresolv.so.2 so could any one has an ide on this?
Thanks in advance
Best regrads Mettichi Bassem
2018-02-05 10:16 GMT+01:00 Nathan Ward <lists+freeradius@daork.net>:
On 5/02/2018, at 10:04 PM, Bassem Mettichi <mettichi@gmail.com> wrote:
Hello,
i have compiled perl latest version from source then i have compiled freeradius in order to make rlm_perl work. But i have an issue
when i execute the ld command: ldd /opt/freeradius/current/lib/ rlm_perl.so i get this:
linux-vdso.so.1 => (0x00007ffe5fc4d000) libperl.so => /usr/local/lib/perl5/5.26.1/x86_64-linux/CORE/libperl.so (0x00007f2e20b15000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f2e208ec000) libnsl.so.1 => /lib64/libnsl.so.1 (0x00007f2e206d3000) libdl.so.2 => /lib64/libdl.so.2 (0x00007f2e204cf000) libm.so.6 => /lib64/libm.so.6 (0x00007f2e201cc000) libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007f2e1ff95000) libutil.so.1 => /lib64/libutil.so.1 (0x00007f2e1fd92000) libc.so.6 => /lib64/libc.so.6 (0x00007f2e1f9ce000) /lib64/ld-linux-x86-64.so.2 (0x000055bfb2e85000) libfreebl3.so => /lib64/libfreebl3.so (0x00007f2e1f7cb000)
my problem is that i don't see this module: libresolv.so.2 => /lib64/libresolv.so.2 (0x00007f028153b000)
how can i compile lib_perl with this module please or must i compile
with this module in order to make rlm_perl see this module? someone could help me please?
Can you describe the exact problem you are seeing? Why are you running these commands? What are you trying to do? What sort of system are you on?
Compiling lib_perl (I presume you mean libperl) is something for the perl mailing list. Compiling rlm_perl is for this list, but, I really have no idea what the problem that you are trying to solve is - please provide as much information as possible, not just the stuff that you think is interesting.
-- Nathan Ward
- List info/subscribe/unsubscribe? See http://www.freeradius.org/ list/users.html
perl - List info/subscribe/unsubscribe? See http://www.freeradius.org/ list/users.html
Thanks a lot i have resolved the issue by minimum installation, i have installed only the needed perl modules with youm without doing yum install and every thing is working good for me now. yum install net-snmp net-snmp-utils yum install openssl openssl-devel perl-ExtUtils-CBuilder perl-ExtUtils-MakeMaker yum install libtalloc openssl-devel gcc gcc-c++ make zlib-devel -y yum install hiredis yum install hiredis-devel yum install perl yum install perl-devel yum install perl-libs yum install glibc-devel yum install perl-threads rpm -ivh libtalloc-devel-2.1.9-1.el7.x86_64.rpm yum install perl-ExtUtils-Embed Best Regards Mettichi Bassem 2018-02-05 13:58 GMT+01:00 Alan Buxey <alan.buxey@gmail.com>:
because with yum install perl* this will install a lot of modules that i don't need.
ummm...theres a reason for the 'lof of modules' - its because when you do yum install perl, you are asking for the system to install PERL system - and you get what the distro developers have decided is needed for a basic PERL installation environment. I can give you a hint here - if you dont know exactly what random IO etc modules you need, you will need to just accept this.
as for PERL with FreeRADIUS, to get a working environment, you will need to compile FreeRADIUS with PERL support on a system that has the PERL development headers installed.
to use that binary elsewhere, you will need to ensure that ALL of the required dependencies, working PERL environment etc, are present on the target machine...thats all the required libraries AND all the PATH environments etc.
alan
On 5 February 2018 at 09:32, Bassem Mettichi <mettichi@gmail.com> wrote:
Hello,
i have two machines runing both centos 7, in the first machine to make rlm_perl working i have installed all perl modules with: yum install perl* in the second machine, i have compiled the latest version of perl perl-5.26.1:
./Configure -Accflags='-fPIC' -Duseshrplib -des -Dlibpth="/usr/local/lib64 /lib64 /usr/lib64" $ make $ make test # make install
because with yum install perl* this will install a lot of modules that i don't need.
ine the first machine module rlm_perl is working good and i have the same configuration of freerdius in the two machines and the same example.pl file,
i have created a clone method to conncet to database and i have use this conncetion in the autorisation method, my problem is in the second machine every thing is working good however in the second machine when i run freerdaius and do an access request packet it doesn't see the connection property that i have declared on clone method. in order to make this work i have to declare the connection on autorisation method that is why i have provided the modules that dépends on rlm_perl and i thing the problem is with module
libresolv.so.2 so could any one has an ide on this?
Thanks in advance
Best regrads Mettichi Bassem
2018-02-05 10:16 GMT+01:00 Nathan Ward <lists+freeradius@daork.net>:
On 5/02/2018, at 10:04 PM, Bassem Mettichi <mettichi@gmail.com>
Hello,
i have compiled perl latest version from source then i have compiled freeradius in order to make rlm_perl work. But i have an issue
when i execute the ld command: ldd /opt/freeradius/current/lib/
rlm_perl.so
i get this:
linux-vdso.so.1 => (0x00007ffe5fc4d000) libperl.so => /usr/local/lib/perl5/5.26.1/ x86_64-linux/CORE/libperl.so (0x00007f2e20b15000) libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f2e208ec000) libnsl.so.1 => /lib64/libnsl.so.1 (0x00007f2e206d3000) libdl.so.2 => /lib64/libdl.so.2 (0x00007f2e204cf000) libm.so.6 => /lib64/libm.so.6 (0x00007f2e201cc000) libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007f2e1ff95000) libutil.so.1 => /lib64/libutil.so.1 (0x00007f2e1fd92000) libc.so.6 => /lib64/libc.so.6 (0x00007f2e1f9ce000) /lib64/ld-linux-x86-64.so.2 (0x000055bfb2e85000) libfreebl3.so => /lib64/libfreebl3.so (0x00007f2e1f7cb000)
my problem is that i don't see this module: libresolv.so.2 => /lib64/libresolv.so.2 (0x00007f028153b000)
how can i compile lib_perl with this module please or must i compile perl with this module in order to make rlm_perl see this module? someone could help me please?
Can you describe the exact problem you are seeing? Why are you running these commands? What are you trying to do? What sort of system are you on?
Compiling lib_perl (I presume you mean libperl) is something for the perl mailing list. Compiling rlm_perl is for this list, but, I really have no idea what the problem that you are trying to solve is - please provide as much information as possible, not just the stuff that you think is interesting.
-- Nathan Ward
- List info/subscribe/unsubscribe? See http://www.freeradius.org/ list/users.html
wrote: - List info/subscribe/unsubscribe? See http://www.freeradius.org/ list/users.html
- List info/subscribe/unsubscribe? See http://www.freeradius.org/ list/users.html
participants (3)
-
Alan Buxey -
Bassem Mettichi -
Nathan Ward