Link to home
Start Free TrialLog in
Avatar of Goutham
GouthamFlag for India

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.rpm
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_perl /usr/share/perl5/vendor_perl /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
Avatar of FishMonger
FishMonger
Flag of United States of America image

The easiest solution might be use a lib or local::lib pragma statement in each script pointing to where the module is installed.
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.
Maybe you could try adding /lib/perl5/vendor_perl/5.8.8 to your PERL5LIB environment
SOLUTION
Avatar of Duncan Roe
Duncan Roe
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Goutham

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
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
@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_perl /usr/share/perl5/vendor_perl /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?
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial