Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: anyone try to install cdk from source (invisible-island)?

by sbrickles (Novice)
on Feb 01, 2018 at 22:03 UTC ( [id://1208291]=note: print w/replies, xml ) Need Help??


in reply to anyone try to install cdk from source (invisible-island)?

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
  • Comment on Re: anyone try to install cdk from source (invisible-island)?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (6)
As of 2024-04-18 04:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found