<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></title> 
<link>http://www.jackxiang.com/index.php</link> 
<description><![CDATA[赢在IT，Playin' with IT,Focus on Killer Application,Marketing Meets Technology.]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[向东博客 专注WEB应用 构架之美 --- 构架之美，在于尽态极妍 | 应用之美，在于药到病除]]></copyright>
<item>
<link>http://www.jackxiang.com/post/2651/</link>
<title><![CDATA[如何设置自己的共享库目录?/etc/ld.so.conf]]></title> 
<author>jack &lt;xdy108@126.com&gt;</author>
<category><![CDATA[Cache与Store]]></category>
<pubDate>Wed, 27 Jan 2010 12:29:40 +0000</pubDate> 
<guid>http://www.jackxiang.com/post/2651/</guid> 
<description>
<![CDATA[ 
	如何设置自己的共享库目录?/etc/ld.so.conf下增加了路径,还执行了ldconfig后,还提示没找到*.so?<br/>真是烦啊,以前也没在其他版本的linux下搞过这东西,不会是magic的问题吧?<br/>搜索了一天,都是怎么教人设定共享库的啊<br/>/etc/ld.so.conf<br/>是添加一行:<br/>/my/lib<br/>此目录已经建立了,而且把相关的so文件也放进去了<br/>接着<br/>#ldconfig<br/>在安装东西,还是提示没有找到那几个so文件<br/>重起也不行,但要是把这些so拷到/usr/lib下就不会出现说找不到它们&nbsp;&nbsp;<br/>大老们具体说你们是怎么解决这个自设共享库目录的????<br/>谢了先~!~@!<br/><br/><br/>缘起：<br/>同样叫回忆未来，难免看看他的文章，实验实验，在实验<br/>基于HTTP协议的轻量级开源简单队列服务：HTTPSQS[原创]，发现：<br/>[root@localhost httpsqs-1.1]# /usr/bin/httpsqs -h<br/>/usr/bin/httpsqs: error while loading shared libraries: libtokyocabinet.so.9: cannot open shared object file: No such file or directory<br/><br/>于是看留言也有这个问题：<br/><br/># httpsqs<br/>httpsqs: error while loading shared libraries: libtokyocabinet.so.9: cannot open shared object file: No such file or directory<br/>安装完后出现这个哦。centos5.3 32位系统 <br/>张宴 回复于 2009-12-31 17:39<br/>这个是tokyocabinet动态链接库找不到的问题。你可以按照以下步骤解决：<br/>1、确认tokyocabinet是否安装成功（查看/usr/local/lib/libtokyocabinet.so.9文件是否存在）<br/>2、如果存在，还是报这个错误，将/usr/local/lib添加到/etc/ld.so.conf文件中，然后在命令行执行/sbin/ldconfig，最后启动httpsqs<br/><br/>这么回事：<br/><br/><br/><div class="code"><br/>&#91;root@localhost httpsqs-1.1&#93;# vi /etc/ld.so.conf<br/><br/>include ld.so.conf.d/*.conf<br/>/usr/local/lib<br/><br/></div><br/><br/><div class="code">&#91;root@localhost httpsqs-1.1&#93;# ldconfig</div><br/><br/><div class="code">&#91;root@localhost httpsqs-1.1&#93;# /usr/bin/httpsqs -h<br/>--------------------------------------------------------------------------------------------------<br/>HTTP Simple Queue Service - httpsqs v1.1<br/><br/>Author: Zhang Yan (http://blog.s135.com), E-mail: net@s135.com<br/>This is free software, and you are welcome to modify and redistribute it under the New BSD License<br/><br/>-l &lt;ip_addr&gt;&nbsp;&nbsp;interface to listen on, default is 0.0.0.0<br/>-p &lt;num&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TCP port number to listen on (default: 1218)<br/>-x &lt;path&gt;&nbsp;&nbsp;&nbsp;&nbsp; database directory (example: /opt/httpsqs/data)<br/>-t &lt;second&gt;&nbsp;&nbsp; timeout for an http request (default: 1)<br/>-d&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;run as a daemon<br/>-h&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;print this help and exit<br/><br/>Use command &quot;killall httpsqs&quot;, &quot;pkill httpsqs&quot; and &quot;kill PID of httpsqs&quot; to stop httpsqs.<br/>Please note that don&#039;t use the command &quot;pkill -9 httpsqs&quot; and &quot;kill -9 PID of httpsqs&quot;!<br/><br/>Please visit &quot;http://code.google.com/p/httpsqs&quot; for more help information.<br/><br/>--------------------------------------------------------------------------------------------------</div><br/><br/>我的原则就是：从来在模仿，从未被超越，呵呵。<br/><br/><br/>HTTPSQS 如队列和出队列：<br/><br/><div class="code">curl &quot;http://localhost:1218/?name=your_queue_name&amp;opt=put&amp;data=经过URL编码的文本消息&quot;<br/><br/>curl &quot;http://localhost:1218/?charset=utf-8&amp;name=your_queue_name&amp;opt=get&quot;</div><br/><br/>http://blog.s135.com/httpsqs/#entrymore
]]>
</description>
</item><item>
<link>http://www.jackxiang.com/post/2651/#blogcomment51508</link>
<title><![CDATA[[评论] 如何设置自己的共享库目录?/etc/ld.so.conf]]></title> 
<author>虫子 &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Fri, 29 Jan 2010 12:21:01 +0000</pubDate> 
<guid>http://www.jackxiang.com/post/2651/#blogcomment51508</guid> 
<description>
<![CDATA[ 
	你这个问题也正在困扰我。<br/>如果你知道答案了，麻烦你能告诉一下吗？<br/>我是删除了系统原带的openssl,自定义目录安装了最新版本的openssl<br/>安装之后/etc/ld.so.conf里添加了相应的lib目录。并且在这个lib目录下根据系统原代的libssl.so.6,libcrypto.so.6做了软链接。<br/>而需要openssl的wget ssh等软件怎么也找不到这两个文件。<br/>在/lib, /usr/lib下做软连接的话可以是可以。但这样就不是共享库自定义了。<br/>ldconfig -v的时候明明能看到新的so文件和链接文件。但就是找不到。<br/>好像/etc/ld.so.conf一点用都没有一样。<br/>我的QQ:55428547
]]>
</description>
</item>
</channel>
</rss>