Goutham
asked on
Can't locate Dahdi.pm after installing dhadi
Dear Experts:
I am in process of setting up asterisk ip-pbx on centos 6.5 managed to install the below listed packages successfully
rpm -ivh popt-1.13-7.el6.i686.rpm
rpm -ivh slang-2.2.1-1.el6.i686.rpm
rpm -ivh newt-0.52.11-3.el6.i686.rp m
rpm -ivh libstdc++-4.4.7-4.el6.i686 .rpm
rpm -ivh libusb-0.1.12-23.el6.i686. rpm
rpm -Uvh dahdi-2.8.0.1-1.i686.rpm dahdi-devel-2.8.0.1-1.i686 .rpm kmod-dahdi-2.8.0.1-1.i686. rpm
after the above installed when executed lsdahdi, below message
# lsdahdi
can't locate Dahdi.pm in @INC (@INC contains: /usr/sbin /usr/sbin/perl_modules /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_pe rl /usr/share/perl5/vendor_pe rl /usr/lib64/perl5 /usr/share/perl5 .) at /usr/sbin/lsdahdi line 14.
BEGIN failed--compilation aborted at /usr/sbin/lsdahdi line 14.
--------------------
executed the find command
find -name Dahdi.pm
./lib/perl5/vendor_perl/5. 8.8/Dahdi. pm
Please suggest to fix this
Thanks in advance
I am in process of setting up asterisk ip-pbx on centos 6.5 managed to install the below listed packages successfully
rpm -ivh popt-1.13-7.el6.i686.rpm
rpm -ivh slang-2.2.1-1.el6.i686.rpm
rpm -ivh newt-0.52.11-3.el6.i686.rp
rpm -ivh libstdc++-4.4.7-4.el6.i686
rpm -ivh libusb-0.1.12-23.el6.i686.
rpm -Uvh dahdi-2.8.0.1-1.i686.rpm dahdi-devel-2.8.0.1-1.i686
after the above installed when executed lsdahdi, below message
# lsdahdi
can't locate Dahdi.pm in @INC (@INC contains: /usr/sbin /usr/sbin/perl_modules /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_pe
BEGIN failed--compilation aborted at /usr/sbin/lsdahdi line 14.
--------------------
executed the find command
find -name Dahdi.pm
./lib/perl5/vendor_perl/5.
Please suggest to fix this
Thanks in advance
Maybe you could try adding /lib/perl5/vendor_perl/5.8 .8 to your PERL5LIB environment
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for the reply, can you please help in steps on what to be done , copy of Dahdi.pm to be placed in which directory path not getting what is @INC
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
@D_wathi re: @INC you posted @INC contains: /usr/sbin /usr/sbin/perl_modules /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_pe rl /usr/share/perl5/vendor_pe rl /usr/lib64/perl5 /usr/share/perl in your original Q. So any of these directories would be fine as a target into which to copy
@Duncan Roe - Asker may not realize that @INC is output from the lsdahdi command.
@D_wathi - Did you run the cp command I suggested?
@D_wathi - Did you run the cp command I suggested?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
lib preagma
local::lib pragma
The other option would be to use cpan or cpanm to reinstall the module so that it gets put within your @INC path.