Welcome to Dream.In.Code
Getting Help is Easy!

Join 136,833 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,791 people online right now. Registration is fast and FREE... Join Now!




Inline::C makefile wont reconize prequesite Parse::RecDescent => 1

 
Reply to this topicStart new topic

Inline::C makefile wont reconize prequesite Parse::RecDescent => 1, the makefile says Parse::RecDescent => 1.80, <--wont reconize 1.

evolivid
30 Sep, 2008 - 03:00 PM
Post #1

New D.I.C Head
*

Joined: 24 Jul, 2008
Posts: 28


My Contributions
HI

I have been trying to fix this for about 4 hours now and i dont know what to do ?

im trying to install inline::C which is really inline::0.44
for some reason and the make file says this
******************************************************


Warning: prerequisite Parse::RecDescent 1.8 not found.

Inline::C is packaged with Inline.pm because it is the most commonly used
Inline Language Support Module (ILSM).

See also: Inline::ASM, ::Awk, ::BC, ::Basic, ::Befunge, ::CPP (C++), ::CPR,
::Foo, ::Guile, ::Java, ::Octave, ::PERL, ::Python, ::Ruby, ::TT,
::Tcl and ::WebChat.

Config.pm indicates that your version of Perl was built with this C compiler:

cl.exe

I have located this compiler on your system:

Do you want to install Inline::C? [y]
*****************************************************
now i have downloaded Parse-RecDescent-v1.95.1

but when i try to change the makefile

CODE

use ExtUtils::MakeMaker;

WriteMakefile(
    NAME => 'Inline',
    VERSION_FROM => 'Inline.pm',
    PREREQ_PM => {
        Data::Dumper => 2.09,
        Digest::MD5 => 2.09,
    Parse::RecDescent => 1.80,
        File::Spec => 0.80, #.080
    },
    clean => {FILES => '_Inline_test _Inline .Inline'},
);

if ($^O =~ /Win32/i) {
    print "Fixing Makefile for MSWin32\n";
    open MAKEFILE, "< Makefile"
      or die "Can't open Makefile for reading";
    my @lines = <MAKEFILE>;
    close MAKEFILE;
    open MAKEFILE, "> Makefile"
      or die "Can't open Makefile for writing";
    for (@lines) {
        print MAKEFILE unless /^\s*((\@\[)|(\]))\s*$/;
    }
    close MAKEFILE;
}


to

CODE

use ExtUtils::MakeMaker;

WriteMakefile(
    NAME => 'Inline',
    VERSION_FROM => 'Inline.pm',
    PREREQ_PM => {
        Data::Dumper => 2.09,
        Digest::MD5 => 2.09,
    Parse::RecDescent => 1.95.1,
        File::Spec => 0.80, #.080
    },
    clean => {FILES => '_Inline_test _Inline .Inline'},
);

if ($^O =~ /Win32/i) {
    print "Fixing Makefile for MSWin32\n";
    open MAKEFILE, "< Makefile"
      or die "Can't open Makefile for reading";
    my @lines = <MAKEFILE>;
    close MAKEFILE;
    open MAKEFILE, "> Makefile"
      or die "Can't open Makefile for writing";
    for (@lines) {
        print MAKEFILE unless /^\s*((\@\[)|(\]))\s*$/;
    }
    close MAKEFILE;
}


it gives me this
*****************************************************
Warning: prerequisite Parse::RecDescent ☺_☺ not found.

Inline::C is packaged with Inline.pm because it is the most commonly used
Inline Language Support Module (ILSM).

See also: Inline::ASM, ::Awk, ::BC, ::Basic, ::Befunge, ::CPP (C++), ::CPR,
::Foo, ::Guile, ::Java, ::Octave, ::PERL, ::Python, ::Ruby, ::TT,
::Tcl and ::WebChat.

Config.pm indicates that your version of Perl was built with this C compiler:

cl.exe

I have located this compiler on your system:

Do you want to install Inline::C? [y]
***************************************************


i have tried to implement use and
require "C:\Documents and Settings\user1>C:\Perl\bin\nasm-2.04rc1\Inline-ASM-0.03\Inline-0.44\Parse-RecDescent-v1.95.1"

and it looks like it wants a PM so i tried

CODE


