Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Problems installing Language::Prolog::Yaswi

by Madcap Laughs (Acolyte)
on Jan 12, 2006 at 06:33 UTC ( [id://522632]=note: print w/replies, xml ) Need Help??


in reply to Problems installing Language::Prolog::Yaswi

The readme for L::P::Y-0.08 says you need SWI-Prolog 5.4.x or newer. Looks like you're using an older version of SWI-Prolog (5.2.5?) - one that presumably does not define 'PL_blob_t' and the various PL_BLOB_* constants.

I think the best advice is to get the latest L::P::Y distro (version 0.08), and the latest version of SWI-Prolog (version 5.6.1).

Cheers,
Rob

Replies are listed 'Best First'.
Re^2: Problems installing Language::Prolog::Yaswi
by reneeb (Chaplain) on Jan 14, 2006 at 00:49 UTC
    I've installed the newes SWI Prolog for Windows and linked the /usr/bin/pl to the Windows Prolog. It seems to work on the command line, but I still get the above mentioned error message when I try to install the module.

    I've even tried to install the module under Windows, but there I get the error message that one .h file could not be found.
      Strange. SWI-Prolog.h (which is #include'd in opaque.c) defines 'PL_blob_t' and the various 'PL_BLOB_*' constants. So - if SWI-Prolog.h has been found, those errors should not arise ... and if SWI_Prolog.h was not found, then you should also have received an error message telling you about that.(You're sure it's the updated version of pl that's being found ? .... not still getting that old SWI-Prolog.h that knows nothing of 'PL_blob_t' and friends ?)

      L::P::Y-0.08 is compiling ok for me against pl-5.6.1. I'm using the MinGW port of gcc in a native Win32 environment (not Cygwin) but I would not expect that to make a big difference. And I'm using the SWI-Prolog Windows binary (apparently built using a Microsoft compiler) provided on the website. I changed the name of pl\lib\libpl.lib to pl\lib\libpl.a so that the library could be found for linking purposes. Alternatively you could probably amend the Low/Makefile.PL so that 'pl.dll' gets used for linking.

      I just noticed that for Windows 95/98/ME they are recommending that you use pl-5.4.7. Is that relevant to your situation ?

      Cheers,
      Rob
        I'm using Windows XP and the SWI-Prolog Windows binary. I've linked /usr/bin/pl (in Cygwin) to the Windows Prolog.
        The test of the Prolog settings (PLTHREADS, etc.) shows, that the right binary is found.
        I will try to use MinGW and to change the name of the library.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2024-03-29 12:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found