蔷薇岛屿 發表於 2021-4-17 01:39:00

ubuntu安装qemu

<h1>ubuntu安装qemu</h1>
<p>    <span style="font-family: 宋体; font-size: 16px">ubtuntu编译安装qemu 5.2.0,apt-get安装的版本过于老旧。</span></p>
<p><span style="font-family: 宋体; font-size: 16px">    环境:ubuntu 18.04.</span></p>
<div class="cnblogs_code">
<pre><span style="font-size: 16px"><span style="color: rgba(0, 0, 255, 1)">wget</span> https:<span style="color: rgba(0, 128, 0, 1)">//</span><span style="color: rgba(0, 128, 0, 1)">download.qemu.org/qemu-5.2.0.tar.xz</span>
<span style="color: rgba(0, 0, 255, 1)">tar</span> xvJf qemu-<span style="color: rgba(128, 0, 128, 1)">5.2</span>.<span style="color: rgba(128, 0, 128, 1)">0</span>.<span style="color: rgba(0, 0, 255, 1)">tar</span><span style="color: rgba(0, 0, 0, 1)">.xz
</span><span style="color: rgba(0, 0, 255, 1)">mkdir</span> build &amp;&amp;<span style="color: rgba(0, 0, 0, 1)"> cd build
</span><span style="color: rgba(0, 0, 0, 1)">
..</span>/<span style="color: rgba(0, 0, 0, 1)">configure
</span><span style="color: rgba(0, 0, 255, 1)">make</span><span style="color: rgba(0, 0, 255, 1)">make</span> <span style="color: rgba(0, 0, 255, 1)">install</span></span></pre>
</div>
<p>    <span style="font-size: 16px; font-family: 宋体">编译安装过程中,存在环境依赖未安装的问题,首先提示ninja未安装。</span></p>
<div class="cnblogs_code">
<pre><span style="font-size: 16px">apt-get <span style="color: rgba(0, 0, 255, 1)">install</span> ninja-build<br>ninja</span></pre>
</div>
<p>    <span style="font-family: 宋体"><span style="font-size: 16px">编译</span><span style="font-size: 16px">安装好ninja之后,../configure的时候出现类似下面这种报错:</span></span></p>
<div class="cnblogs_code">
<pre><span style="font-size: 16px"><span style="color: rgba(0, 0, 0, 1)">Program cgcc found: NO
Library m found: YES
Library util found: YES
Run</span>-<span style="color: rgba(0, 0, 255, 1)">time</span><span style="color: rgba(0, 0, 0, 1)"> dependency appleframeworks found: NO (tried framework)
Found </span><span style="color: rgba(0, 0, 255, 1)">pkg-config</span>: /usr/bin/<span style="color: rgba(0, 0, 255, 1)">pkg-config</span> (<span style="color: rgba(128, 0, 128, 1)">0.29</span>.<span style="color: rgba(128, 0, 128, 1)">1</span><span style="color: rgba(0, 0, 0, 1)">)
Run</span>-<span style="color: rgba(0, 0, 255, 1)">time</span> dependency pixman-<span style="color: rgba(128, 0, 128, 1)">1</span><span style="color: rgba(0, 0, 0, 1)"> found: NO (tried pkgconfig)

..</span>/meson.build:<span style="color: rgba(128, 0, 128, 1)">302</span>:<span style="color: rgba(128, 0, 128, 1)">2</span>: ERROR: Dependency <span style="color: rgba(128, 0, 0, 1)">"</span><span style="color: rgba(128, 0, 0, 1)">pixman-1</span><span style="color: rgba(128, 0, 0, 1)">"</span><span style="color: rgba(0, 0, 0, 1)"> not found, tried pkgconfig

A full log can be found at </span>/opt/qemu-<span style="color: rgba(128, 0, 128, 1)">5.2</span>.<span style="color: rgba(128, 0, 128, 1)">0</span>/build/meson-logs/meson-<span style="color: rgba(0, 0, 0, 1)">log.txt

ERROR: meson setup failed</span></span></pre>
</div>
<p>   &nbsp;<span style="font-size: 16px; font-family: 宋体">这时候需要安装需要安装pixman依赖。</span></p>
<div class="cnblogs_code">
<pre><span style="font-size: 16px">apt-get <span style="color: rgba(0, 0, 255, 1)">install</span> libmount-dev</span></pre>
</div>
<p>&nbsp;   <span style="font-size: 16px; font-family: 宋体">然后就大功告成。</span></p>
<p><span style="font-size: 16px"><span style="font-family: 宋体"><img src="https://img2020.cnblogs.com/blog/1971917/202104/1971917-20210417013828570-1185583307.png"></span></span></p>
<p>&nbsp;</p>
<p><span style="font-size: 16px"></span></p>
<p>&nbsp;</p>
<p><span style="font-size: 16px">&nbsp;</span></p>
<p><span style="font-size: 16px">  </span></p><br><br>
来源:https://www.cnblogs.com/L0g4n-blog/p/14669294.html
頁: [1]
查看完整版本: ubuntu安装qemu