<?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>sqlite &#8211; Luxing Huang</title>
	<atom:link href="https://luxing.im/tag/sqlite/feed/" rel="self" type="application/rss+xml" />
	<link>https://luxing.im</link>
	<description>Thoughs and things</description>
	<lastBuildDate>Mon, 29 Feb 2016 21:45:35 +0000</lastBuildDate>
	<language>en-CA</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.2</generator>
<site xmlns="com-wordpress:feed-additions:1">58771605</site>	<item>
		<title>Fix SQLite3 dependency issue for dnf</title>
		<link>https://luxing.im/fix-sqlite3-dependency-issue/</link>
					<comments>https://luxing.im/fix-sqlite3-dependency-issue/#respond</comments>
		
		<dc:creator><![CDATA[Luxing Huang]]></dc:creator>
		<pubDate>Fri, 26 Feb 2016 18:48:02 +0000</pubDate>
				<category><![CDATA[Learning Notes]]></category>
		<category><![CDATA[Techie Stuff]]></category>
		<category><![CDATA[dnf]]></category>
		<category><![CDATA[rpm]]></category>
		<category><![CDATA[sqlite]]></category>
		<guid isPermaLink="false">https://luxing.im/?p=620</guid>

					<description><![CDATA[Recently when I did a dnf update I saw broken package for sqlite on my Fedora 23. Then I attempt to re-install that by removing it. rpm -e --nodeps sqlite Then shit hit the fan. When I then try to run rpm or dnf, both giving me errors. dnf gave me: Traceback (most recent call &#8230; <p class="link-more"><a href="https://luxing.im/fix-sqlite3-dependency-issue/" class="more-link">Continue reading<span class="screen-reader-text"> "Fix SQLite3 dependency issue for dnf"</span></a></p>]]></description>
										<content:encoded><![CDATA[<p>Recently when I did a <code>dnf update</code> I saw broken package for sqlite on my Fedora 23. Then I attempt to re-install that by removing it.</p>
<pre>rpm -e --nodeps sqlite</pre>
<p>Then shit hit the fan.<br />
<span id="more-620"></span></p>
<p>When I then try to run rpm or dnf, both giving me errors.</p>
<p>dnf gave me:</p>
<pre>
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib64/python3.4/sqlite3/__init__.py", line 24, in <module>
    from dbapi2 import *
  File "/usr/lib64/python3.4/sqlite3/dbapi2.py", line 27, in <module>
    from _sqlite3 import *
ImportError: File not found
</pre>
<p>And RPM gave me this error:</p>
<pre>error: Failed to initialize NSS library</pre>
<p>So rpm and dnf could not install packages. With a little searching around, I eventually figure out a way.</p>
<p>Step 1: Download sqlite3 from <a href="https://www.sqlite.org/download.html" target="_blank">https://www.sqlite.org/download.html</a><br />
Download the autoconf version of sqlite3 source code.</p>
<p>Step 2: compile. You need gcc and other tools. You better have this before this incident!</p>
<pre>./configure && make</pre>
<p>Step 3: Install those libs to /usr/local/lib</p>
<pre>make install</pre>
<p>Step 4：Using DNF to install.</p>
<pre>LD_LIBRARY_PATH=/usr/local/lib dnf --best install sqlite</pre>
<p>Should work.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://luxing.im/fix-sqlite3-dependency-issue/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">620</post-id>	</item>
	</channel>
</rss>
