PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Sunday, October 9, 2022

[FIXED] Why do I get "Could not find gdlib-config in the search path" when I try to install GD::Polygon, even though gdlib-config is installed?

 October 09, 2022     cpan, gd, gdlib, perl     No comments   

Issue

I'm trying to install GD::Polygon by running cpan install GD::Polygon, but I get the following error:

**UNRECOVERABLE ERROR**
Could not find gdlib-config in the search path. Please install libgd 
2.0.28 or higher.

I manually installed libgd-2.2.1 from source (./configure, make, make install) and now when I run whereis gdlib-config, I see that it is indeed installed:

gdlib-config: /usr/local/bin/gdlib-config

How can I tell cpan where to find this library?


Solution

Well, short answer is : I installed GD via yum instead of cpan.

sudo yum install perl-GD

If you still want to install it through cpan, you should include gdlib-config on your PATH (not just the folder e.g. /usr/local/bin or wherever it is).

Installing Perl packages with yum is definitively better than with cpan



Answered By - Floran Gmehlin
Answer Checked By - Willingham (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing