本人最近在学习利用c语言将字符串转成图片的操作,碰巧在网上看到有大神提到可以用这个第三方库,发现功能挺强大的。 官网地址:https://libgd.github.io/ 使用过程中出现的问题:在编译运行测试代码时,提示error while loading shared libraries: libgd.so.3: cannot open shared object file: No such file or directory。 解决方案: 默认情况下,编译器只会使用/lib和/usr/lib这两个目录下的库文件,通常通过源码包进行安装时,如果不指定--prefix,会将库安装在/usr/local/lib目录下;当运行程序需要链接动态库时,提示找不到相关的.so库,会报错。也就是说,/usr/local/lib目录不在系统默认的库搜索目录中,需要将目录加进去。   1、首先打开/etc/ld.so.conf文件   2、加入动态库文件所在的目录:执行vi /etc/ld.so.conf,在"include ld.so.conf.d/*.conf"下方增加"/usr/local/lib"。   3、保存后,在命令行终端执行:/sbin/ldconfig -v;其作用是将文件/etc/ld.so.conf列出的路径下的库文件缓存到/etc/ld.so.cache以供使用,因此当安装完一些库文件,或者修改/etc/ld.so.conf增加了库的新搜索路径,需要运行一下ldconfig,使所有的库文件都被缓存到文件/etc/ld.so.cache中,如果没做,可能会找不到刚安装的库。   经过以上三个步骤,"error while loading shared libraries"的问题通常情况下就可以解决了。
2022-03-16 00:48:56 3.26MB libgd c语言
1
GD is an open source code library for the dynamic creation of images by programmers. GD is written in C, and "wrappers" are available for Perl, PHP and other languages. GD creates PNG, JPEG, GIF, WebP, XPM, BMP images, among other formats. GD is commonly used to generate charts, graphics, thumbnails, and most anything else, on the fly. While not restricted to use on the web, the most common applications of GD involve website development.
2021-07-27 14:33:20 1.94MB libgd-2.1.1
1
php扩展
2021-07-27 12:32:13 2.22MB libgd 2.1.0
1
下载请校验Hash= SHA1: 6F9E54998B6FB1ADE64934AB5F98E255BC2CA81A
2021-06-28 08:13:22 2.96MB libgd php tar.gz 2.3.0
1
编译完成的libgd图形库,是在widnows系统下编译,里面包含了64位和32位的libgd库包含libgd.lib libgd_a.lib libgd.dll libgd.pdb 和ligd的头文件 如gd.h
2021-04-14 14:32:30 5.03MB libgd.lib libgd.dll libgd
1