Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: HTML::Tidy - Tidyp install issues

by syphilis (Archbishop)
on Aug 06, 2020 at 06:01 UTC ( [id://11120398]=note: print w/replies, xml ) Need Help??


in reply to HTML::Tidy - Tidyp install issues

In file included from src/mappedio.c:100: src/streamio.h:204:15: error: expected identifier or '(' before numeri +c constant #define CR 0xD

For thoroughly sane and understandable reasons that I could not fathom, the one occurrence of CR in streamio.h needs to be changed to something else. (I chose CROWBAR)
Then, of course, the 2 occurrences of CR in streamio.c, need to be changed to whatever symbol was used in streamio.h (ie for me, CROWBAR) .

So:
1) Locate your home_directory\.cpan\build\Alien-Tidyp-v1.4.7-0\build_src\tidy-1.04\src\streamio.h and home_directory\.cpan\build\Alien-Tidyp-v1.4.7-0\build_src\tidy-1.04\src\streamio.c files, and make the changes as stated above.
2) Then cd to your home_directory\.cpan\build\Alien-Tidyp-v1.4.7-0 folder and run perl build. This will prompt you as to whether to use freshly unpacked source or not.
Make sure you choose "No" (which is the default). If you choose yes, then you'll only have to make the same changes again.
3) Then run perl build test, and if that succeeds (as happened for me on Windows 7), run perl build install.
4) Then you should be set to run cpan -i HTML::Tidy again.

Cheers,
Rob

Replies are listed 'Best First'.
Re^2: HTML::Tidy - Tidyp install issues
by Anonymous Monk on Aug 06, 2020 at 16:50 UTC

    Hi Rob, That for the reply. So I changed the line to: #define CROWBAR 0xD and CR in the other file to CROWBAR and still got errors. What am I doing wrong?

    Thanks, Tony

      Hi Rob, Got it working. I had several instances of Alien:Tidyp. I modified one and tried to build from the other! Once I cleaned things up and had only one your advice worked perfectly. I could have never figured it out without you. Big thanks! Tony

        Big thanks!

        You're welcome !
        (You can fix just about any problem with a crowbar ;-)

        Cheers,
        Rob

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11120398]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (2)
As of 2024-04-20 03:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found