WriteMakefile(
    NAME => 'Inline',
    VERSION_FROM => 'Inline.pm',
    PREREQ_PM => {
        Data::Dumper => 2.09,
        Digest::MD5 => 2.09,
    Parse::RecDescent => require "C:/Perl/bin/nasm-2.04rc1/Inline-ASM-0.03/Inline-0.44/Parse-RecDescent-v1.95.1/lib/Parse/RecDescent.pm",
        File::Spec => 0.80, #.080
    },
    clean => {FILES => '_Inline_test _Inline .Inline'},
);

if ($^O =~ /Win32/i) {
    print "Fixing Makefile for MSWin32\n";
    open MAKEFILE, "< Makefile"
      or die "Can't open Makefile for reading";
    my @lines = <MAKEFILE>;
    close MAKEFILE;
    open MAKEFILE, "> Makefile"
      or die "Can't open Makefile for writing";
    for (@lines) {
        print MAKEFILE unless /^\s*((\@\[)|(\]))\s*$/;
    }
    close MAKEFILE;
}



and i get

****************************************************

Warning: prerequisite Parse::RecDescent 1 not found.

Inline::C is packaged with Inline.pm because it is the most commonly used
Inline Language Support Module (ILSM).

See also: Inline::ASM, ::Awk, ::BC, ::Basic, ::Befunge, ::CPP (C++), ::CPR,
::Foo, ::Guile, ::Java, ::Octave, ::PERL, ::Python, ::Ruby, ::TT,
::Tcl and ::WebChat.

Config.pm indicates that your version of Perl was built with this C compiler:

cl.exe

I have located this compiler on your system:

Do you want to install Inline::C? [y]


*************************************************

can any one me with this ???????????????????????????????/
User is offlineProfile CardPM
+Quote Post

evolivid
RE: Inline::C Makefile Wont Reconize Prequesite Parse::RecDescent => 1
30 Sep, 2008 - 04:07 PM
Post #2

New D.I.C Head
*

Joined: 24 Jul, 2008
Posts: 28


My Contributions
do you think i should put my RecDescent.pm in the bin file or
should i put every thing included with inline::c into the

C:\perl\bin ??

right now it is in the C:\Perl\bin\nasm-2.04rc1\Inline-ASM-0.03\Inline-0.44\Parse-RecDescent-v1.95.1\lib\Parse\RecDescent.pm

This post has been edited by evolivid: 30 Sep, 2008 - 04:10 PM
User is offlineProfile CardPM
+Quote Post

KevinADC
RE: Inline::C Makefile Wont Reconize Prequesite Parse::RecDescent => 1
30 Sep, 2008 - 05:43 PM
Post #3

D.I.C Head
Group Icon

Joined: 23 Jan, 2007
Posts: 216



Thanked: 3 times
Dream Kudos: 50
My Contributions
QUOTE(evolivid @ 30 Sep, 2008 - 05:07 PM) *

do you think i should put my RecDescent.pm in the bin file or
should i put every thing included with inline::c into the

C:\perl\bin ??

right now it is in the C:\Perl\bin\nasm-2.04rc1\Inline-ASM-0.03\Inline-0.44\Parse-RecDescent-v1.95.1\lib\Parse\RecDescent.pm


Did you actually install Parse-RecDescent-v1.95.1? Are you using activeperl? Are you installing modules using PPM?

User is offlineProfile CardPM
+Quote Post

perfectly.insane
RE: Inline::C Makefile Wont Reconize Prequesite Parse::RecDescent => 1
30 Sep, 2008 - 05:53 PM
Post #4

D.I.C Addict
Group Icon

Joined: 22 Mar, 2008
Posts: 558



Thanked: 46 times
Dream Kudos: 25
Expert In: C/C++

My Contributions
Hmm... I don't know much about this, but I do know that 1.80 is floating point, whereas I'm not sure what 1.95.1 would be treated as (a string, or a float and a number concatenated with the string concat operator). Maybe that is supposed to be written as 1.095001 (similar to perl versions in floating point)?

EDIT: I figured it out on my own:
QUOTE
Warning: prerequisite Parse::RecDescent ☺_☺ not found.


An underscore is ASCII code 95. The two smiley faces on the outside are likely ASCII code 1's. So, 1.95.1 was translated as ☺_☺.

EDIT: Looks like the above should have been 1.095001, not 1.9501, I believe.

This post has been edited by perfectly.insane: 30 Sep, 2008 - 06:08 PM
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/3/08 03:52PM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month