<?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>Alex Sleat &#187; shared libraries</title>
	<atom:link href="http://alexsleat.co.uk/tag/shared-libraries/feed/" rel="self" type="application/rss+xml" />
	<link>http://alexsleat.co.uk</link>
	<description>/home/alex</description>
	<lastBuildDate>Tue, 22 May 2012 19:59:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>gimp: error while loading shared libraries: libgegl-0.0.so.0: cannot open shared object file: No such file or directory</title>
		<link>http://alexsleat.co.uk/2012/05/02/gimp-error-while-loading-shared-libraries-libgegl-0-0-so-0-cannot-open-shared-object-file-no-such-file-or-directory/</link>
		<comments>http://alexsleat.co.uk/2012/05/02/gimp-error-while-loading-shared-libraries-libgegl-0-0-so-0-cannot-open-shared-object-file-no-such-file-or-directory/#comments</comments>
		<pubDate>Wed, 02 May 2012 09:08:05 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[10.04]]></category>
		<category><![CDATA[11.04]]></category>
		<category><![CDATA[11.10]]></category>
		<category><![CDATA[12.04]]></category>
		<category><![CDATA[apt]]></category>
		<category><![CDATA[cannot open shared object file]]></category>
		<category><![CDATA[gimp]]></category>
		<category><![CDATA[libgegl]]></category>
		<category><![CDATA[lucid]]></category>
		<category><![CDATA[oneiric]]></category>
		<category><![CDATA[precise]]></category>
		<category><![CDATA[shared libraries]]></category>
		<category><![CDATA[sources.list]]></category>
		<category><![CDATA[symbolic link]]></category>
		<category><![CDATA[ubuntu 12.04]]></category>

		<guid isPermaLink="false">http://alexsleat.co.uk/?p=30417</guid>
		<description><![CDATA[<br/><p>After upgrading from Ubuntu 11.10 to 12.04 I found gimp couldn&#8217;t access the shared libraries it needed, most likely an error with symbolic links as described by lovelyindia in this post. </p> Fix 1: <p>He managed to fix the issue by removing gimp and purging the offending libraries and then letting apt deal with [...]]]></description>
			<content:encoded><![CDATA[<br/><p>After upgrading from Ubuntu 11.10 to 12.04 I found gimp couldn&#8217;t access the shared libraries it needed, most likely an error with symbolic links as described by lovelyindia in <a href="http://bentwithlove.blogspot.co.uk/2011/05/gimperror-while-loading-shared.html">this post</a>. </p>
<h3>Fix 1:</h3>
<p>He managed to fix the issue by removing gimp and purging the offending libraries and then letting apt deal with the libraries when he re-installed gimp, as per the below commands:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">sudo</span> apt-get update <br />
<span class="kw2">sudo</span> apt-get purge <span class="kw2">gimp</span> libgegl* libbabl* <br />
<span class="kw2">sudo</span> apt-get <span class="kw2">install</span> <span class="kw2">gimp</span> <br />
<span class="kw2">sudo</span> apt-get clean</div>
<p>While this is likely to work for most people encountering this issue, it didn&#8217;t for me.</p>
<h3>Fix 2:</h3>
<p>Then I remembered I had used the repogen <a href="http://repogen.simplylinux.ch/">source list generator</a>, in which I chose to include the gimp svn build. While you may not have gone about it the same way, you may also have a different repository in your sources.list file which is causing this issue, if the previous method did not resolve the issue.</p>
<p>In order to fix this, I had to open the sources.list file and comment out the offending repo.</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">sudo</span> gedit /etc/apt/sources.list</div>
<p>Now search for any reference to gimp, in my case this was the lines I changed:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="re3">#### Gimp SVN &#8211; https://launchpad.net/~matthaeus123/+archive/mrw-gimp-svn</span><br />
<span class="re3">## Run this <span class="kw3">command</span>: <span class="kw2">sudo</span> apt-key adv &#8211;recv-keys &#8211;keyserver keyserver.ubuntu.com 405A15CB</span><br />
deb http://ppa.launchpad.net/matthaeus123/mrw-gimp-svn/ubuntu precise main</div>
<p>I commented out the line linking to the repo by adding a &#8216;#&#8217; to the front, as below:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="re3">#### Gimp SVN &#8211; https://launchpad.net/~matthaeus123/+archive/mrw-gimp-svn</span><br />
<span class="re3">## Run this <span class="kw3">command</span>: <span class="kw2">sudo</span> apt-key adv &#8211;recv-keys &#8211;keyserver keyserver.ubuntu.com 405A15CB</span><br />
<span class="re3"># deb http://ppa.launchpad.net/matthaeus123/mrw-gimp-svn/ubuntu precise main</span></div>
<p>I then uninstalled gimp, once I knew it may have been the newly added repository that I had added:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">sudo</span> apt-get purge <span class="kw2">gimp</span></div>
<p>Then I saved and exited the file and updated apt:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">sudo</span> apt-get update</div>
<p>I then re-installed gimp:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">sudo</span> apt-get <span class="kw2">install</span> <span class="kw2">gimp</span></div>
<p>This solved the issue for me, I hope this helps!</p>
]]></content:encoded>
			<wfw:commentRss>http://alexsleat.co.uk/2012/05/02/gimp-error-while-loading-shared-libraries-libgegl-0-0-so-0-cannot-open-shared-object-file-no-such-file-or-directory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Howto fix: “error while loading shared libraries”</title>
		<link>http://alexsleat.co.uk/2010/02/02/howto-fix-error-while-loading-shared-libraries/</link>
		<comments>http://alexsleat.co.uk/2010/02/02/howto-fix-error-while-loading-shared-libraries/#comments</comments>
		<pubDate>Tue, 02 Feb 2010 09:59:54 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[blog1]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[shared libraries]]></category>

		<guid isPermaLink="false">http://alexsleat.co.uk/?p=23</guid>
		<description><![CDATA[<br/><p>While installing opencv on an older version of debian for work I kept getting an error while loading shared libraries which turned out to be a pretty easy fix, just finding the libraries and adding them to the dynamic linker.</p> <p>The libraries I was having trouble with below: ./blobtrack: error while loading shared libraries: [...]]]></description>
			<content:encoded><![CDATA[<br/><p>While installing opencv on an older version of debian for work I kept getting an error while loading shared libraries which turned out to be a pretty easy fix, just finding the libraries and adding them to the dynamic linker.</p>
<p>The libraries I was having trouble with below:<br />
<code>./blobtrack: error while loading shared libraries: libcxcore.so.1: cannot open shared object file: No such file or directory</code></p>
<p><code>ffmpeg<br />
ffmpeg: error while loading shared libraries: libavdevice.so.52: cannot open shared object file: No such file or directory</code></p>
<p>I used the ‘locate’ command to find where the libraries were eg:<br />
<code>locate libcxcore.so.1</code><br />
This outputted a few locations of where the library was, I decided to use the /usr/local/lib version as both libraries I needed were in there and did the following command to add them to ld.so.conf and reload the dynamic linker:<br />
<code>sh -c 'echo "/usr/local/lib" &gt;&gt; /etc/ld.so.conf &amp;&amp; ldconfig'</code></p>
]]></content:encoded>
			<wfw:commentRss>http://alexsleat.co.uk/2010/02/02/howto-fix-error-while-loading-shared-libraries/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

