<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[刘新修]]></title> 
<link>http://liuxinxiu.com:80/index.php</link> 
<description><![CDATA[刘新修的个人博客 (Liuxinxiu'S Blog)]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[刘新修]]></copyright>
<item>
<link>http://liuxinxiu.com:80/Emscripten/</link>
<title><![CDATA[centos 安装 Emscripten]]></title> 
<author>刘新修 &lt;admin@yourname.com&gt;</author>
<category><![CDATA[Linux/Unix]]></category>
<pubDate>Fri, 08 Nov 2024 07:53:05 +0000</pubDate> 
<guid>http://liuxinxiu.com:80/Emscripten/</guid> 
<description>
<![CDATA[ 
	<p><strong>centos 安装 Emscripten</strong></p><div>在CentOS上安装Emscripten需要几个步骤。以下是基本的安装指南：</div><div>&nbsp;</div><div>更新系统包：</div><div>&nbsp;</div><div><strong><span style="color: rgb(128, 0, 0);">sudo yum update</span></strong></div><div>安装Emscripten需要的依赖项：</div><div>&nbsp;</div><div><span style="color: rgb(128, 0, 0);"><strong>sudo yum install git clang make python nodejs</strong></span></div><div>获取Emscripten源代码：</div><div>&nbsp;</div><div><strong><span style="color: rgb(128, 0, 0);">git clone https://github.com/emscripten-core/emsdk.git</span></strong></div><div>进入emsdk目录并安装最新的Emscripten SDK：</div><div>&nbsp;</div><div><strong><span style="color: rgb(128, 0, 0);">cd emsdk</span></strong></div><div><strong><span style="color: rgb(128, 0, 0);">./emsdk install latest</span></strong></div><div>激活安装的SDK：</div><div>&nbsp;</div><div><strong><span style="color: rgb(128, 0, 0);">./emsdk activate latest</span></strong></div><div>加载Emscripten环境变量，可以将以下命令加入到你的.bashrc或.bash_profile中，以便在每个新的终端会话中自动设置环境变量：</div><div>&nbsp;</div><div><strong><span style="color: rgb(128, 0, 0);">source ./emsdk_env.sh</span></strong></div><div>完成以上步骤后，Emscripten应该就安装并配置好了。</div><div>&nbsp;</div><div>可以通过运行<strong>emcc --version</strong>来检查是否安装成功。</div><div>&nbsp;</div><div><div>[root@localhost emsdk]# <span style="color: rgb(128, 0, 0);"><strong>emcc --version</strong></span></div><div>shared:INFO: (Emscripten: Running sanity checks)</div><div>emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 3.1.71 (4171ae200b77a6c266b0e1ebb507d61d1ade3501)</div><div>Copyright (C) 2014 the Emscripten authors (see AUTHORS.txt)</div><div>This is free and open source software under the MIT license.</div><div>There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.</div></div>
]]>
</description>
</item><item>
<link>http://liuxinxiu.com:80/Emscripten/#blogcomment</link>
<title><![CDATA[[评论] centos 安装 Emscripten]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>http://liuxinxiu.com:80/Emscripten/#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>