Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Can't locate after installing dhadi

Posted on 2014-02-11
Medium Priority
Last Modified: 2014-02-22
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- dahdi-devel- kmod-dahdi-

after the above installed when executed  lsdahdi, below message
# lsdahdi
can't locate 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

Please suggest to fix this

Thanks in advance
Question by:D_wathi
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +1
LVL 28

Expert Comment

ID: 39850826
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.
LVL 38

Expert Comment

by:Gerwin Jansen, EE MVE
ID: 39851401
Maybe you could try adding /lib/perl5/vendor_perl/5.8.8 to your PERL5LIB environment
LVL 35

Assisted Solution

by:Duncan Roe
Duncan Roe earned 668 total points
ID: 39851487
@INC contains /usr/lib64/perl5/vendor_perl but you have found under ./lib/perl5/vendor_perl/5.8.8/. Since pm files are Perl source, you could try copying to one of the directories mentioned in @INC. Any non-text files in ./lib/perl5/vendor_perl/5.8.8/ will be 32-bit, probably unsuitable for you so I would caution against mentioning that directory in the path.
Survive A High-Traffic Event with Percona

Your application or website rely on your database to deliver information about products and services to your customers. You can’t afford to have your database lose performance, lose availability or become unresponsive – even for just a few minutes.


Author Comment

ID: 39853697
Thanks for the reply, can you please help in steps on what to be done , copy of to be placed in which directory path  not getting  what is @INC
LVL 38

Assisted Solution

by:Gerwin Jansen, EE MVE
Gerwin Jansen, EE MVE earned 668 total points
ID: 39853826
From folder where you did the find command:

cp ./lib/perl5/vendor_perl/5.8.8/ /usr/local/lib64/perl5/
LVL 35

Expert Comment

by:Duncan Roe
ID: 39854478
@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
LVL 38

Expert Comment

by:Gerwin Jansen, EE MVE
ID: 39854533
@Duncan Roe - Asker may not realize that @INC is output from the lsdahdi command.

@D_wathi - Did you run the cp command I suggested?
LVL 28

Accepted Solution

FishMonger earned 664 total points
ID: 39854668
Keep in mind that if you decide to copy the module to another location, you'll also need to copy the Dahdi directory which has the rest of the supporting modules that needs.

When you need to upgrade down the road and use rpm, you'll need to remember to recopy those files otherwise you may not have the updated versions of the perl modules.

This path issue is one of the reasons I always built  asterisk and dahdi from source rather than using yum or rpm.

Based on your @INC paths, it appears that you may have multiple versions of perl installed or someone previously modified the PERL5LIB environment var to accommodate a similar install issue.

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

722 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question