<?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>libaio.so.1 &#8211; 编码无悔 /  Intent &amp; Focused</title>
	<atom:link href="https://www.codelast.com/tag/libaio-so-1/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.codelast.com</link>
	<description>最优化之路</description>
	<lastBuildDate>Tue, 28 Apr 2020 02:08:19 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>[原创] mysql-mxj/bin/mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory 错误的解决办法</title>
		<link>https://www.codelast.com/%e5%8e%9f%e5%88%9b-mysql-mxjbinmysqld-error-while-loading-shared-libraries-libaio-so-1-cannot-open-shared-object-file-no-such-file-or-directory-%e9%94%99%e8%af%af%e7%9a%84%e8%a7%a3%e5%86%b3/</link>
					<comments>https://www.codelast.com/%e5%8e%9f%e5%88%9b-mysql-mxjbinmysqld-error-while-loading-shared-libraries-libaio-so-1-cannot-open-shared-object-file-no-such-file-or-directory-%e9%94%99%e8%af%af%e7%9a%84%e8%a7%a3%e5%86%b3/#respond</comments>
		
		<dc:creator><![CDATA[learnhard]]></dc:creator>
		<pubDate>Thu, 08 May 2014 02:13:24 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[原创]]></category>
		<category><![CDATA[error while loading shared libraries]]></category>
		<category><![CDATA[libaio.so.1]]></category>
		<category><![CDATA[mysql-mxj/bin/mysqld]]></category>
		<category><![CDATA[mysqld]]></category>
		<guid isPermaLink="false">http://www.codelast.com/?p=8208</guid>

					<description><![CDATA[<div>
	<br />
	环境：Ubuntu 12.10 64位<br />
	这个错误是我在一个Java的单元测试中遇到的，因为该unit test使用了Embedded MySQL。</div>
<div>
<span id="more-8208"></span>	<br />
	<span style="background-color:#00ff00;">『1』</span>确定问题<br />
	它既然提示找不到&#160;libaio.so.1，那我就看一下我是否真的没安装：
<pre class="brush:shell;first-line:1;pad-line-numbers:true;highlight:null;collapse:false;">
[codelast@ lib]$ dpkg -l &#124; grep libaio
ii  libaio-dev                                0.3.109-2ubuntu1                           amd64        Linux kernel AIO access library - development files
ii  libaio1:amd64                             0.3.109-2ubuntu1                           amd64        Linux kernel AIO access library - shared library
</pre>
</div>
<p>所以，我是已经安装了的。<br />
PS：如果你没安装，可以先查询一下软件包名：</p>
<pre class="brush:shell;first-line:1;pad-line-numbers:true;highlight:null;collapse:false;">
[codelast@ lib]$ apt-cache search libaio
libaio-dev - Linux kernel AIO access library - development files
libaio1 - Linux kernel AIO access library - shared library
libaio1-dbg - Linux kernel AIO access library - debugging symbols
</pre>
<p>然后安装：</p>
<pre class="brush:shell;first-line:1;pad-line-numbers:true;highlight:null;collapse:false;">
sudo apt-get install libaio-dev libaio1
</pre>
<p><span style="color: rgb(255, 255, 255);">文章来源：</span><a href="http://www.codelast.com/" target="_blank" rel="noopener noreferrer"><span style="color: rgb(255, 255, 255);">http://www.codelast.com/</span></a>&#8230; <a href="https://www.codelast.com/%e5%8e%9f%e5%88%9b-mysql-mxjbinmysqld-error-while-loading-shared-libraries-libaio-so-1-cannot-open-shared-object-file-no-such-file-or-directory-%e9%94%99%e8%af%af%e7%9a%84%e8%a7%a3%e5%86%b3/" class="read-more">Read More </a></p>]]></description>
										<content:encoded><![CDATA[<div>
	<br />
	环境：Ubuntu 12.10 64位<br />
	这个错误是我在一个Java的单元测试中遇到的，因为该unit test使用了Embedded MySQL。</div>
<div>
<span id="more-8208"></span>	<br />
	<span style="background-color:#00ff00;">『1』</span>确定问题<br />
	它既然提示找不到&nbsp;libaio.so.1，那我就看一下我是否真的没安装：</p>
<pre class="brush:shell;first-line:1;pad-line-numbers:true;highlight:null;collapse:false;">
[codelast@ lib]$ dpkg -l | grep libaio
ii  libaio-dev                                0.3.109-2ubuntu1                           amd64        Linux kernel AIO access library - development files
ii  libaio1:amd64                             0.3.109-2ubuntu1                           amd64        Linux kernel AIO access library - shared library
</pre>
</div>
<p>所以，我是已经安装了的。<br />
PS：如果你没安装，可以先查询一下软件包名：</p>
<pre class="brush:shell;first-line:1;pad-line-numbers:true;highlight:null;collapse:false;">
[codelast@ lib]$ apt-cache search libaio
libaio-dev - Linux kernel AIO access library - development files
libaio1 - Linux kernel AIO access library - shared library
libaio1-dbg - Linux kernel AIO access library - debugging symbols
</pre>
<p>然后安装：</p>
<pre class="brush:shell;first-line:1;pad-line-numbers:true;highlight:null;collapse:false;">
sudo apt-get install libaio-dev libaio1
</pre>
<p><span style="color: rgb(255, 255, 255);">文章来源：</span><a href="http://www.codelast.com/" target="_blank" rel="noopener noreferrer"><span style="color: rgb(255, 255, 255);">http://www.codelast.com/</span></a><br />
<span style="background-color:#00ff00;">『2』</span>解决问题<br />
<a href="http://blog.palominolabs.com/2011/10/03/embedded-mysql-on-java-with-connectormxj-and-64-bit-linux/" target="_blank" rel="noopener noreferrer"><span style="background-color:#ffa07a;">这篇文章</span></a>里提到了这个错误，大家可以看看。里面说到了，Embedded MySQL需要使用32位的libaio，因此，我已经安装上的64位的libaio是没用的。于是我&ldquo;投机取巧&rdquo;地到另一台服务器上找到了一个32位的&nbsp;libaio.so.1.0.1，然后把它运行unit test的机器上的 /usr/lib/ 目录下，然后做一个软链接：</p>
<pre class="brush:shell;first-line:1;pad-line-numbers:true;highlight:null;collapse:false;">
sudo ln -s libaio.so.1.0.1 libaio.so.1
</pre>
<p>然后再运行unit test，问题解决了。</p>
<p style="font-size: 16px; margin: 5px 0px; clear: both; font-family: sans-serif;">
	<span style="color: rgb(255, 255, 255);">文章来源：</span><a href="https://www.codelast.com/" rel="noopener noreferrer" target="_blank"><span style="color: rgb(255, 255, 255);">https://www.codelast.com/</span></a><br />
	<span style="color: rgb(255, 0, 0);">➤➤</span>&nbsp;版权声明&nbsp;<span style="color: rgb(255, 0, 0);">➤➤</span>&nbsp;<br />
	转载需注明出处：<u><a href="https://www.codelast.com/" rel="noopener noreferrer" target="_blank"><em><span style="color: rgb(0, 0, 255);"><strong><span style="font-family: arial, helvetica, sans-serif;">codelast.com</span></strong></span></em></a></u>&nbsp;<br />
	感谢关注我的微信公众号（微信扫一扫）：</p>
<p style="border: 0px; font-size: 13px; margin: 0px 0px 9px; outline: 0px; padding: 0px; color: rgb(77, 77, 77);">
	<img decoding="async" alt="wechat qrcode of codelast" src="https://www.codelast.com/codelast_wechat_qr_code.jpg" style="width: 200px; height: 200px;" /></p>

			<!--[syntaxhighlighter]-->
			<!--代码高亮，请勿编辑-->
			<script type="text/javascript" src="https://www.codelast.com/wp-content/plugins/ck-and-syntaxhighlighter/syntaxhighlighter/scripts/shCore.js"></script><script type="text/javascript" src="https://www.codelast.com/wp-content/plugins/ck-and-syntaxhighlighter/syntaxhighlighter/scripts/shBrushShell.js"></script>

			<link type="text/css" rel="stylesheet" href="https://www.codelast.com/wp-content/plugins/ck-and-syntaxhighlighter/syntaxhighlighter/styles/shCoreCk.css" />
			<link type="text/css" rel="stylesheet" href="https://www.codelast.com/wp-content/plugins/ck-and-syntaxhighlighter/syntaxhighlighter/styles/shThemeCk.css" />
			<script type="text/javascript">
			SyntaxHighlighter.defaults['class-name']	= '';
			SyntaxHighlighter.defaults['smart-tabs']	= true;
			SyntaxHighlighter.defaults['tab-size']		= 2;
			SyntaxHighlighter.defaults['gutter']		= true;
			SyntaxHighlighter.defaults['quick-code']	= true;
			SyntaxHighlighter.defaults['collapse'] 		= false;
			SyntaxHighlighter.defaults['auto-links']	= true;
			SyntaxHighlighter.defaults['toolbar']		= true;
			SyntaxHighlighter.all();
			</script>
			<!--[/syntaxhighlighter]-->]]></content:encoded>
					
					<wfw:commentRss>https://www.codelast.com/%e5%8e%9f%e5%88%9b-mysql-mxjbinmysqld-error-while-loading-shared-libraries-libaio-so-1-cannot-open-shared-object-file-no-such-file-or-directory-%e9%94%99%e8%af%af%e7%9a%84%e8%a7%a3%e5%86%b3/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
