<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Psutil on ポンコツ地方エンジニアの技術ブログ</title><link>https://blog-0847c6.gitlab.io/tags/psutil/</link><description>Recent content in Psutil on ポンコツ地方エンジニアの技術ブログ</description><generator>Hugo -- gohugo.io</generator><language>ja-jp</language><lastBuildDate>Tue, 13 Sep 2022 00:00:00 +0900</lastBuildDate><atom:link href="https://blog-0847c6.gitlab.io/tags/psutil/index.xml" rel="self" type="application/rss+xml"/><item><title>[Python] psutil を使おうとしたら `command 'aarch64-linux-gnu-gcc' failed with exit status 1` のエラーがでた</title><link>https://blog-0847c6.gitlab.io/posts/2022/09/13/psutil/</link><pubDate>Tue, 13 Sep 2022 00:00:00 +0900</pubDate><guid>https://blog-0847c6.gitlab.io/posts/2022/09/13/psutil/</guid><description>&lt;p&gt;arm 系の CPU 環境において、Ubuntu のイメージを使った Docker コンテナ内で、python の psutil を使ってストレージの情報を取得しようとしたところ、psutil のインストール時に以下のエラーが表示されました。&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-fallback" data-lang="fallback"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;error: command &amp;#39;aarch64-linux-gnu-gcc&amp;#39; failed with exit status 1
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;&lt;code&gt;crossbuild-essential-arm64&lt;/code&gt; と &lt;code&gt;python3-dev&lt;/code&gt; をインストールすれば解決しました。&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" class="chroma"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span class="line"&gt;&lt;span class="cl"&gt;$ sudo apt install crossbuild-essential-arm64 python3-dev
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h2 id="参考-url"&gt;&lt;a href="#%e5%8f%82%e8%80%83-url" class="header-anchor"&gt;&lt;/a&gt;参考 URL
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;&lt;a class="link" href="https://qiita.com/yuta_vamdemic/items/277a5a692840d06c4cd9" target="_blank" rel="noopener"
 &gt;https://qiita.com/yuta_vamdemic/items/277a5a692840d06c4cd9&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item></channel></rss>