<?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>Ball Dawg! &#187; Accelrys</title>
	<atom:link href="http://www.balldawg.net/index.php/tag/accelrys/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.balldawg.net</link>
	<description>Just some ninja monkeys, nothing to see here.  Move along.</description>
	<lastBuildDate>Fri, 13 Jan 2012 02:02:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How To: Accelrys Insight II 2005 on RHEL5</title>
		<link>http://www.balldawg.net/index.php/2009/08/how-to-accelrys-insight-ii-2005-on-rhel5/</link>
		<comments>http://www.balldawg.net/index.php/2009/08/how-to-accelrys-insight-ii-2005-on-rhel5/#comments</comments>
		<pubDate>Mon, 31 Aug 2009 20:40:20 +0000</pubDate>
		<dc:creator>Andrew Rankin</dc:creator>
				<category><![CDATA[Linux Workstations]]></category>
		<category><![CDATA[Accelrys]]></category>
		<category><![CDATA[Centos 5]]></category>
		<category><![CDATA[CHROOT]]></category>
		<category><![CDATA[Insight II]]></category>

		<guid isPermaLink="false">http://www.balldawg.net/?p=274</guid>
		<description><![CDATA[So you want to move your Linux workstations to RHEL5 but still use Insight II? If you have tried (and I know you have), you know that because of the jump in the version of GLIBC to version 2.5, Insight II won&#8217;t run. As much as we wish Accelrys would go and compile it against [...]]]></description>
			<content:encoded><![CDATA[<p>So you want to move your Linux workstations to RHEL5 but still use Insight II?  If you have tried (and I know you have), you know that because of the jump in the version of GLIBC to version 2.5, Insight II won&#8217;t run.  As much as we wish Accelrys would go and compile it against RHEL5, that won&#8217;t happen either.  So, what does it take to get it to run?  RHEL4&#8230; No, really.  But we are going to be cute about it.  Since all Insight needs is a few libraries to run, its just a matter of putting it in a place where it can get to them.   My solution to this was making a small chroot environment  in which to start up Insight in.<span id="more-274"></span></p>
<p>Creating a chroot environment is fairly easy.  You&#8217;ll need a folder to put it in, and root access to the machine your on to create it.  For this example lets use /rhel4_chroot/, so first just create that directory.  Next you&#8217;ll need access to RPMs from a RHEL4.8 DVD, or really just have a place to pull them from &#8211; so it can be a repo or whatever.  You&#8217;ll want to install a few rpms to that root to make the basic linux environment available when you chroot to that directory.  You can do this a number of ways, what I found that you&#8217;ll need on a most basic level is the following (from Centos 4.8 Base):</p>
<pre class="brush: php">
rpm --root &quot;/rhel4_chroot/&quot; -i \
binutils-2.15.92.0.2-25.x86_64.rpm \
glibc-2.3.4-2.43.x86_64.rpm \
glibc-common-2.3.4-2.43.x86_64.rpm \
tzdata-2009f-1.el4.noarch.rpm \
libgcc-3.4.6-11.x86_64.rpm \
basesystem-8.0-4.noarch.rpm \
setup-2.5.37-3.el4.noarch.rpm \
bash-3.0-21.el4.x86_64.rpm \
mktemp-1.5-20.x86_64.rpm \
filesystem-2.3.0-1.x86_64.rpm \
info-4.7-5.el4.2.x86_64.rpm \
libtermcap-2.0.8-39.x86_64.rpm \
ncurses-5.4-15.el4.x86_64.rpm \
zlib-1.2.1.2-1.2.x86_64.rpm \
termcap-5.4-3.noarch.rpm \
</pre>
<p>This will give you an environment you can chroot too and have a very basic set of tools available.   To get to a point where you can run Insight II you&#8217;ll need a few more.  In my case I didn&#8217;t want to play the dependency game, so I just installed everything needed to run yum from within the enviroment:</p>
<pre class="brush: php">

rpm --root &quot;/rhel4_chroot/&quot; -i \
yum-2.4.3-4.el4.centos.noarch.rpm \
coreutils-5.2.1-36.el4.centos.x86_64.rpm \
python-2.3.4-14.7.el4.x86_64.rpm \
libacl-2.2.23-5.4.el4.x86_64.rpm \
python-elementtree-1.2.6-5.el4.centos.x86_64.rpm \
python-sqlite-1.1.7-1.2.1.x86_64.rpm \
libxml2-python-2.6.16-12.6.x86_64.rpm \
yum-metadata-parser-1.0-8.el4.centos.x86_64.rpm \
grep-2.5.1-32.4.el4.x86_64.rpm \
pam-0.77-66.26.x86_64.rpm \
pcre-4.5-4.el4_6.6.x86_64.rpm \
sed-4.1.2-7.el4.x86_64.rpm \
rpm-python-4.3.3-32_nonptl.x86_64.rpm \
rpm-4.3.3-32_nonptl.x86_64.rpm \
glib2-2.4.7-1.x86_64.rpm \
elfutils-0.97.1-5.x86_64.rpm \
popt-1.9.1-32_nonptl.x86_64.rpm \
beecrypt-3.1.0-6.x86_64.rpm \
rpm-libs-4.3.3-32_nonptl.x86_64.rpm \
findutils-4.1.20-7.el4.3.x86_64.rpm \
db4-4.2.52-7.3.el4.x86_64.rpm \
libxml2-2.6.16-12.6.x86_64.rpm \
libstdc++-3.4.6-11.x86_64.rpm \
audit-libs-1.0.16-4.el4.x86_64.rpm \
shadow-utils-4.0.3-66.RHEL4.x86_64.rpm \
elfutils-libelf-0.97.1-5.x86_64.rpm \
cracklib-2.8.9-1.3.x86_64.rpm \
cracklib-dicts-2.8.9-1.3.x86_64.rpm \
libselinux-1.19.1-7.4.x86_64.rpm \
bzip2-libs-1.0.2-14.el4_7.x86_64.rpm \
sqlite-devel-3.3.6-2.x86_64.rpm \
sqlite-3.3.6-2.x86_64.rpm \
chkconfig-1.3.13.5.EL4-1.x86_64.rpm \
python-urlgrabber-2.9.8-2.noarch.rpm \
centos-release-4-8.x86_64.rpm \
openssl-0.9.7a-43.17.el4_7.2.x86_64.rpm \
krb5-libs-1.3.4-62.el4.x86_64.rpm \
initscripts-7.93.34-1.centos4.x86_64.rpm \
udev-039-10.29.el4.x86_64.rpm \
ethtool-6-1.x86_64.rpm \
SysVinit-2.85-34.4.x86_64.rpm \
gawk-3.1.3-10.1.x86_64.rpm \
net-tools-1.60-39.el4.x86_64.rpm \
lvm2-2.02.42-5.el4.x86_64.rpm \
device-mapper-1.02.28-2.el4.x86_64.rpm \
util-linux-2.12a-24.el4.x86_64.rpm \
audit-1.0.16-4.el4.x86_64.rpm \
hotplug-2004_04_01-7.10.x86_64.rpm \
usbutils-0.11-7.RHEL4.1.x86_64.rpm \
hwdata-0.146.33.EL-17.noarch.rpm \
e2fsprogs-1.35-12.24.el4.x86_64.rpm \
libsepol-1.1.1-2.x86_64.rpm \
sysklogd-1.4.1-28.el4.x86_64.rpm \
module-init-tools-3.1-0.pre5.3.11.x86_64.rpm \
kernel-2.6.9-89.EL.x86_64.rpm \
mkinitrd-4.2.1.13-4.x86_64.rpm \
kudzu-1.1.95.26-1.x86_64.rpm \
cpio-2.5-16.el4.x86_64.rpm \
gzip-1.3.3-17.rhel4.x86_64.rpm \
hal-0.4.2-8.EL4.x86_64.rpm \
dbus-0.22-12.EL.9.x86_64.rpm \
dbus-glib-0.22-12.EL.9.x86_64.rpm \
tar-1.14-12.5.1.RHEL4.x86_64.rpm \
mingetty-1.07-3.x86_64.rpm \
less-382-4.rhel4.x86_64.rpm \
iputils-20020927-22.el4.x86_64.rpm \
iproute-2.6.9-4.el4.x86_64.rpm \
psmisc-21.4-4.1.x86_64.rpm \
procps-3.2.3-8.17.x86_64.rpm \
which-2.16-4.x86_64.rpm \
MAKEDEV-3.15.2-3.x86_64.rpm \
gdbm-1.8.0-24.x86_64.rpm \
gmp-4.1.4-3.x86_64.rpm \
libattr-2.4.16-3.1.el4.x86_64.rpm \
readline-4.3-13.x86_64.rpm \
expat-1.95.7-4.x86_64.rpm \
newt-0.51.6-10.el4.x86_64.rpm \
libcap-1.10-20.x86_64.rpm \
slang-1.4.9-8.x86_64.rpm
</pre>
<p>Now you see what I mean by &#8220;the dependency game&#8221;.  Now if you don&#8217;t want to waste the space you can skip yum and figure out the exact dependencies for Insight, its really up to you since its just an issue of space and what you want available.  After yum was installed I went ahead and chrooted to the enviroment and added the &#8220;Compatibility Arch Development Support&#8221; yum group along with openmotif21-2.1.30-11.RHEL4.6, bind-utils, compat-libstdc++-296.i386, xorg-x11-Mesa-libGLU and copied over the basic network files (hosts, resolv.conf and nsswitch.conf).  If from within your chroot enviroment yum gets upset about the rpm database, this is due to RHEL5 rpm using a different database than RHEL4 &#8211; you&#8217;ll just need to clear them out:</p>
<pre class="brush: php">
rm -rf /var/lib/rpm/__db*
</pre>
<p>You&#8217;ll want to remount your systems /dev and /tmp folders for use within the chroot environment, for example:</p>
<pre class="brush: php">
/bin/mount -o bind /dev /rhel4_chroot/dev/
/bin/mount -o bind /tmp /rhel4_chroot/tmp/
</pre>
<p>At this point Insight should run, you&#8217;ll need to devise an easy way for your users to do it &#8211; likely some sort of sudoers allowances to run the mount/unmount of the above directories along with the command to run insight as them within the chrooted environment.  Don&#8217;t forget to run a &#8216;yum clean all&#8217; to clean out the rpms yum downloaded.</p>
<p>The environment ended up being about 700MB in this state &#8211; which was fine for us.</p>
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 1665px; width: 1px; height: 1px;">
<pre>rm -rf /var/lib/rpm/__db*</pre>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.balldawg.net/index.php/2009/08/how-to-accelrys-insight-ii-2005-on-rhel5/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

