butchie3980 has asked for the wisdom of the Perl Monks concerning the following question:

I'm trying, with no success, to install cdk and the related perl modules. Downloaded them from http://invisible-island.net/cdk/ as well as http://invisible-island.net/cdk/cdk-perl.html. the configure->make->make install process worked without error for cdk, but not the ckd-perl. I've tried all kinds of variations and path tweaks to try to get it working, but nothing seems to help. configure fails with these lines at the end:

checking if you want to use cdk5-config for C flags... cdk5-config

checking if you want to use cdkw5-config for C flags... no

checking for cdk.h... yes

checking for initCDKScreen in -lcdk... no

checking for initCDKScreen in -lcdkw... no

configure: error: cannot find cdk library

how do I get this to work?

Thanks,

=BenW=

  • Comment on anyone try to install cdk from source (invisible-island)?

Replies are listed 'Best First'.
Re: anyone try to install cdk from source (invisible-island)?
by Anonymous Monk on Jul 06, 2014 at 07:37 UTC

    how do I get this to work?

    Solve this problem :) configure: error: cannot find cdk library

    Where is the cdk library installed?

      No matter what I try on the configure script (specifying lib paths, copying files over to where I think it's expecting) it keeps failing. That's why it's such a head scratcher. There were so many times I was certain that the cdk library was going to be found, only to have it fail. I know I'm missing something obvious, but can't seem to find it.

        No matter what I try on the configure script (specifying lib paths, copying files over to where I think it's expecting) it keeps failing. That's why it's such a head scratcher. There were so many times I was certain that the cdk library was going to be found, only to have it fail. I know I'm missing something obvious, but can't seem to find it.

        Hmm, butchie3980 , that doesn't answer my question, where is cdk library installed on your machine?

        Now I have another, how did you specify lib paths exactly (what did you type, copy/paste it for me)?

Re: anyone try to install cdk from source (invisible-island)?
by Anonymous Monk on Jul 06, 2014 at 07:39 UTC

    Why don't you try the packages option, instead of installing from sources, install one of the pre-built packages?

    Just a thought

      installing from CPAN fails too. I even went as far as modifying the contents of the downloaded build files, in an attempt to make it line up.

      that's why I ended up trying to install from source.

Re: anyone try to install cdk from source (invisible-island)?
by sbrickles (Novice) on Feb 01, 2018 at 22:03 UTC

    I just spent a whole afternoon battling with these two tarballs...

    The first error with this particular CDK is that it's not set up for 64-bit. So you need to set CFLAGS to " -fPIC " and LDFLAGS to " -fPIC " when building the CDK library itself. I was only able to create either static or shared libraries by running configure once with no arguments except "prefix", make, make install and then again with "--with-shared", make, make install to create the shared library.

    OK - now you have your 64-bit compatible static and shared libraries in <prefix>. Now in the cdk-perl install, you need to set both CPPFLAGS & CFLAGS to " -fPIC -I<prefix>/include " and LDFLAGS to " -fPIC -L<prefix>/lib -lcdk -lncurses " This will eventually give you a Makefile.PL from which you can create your module. It took a bit of probing into the "configure" script to figure out what was going on, but I was able to finally create a working perl module.

    It would be nice if the configure script had an optional argument to specify the prefix of the CDK installation - but I have no clue about the auto tools so I'll leave that up to someone else !!

    Stephen
Re: anyone try to install cdk from source (invisible-island)?
by Mr. Muskrat (Canon) on Jul 07, 2014 at 18:29 UTC