<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Freya.no &#187; library</title>
	<atom:link href="http://wp.freya.no/tag/library/feed/" rel="self" type="application/rss+xml" />
	<link>http://wp.freya.no</link>
	<description>Knowledge is power</description>
	<lastBuildDate>Mon, 06 Feb 2012 19:56:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to specify shared object path in Linux</title>
		<link>http://wp.freya.no/2009/02/how-to-specify-shared-object-path-in-linux/</link>
		<comments>http://wp.freya.no/2009/02/how-to-specify-shared-object-path-in-linux/#comments</comments>
		<pubDate>Sat, 21 Feb 2009 21:00:27 +0000</pubDate>
		<dc:creator>kent</dc:creator>
				<category><![CDATA[Dev]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[library]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://wp.freya.no/?p=226</guid>
		<description><![CDATA[If you&#8217;re on a system as a user and with no means of installing custom libraries or updating libraries for your custom program, you can load your own libraries with this simple command. $ ./executable ./executable: error while loading shared libraries: libcurl.so.4: cannot open shared object file: No such file or directory Use ldd to [...]
No related posts.]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re on a system as a user and with no means of installing custom libraries or updating libraries for your custom program, you can load your own libraries with this simple command.</p>
<pre>$ ./executable
./executable: error while loading shared libraries: libcurl.so.4: cannot open shared object file: No such file or directory</pre>
<p>Use ldd to find out what missing libraries you have:</p>
<pre>$ ldd executable
        linux-gate.so.1 =&gt;  (0xa942d000)
        libncursesw.so.5 =&gt; /lib/libncursesw.so.5 (0xa93e9000)
        <span style="color: #ff0000">libcurl.so.4 =&gt; not found</span>
        librt.so.1 =&gt; /lib/tls/i686/cmov/librt.so.1 (0xa93df000)
        libssl.so.0.9.8 =&gt; /usr/lib/i686/cmov/libssl.so.0.9.8 (0xa939d000)
        libdl.so.2 =&gt; /lib/tls/i686/cmov/libdl.so.2 (0xa9399000)
        libz.so.1 =&gt; /usr/lib/libz.so.1 (0xa9384000)
        libcrypto.so.0.9.8 =&gt; /usr/lib/i686/cmov/libcrypto.so.0.9.8 (0xa9241000)
        libsigc-2.0.so.0 =&gt; /usr/lib/libsigc-2.0.so.0 (0xa923b000)
        libstdc++.so.6 =&gt; /usr/lib/libstdc++.so.6 (0xa9148000)
        libm.so.6 =&gt; /lib/tls/i686/cmov/libm.so.6 (0xa9123000)
        libgcc_s.so.1 =&gt; /lib/libgcc_s.so.1 (0xa9118000)
        libc.so.6 =&gt; /lib/tls/i686/cmov/libc.so.6 (0xa8fc9000)
        libpthread.so.0 =&gt; /lib/tls/i686/cmov/libpthread.so.0 (0xa8fb0000)
        /lib/ld-linux.so.2 (0xa942e000)</pre>
<p>Copy over your libcurl.so.4 to the system and invoke your custom executable with:</p>
<pre>$ LD_PRELOAD=./libcurl.so.4:./libexecutable.so.11 ./executable</pre>
<p>Separate different libraries with a colon (:).</p>
 <img src="http://wp.freya.no/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=226" width="1" height="1" style="display: none;" /><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwp.freya.no%2F2009%2F02%2Fhow-to-specify-shared-object-path-in-linux%2F&amp;title=How%20to%20specify%20shared%20object%20path%20in%20Linux" id="wpa2a_6"><img src="http://wp.freya.no/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p><p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://wp.freya.no/2009/02/how-to-specify-shared-object-path-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

