---
title: "[curl-loader]运行curl-loader时缺少libcares.so.2"
author: "MyEyeOfJava"
date: "2011-12-13T11:07:00Z"
tags: []
categories: ["开源软件"]
slug: "curl-loader-curl-loader-libcares-so-2"
draft: false
lastmod: "2011-12-13T11:07:00Z"
id: 1308410
url: "https://myeyeofjava.iteye.com/blog/1308410"
---

安装好curll-loader后，运行缺少so动态库的解决方案
 
./curl-loader -f conf-examples/mysimp.conf ./curl-loader: error while loading shared libraries: libcares.so.2: cannot open shared object file: No such file or directory
 
执行以下操作可以解决上面的问题
1.查找本机是否存在libcares.so.2,curl-loader中肯定有。
	locate libcares.so.2
2. 在  /etc/ld.so.conf.d/新建一个配置文件：curl-loader.conf，里面写一行代码:即libcares.so.2文件所在的lib路径
3 execute command " ldconfig"