<?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>生信菜鸟团 &#187; matlab</title>
	<atom:link href="http://www.bio-info-trainee.com/tag/matlab/feed" rel="self" type="application/rss+xml" />
	<link>http://www.bio-info-trainee.com</link>
	<description>欢迎去论坛biotrainee.com留言参与讨论，或者关注同名微信公众号biotrainee</description>
	<lastBuildDate>Sat, 28 Jun 2025 14:30:13 +0000</lastBuildDate>
	<language>zh-CN</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.33</generator>
	<item>
		<title>在linux系统里面安装matlab运行环境mcr</title>
		<link>http://www.bio-info-trainee.com/1166.html</link>
		<comments>http://www.bio-info-trainee.com/1166.html#comments</comments>
		<pubDate>Thu, 05 Nov 2015 06:12:53 +0000</pubDate>
		<dc:creator><![CDATA[ulwvfje]]></dc:creator>
				<category><![CDATA[基础软件]]></category>
		<category><![CDATA[生信基础]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[matlab]]></category>
		<category><![CDATA[mcr]]></category>

		<guid isPermaLink="false">http://www.bio-info-trainee.com/?p=1166</guid>
		<description><![CDATA[matlab毕竟是收费软件，而且是有界面的。所以搞生物信息的都用R和linux替 &#8230; <a href="http://www.bio-info-trainee.com/1166.html">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>matlab毕竟是收费软件，而且是有界面的。所以搞生物信息的都用R和linux替代了，但是很多高大上的单位，比如大名鼎鼎的broadinstitute，是用matlab的，所以他们开发的程序也会以matlab代码的形式发布。但是考虑到大多研究者用不起matlab，或者不会用，所以就用linux系统里面安装matlab运行环境来解决这个问题，我们仍然可以把人家写的matlab程序，在linux命令行下面，当做一个脚本来运行！</p>
<p>比如，这次我就需要用broadinstitute的一个软件：Mutsig，找cancer driver gene的，http://www.broadinstitute.org/cancer/cga/mutsig_run，但是我看了说明才发现，它是用matlab写的，所以我要想在我的服务器用，就必须按照安装matlab运行环境，在官网可以下载：http://www.mathworks.com/products/compiler/mcr/</p>
<p><a href="http://www.bio-info-trainee.com/wp-content/uploads/2015/11/Capture3.png"><img class="alignnone size-full wp-image-1167" src="http://www.bio-info-trainee.com/wp-content/uploads/2015/11/Capture3.png" alt="Capture3" width="600" height="342" /></a></p>
<p>我这里选择的是R2013a (8.1)，下载之后解压是这样的，压缩包约四百多M</p>
<p><a href="http://www.bio-info-trainee.com/wp-content/uploads/2015/11/Capture1.png"><img class="alignnone size-full wp-image-1168" src="http://www.bio-info-trainee.com/wp-content/uploads/2015/11/Capture1.png" alt="Capture1" width="408" height="206" /></a></p>
<p>然后直接在解压后的目录里面运行那个install即可，然后如果你的linux可以传送图像，那么就会想安装windows软件一样方便！如果你的linux是纯粹的命令行，那么，就需要一步步的命令行交互，选择安装地址，等等来安装了。</p>
<p>记住你安装之后，会显示一些环境变量给你，请千万要记住，然后自己去修改自己的环境变量，如果你忘记了，就需要搜索来解决环境变量的问题啦！安装之后是这样的：</p>
<p><a href="http://www.bio-info-trainee.com/wp-content/uploads/2015/11/Capture2.png"><img class="alignnone size-full wp-image-1169" src="http://www.bio-info-trainee.com/wp-content/uploads/2015/11/Capture2.png" alt="Capture2" width="283" height="294" /></a></p>
<p>请记住你的安装目录，以后你运行其它matlab相关的程序，都需要把这个安装目录，当做一个参数传给你的其它程序的！！！</p>
<p>如果你没有设置环境变量，就会出各种各样的错误，用下面这个脚本可以设置</p>
<p>其中MCRROOT一般是$path/biosoft/matlab_running/v81/ 这样的东西，请务必注意，LD_LIBRARY_PATH非常重要，非常重要，非常重要！！！！</p>
<p>MCRROOT=$1<br />
echo ---<br />
LD_LIBRARY_PATH=.:${MCRROOT}/runtime/glnxa64 ;<br />
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MCRROOT}/bin/glnxa64 ;<br />
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MCRROOT}/sys/os/glnxa64;<br />
MCRJRE=${MCRROOT}/sys/java/jre/glnxa64/jre/lib/amd64 ;<br />
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MCRJRE}/native_threads ;<br />
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MCRJRE}/server ;<br />
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MCRJRE}/client ;<br />
LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${MCRJRE} ;<br />
XAPPLRESDIR=${MCRROOT}/X11/app-defaults ;<br />
export LD_LIBRARY_PATH;<br />
export XAPPLRESDIR;<br />
echo LD_LIBRARY_PATH is ${LD_LIBRARY_PATH};</p>
<p>如果你没有设置正确，那么会报一下的错误！</p>
<p>error while loading shared libraries: libmwmclmcrrt.so.8.1: cannot o pen shared object file: No such file or directory</p>
<p>error while loading shared libraries: libmwlaunchermain.so: cannot o pen shared object file: No such file or directory</p>
<p>等等！！！</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bio-info-trainee.com/1166.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
