Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Problem with Perl

  • 08-12-2001 8:41am
    #1
    Registered Users, Registered Users 2 Posts: 2,660 ✭✭✭


    To get onto the internet I must telnet a certain IP number, so to do this the lazy way I have decided to write a perl script. Sounds simple. To do this properly I need to install the Net::Telnet module but when I try to do the first step ie. perl Makefile.pl, I get this error:

    <error>
    Error: Unable to locate installed Perl libraries or Perl source code.

    It is recommended that you install perl in a standard location before building extensions. Some precompiled versions of perl do not contain these header files, so you cannot build extensions. In such a case please build and install your perl from a fresh perl distribution. It usually solves this kind of problem.

    (You get this message because MakeMaker could not find "/usr/lib/perl5/5.6.1/i386-linux/CORE/perl.h")
    </error>

    Now the first time I ever tried to do it I got an error saying it couldn't find makemaker but I have since reinstalled linux twice and now its the other thing, if anyone has any experience with this type of error let me know how you overcame.


Comments

  • Closed Accounts Posts: 296 ✭✭moist


    Well, as the error indicates you either don't have the perl libs and headers that it needs,
    or their in an odd place and simply can't find them.
    First of all see if you can find the file ' perl.h ' that its looking for,
    if you have an up-to-date locate database try
    ' locate perl.h ' if not use ' find / -name perl.h -print ' (this one will take a while)

    now if either of these show up some weird path to the file you have a number of options to try
    though I'm not entirely sure how well they would work :)
    o move the entire perl5 directory to /usr/lib and hope.
    o try setting your $PERL5LIB shell env variable to the lib directory, and hope
    o try fiddling the Makefiles for the modules to look in that directory, and hope :)

    I'm guessing that you havn't installed the developement libaries for perl, which I don't think
    I have come accross before, last I looked everything came in the one perl rpm on RedHat
    but every distro does things differently *grits teeth*.
    You can try mounting up your install cdrom and having a look around for an rpm (or whatever packate type) for perl developement libaries, and if they exist
    go and install them.

    If their not there I suppose you could go and download perl from cpan and try installing it by
    hand,
    Though if your missing perl devel libs you are probably missing other devel libs and apps >:|


    Actually as a matter of interest where is your perl binary installed at the moment ?

    - Good luck !

    On the other hand you could install expect and use that to automate telnetting to this server.
    Search through the archives I think I posted a short example a few months on how to do somthing
    similar....


  • Registered Users, Registered Users 2 Posts: 2,660 ✭✭✭Baz_


    Well thats the strange thing everything is installed in the right place but the only file in the eventual CORE folder is a file called perl.so. I'm still pretty stumped.


  • Closed Accounts Posts: 296 ✭✭moist


    Meh!
    *boots linux*
    Ok on RH7.2 I have about 50 .h files in /usr/lib/perl5/5.6.0/i386-linux/CORE
    and a libperl.a So I'm still guessing that you are missing the perl-devel package or something.
    Do you have perl.h anywhere else on the system ?
    Perhaps you have multiple versions installed or something ?

    If perl.h is not on the system I'd suggest checking the CD's, and if not download the perl
    source from www.cpan.org and try installing that.


Advertisement