PHP fatal error : Class perl not found

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • smohan
    New Member
    • May 2010
    • 12

    #16
    Hi,

    I have searched around for the solution to this problem, but I am trying to call a perl script from php, and get a fatal error:Class perl not found

    I am using php 5.1.6 and apache 2.0 , php and apache is configured fine, as i am able to run <phpinfo()?> with out any problem. I have added php_perl.dll into my php.ini extensions ... and copied it to php/ext folder.

    The scripts are very basic (from the source:http://devzone.zend.com/node/view/id/1712)

    test.php:
    Expand|Select|W rap|Line Numbers

    1. <?php
    2.
    3. print "Hello from PHP! ";
    4. //$erl = new Perl();
    5. //$perl->require("test1 .pl");
    6. print "Bye! ";
    7.
    8. ?>
    9.

    test1.pl:
    print "Hello from perl! "


    Thanks'

    Comment

    • smohan
      New Member
      • May 2010
      • 12

      #17
      I got The solution.

      There will be few files which will not be installed while installing the extensions. I tried this, I got the solution....

      perl -MCPAN -eshell

      and then eg
      install Net::LDAP

      It is running for me. Thank you Markus for ur concern on me.

      Comment

      • MikeP2018
        New Member
        • Jun 2018
        • 1

        #18
        pranavb85
        "I found the solution

        I was getting all the steps correct, just made a small path error mistake in the ini file, and damn it took me like 2-3 hours to get to know this...

        Now I really know, what all can go wrong when u try php->perl

        ;)"

        Can you explain more detail hoe you solve the problem?

        Comment

        Working...