<?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>Jason L. Froebe - Tech tips and How Tos for Fellow Techies &#187; adaptive server enterprise</title>
	<atom:link href="http://froebe.net/blog/index.php/tag/adaptive-server-enterprise/feed/" rel="self" type="application/rss+xml" />
	<link>http://froebe.net/blog</link>
	<description>Tips &#38; Tricks for Databases (Sybase, Oracle, MySQL, PostgreSQL, SQLite), Windows, Linux, Solaris, Perl, Java, Bash and so much much more</description>
	<lastBuildDate>Sat, 07 Jan 2012 22:12:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>How to install and run Sybase Adaptive Server Enterprise 12.5.4 and 15.0x on Ubuntu Linux 8.04 JEOS (Hardy Heron) using chroot environment</title>
		<link>http://froebe.net/blog/2008/06/26/how-to-install-and-run-sybase-adaptive-server-enterprise-1254-and-150x-on-ubuntu-linux-804-jeos-hardy-heron-using-chroot-environment/</link>
		<comments>http://froebe.net/blog/2008/06/26/how-to-install-and-run-sybase-adaptive-server-enterprise-1254-and-150x-on-ubuntu-linux-804-jeos-hardy-heron-using-chroot-environment/#comments</comments>
		<pubDate>Thu, 26 Jun 2008 19:31:16 +0000</pubDate>
		<dc:creator>Jason L Froebe</dc:creator>
				<category><![CDATA[ASE]]></category>
		<category><![CDATA[Backup Server]]></category>
		<category><![CDATA[Databases]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[OS]]></category>
		<category><![CDATA[Replication Server]]></category>
		<category><![CDATA[Sybase]]></category>
		<category><![CDATA[adaptive server enterprise]]></category>
		<category><![CDATA[chroot]]></category>
		<category><![CDATA[hardy heron]]></category>
		<category><![CDATA[JEOS]]></category>
		<category><![CDATA[open server]]></category>
		<category><![CDATA[rep server]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[ubuntu 7.04]]></category>
		<category><![CDATA[ubuntu 8.04]]></category>
		<category><![CDATA[Ubuntu JEOS]]></category>

		<guid isPermaLink="false">http://froebe.net/blog/?p=528</guid>
		<description><![CDATA[Because Sybase has yet to address the GLIBC (LD_POINTER_GUARD) issue with any of their products on Linux, we are forced to find alternative ways of getting Sybase software to run on modern Linux distribution.  In this situation, we will be using the Ubuntu 8.04 Just Enough OS (Ubuntu JEOS) Linux distribution. After installing Ubuntu 8.04 [...]]]></description>
			<content:encoded><![CDATA[<p>Because Sybase has yet to address the <a href="http://froebe.net/blog/2007/02/26/progress-made-on-the-ld_pointer_guard-ase-setup-issue/">GLIBC (LD_POINTER_GUARD) issue</a> with any of their products on Linux, we are forced to find alternative ways of getting Sybase software to run on modern Linux distribution.  In this situation, we will be using the <a href="http://www.ubuntu.com/products/whatisubuntu/serveredition/jeos">Ubuntu 8.04 Just Enough OS (Ubuntu JEOS) Linux distribution</a>.</p>
<p>After installing Ubuntu 8.04 Server JEOS on the physical or virtual machine, <a href="http://www.ubuntu.com/getubuntu/downloadmirrors">download</a> the Ubuntu 7.04 Server iso image.  Why Ubuntu 7.04?  Ubuntu 7.04 is the last Ubuntu release that has an old enough GLIBC that Sybase software will work with.</p>
<blockquote><p><strong>% sudo debootstrap feisty /home/sybase file:///media/cdrom0</strong></p>
<ul>
<li>Change the home directory of the sybase user to be /dbms/sybase by editing the /etc/passwd file</li>
</ul>
<p><strong>% sudo cp /etc/resolv.conf /home/sybase/etc/resolv.conf</strong></p>
<p><strong>% sudo cp /etc/hosts /home/sybase/etc/hosts</strong></p>
<p><strong>% sudo cp /etc/passwd /home/sybase/etc/passwd</strong></p>
<p><strong>% sudo cp /etc/shadow /home/sybase/etc/shadow</strong></p>
<p><strong>% sudo `cat /etc/apt/sources.list | sed -e &#8216;s/hardy/feisty/g&#8217; &gt; /home/sybase/etc/apt/sources.list`</strong></p>
<p><strong>% sudo mount &#8211;bind /dev /home/sybase/dev</strong></p>
<p><strong>% sudo mount &#8211;bind /proc /home/sybase/proc</strong></p>
<p><strong>% sudo mount -t devpts none /home/sybase/dev/pts</strong></p>
<p><strong>% sudo mount &#8211;bind /tmp /home/sybase/tmp</strong></p>
<p><strong>% sudo aptitude update</strong></p>
<p><strong>% sudo aptitude upgrade</strong></p>
<p><strong>% sudo aptitude install locales dialog wget debconf devscripts gnupg</strong></p>
<p><strong>% sudo aptitude install libstdc++5 libstdc++6 libaio</strong></p>
<ul>
<li>If you&#8217;re installing v12.5x software, you will need to install an even older copy of libstdc++ (not needed for v15 or higher software):</li>
</ul>
<p><span style="color: #ff9900;"><em><strong>% aptitude install libstdc++2.10-glibc2.2</strong></em></span></p>
<ul>
<li>Install Sybase software into /dbms/sybase (as root in the chroot environment which you should still be in)</li>
</ul>
<p><strong>% sudo cp /dbms/sybase/SYBASE.sh /dbms/sybase/SYBASE.env</strong></p>
<p><strong>% sudo echo DSQUERY=MYASE &gt;&gt; /dbms/sybase/.SYBASE.env</strong></p>
<p><strong>% sudo echo sa_password &gt; /dbms/sybase/.sapwd</strong></p>
<p><strong>% sudo chmod go-rwx /dbms/sybase/.sapwd</strong></p>
<p><strong>% sudo chmod u-wx /dbms/sybase/.sapwd</strong></p>
<p><strong>% sudo chown -R sybase /dbms/sybase</strong></p>
<ul>
<li>Install the <a href="http://froebe.net/blog/wp-content/uploads/2008/06/sybase_chroot">sybase_chroot</a> script into /usr/local/bin and make it executable by root</li>
</ul>
<ul>
<li>Install the <a href="http://froebe.net/blog/wp-content/uploads/2008/06/sybase_ase">sybase_ase</a> rc script into /etc/init.d and make it executable by root</li>
</ul>
<ul>
<li>Exit the chroot environment by typing &#8216;exit&#8217;</li>
</ul>
<ul>
<li>create a symbolic link outside of the chroot environment to make /home/sybase/dbms appear as /dbms.  This will allow you to access the Sybase software, notably OpenClient, as a normal user outside of the chroot environment.</li>
</ul>
</blockquote>
<blockquote><p><strong>% sudo ln -s /home/sybase/dbms /dbms</strong></p></blockquote>
<p>You are now able to start Sybase ASE using <span style="color: #00ff00;"><em>sudo /etc/init.d/sybase_ase start</em></span> and stop Sybase ASE using <span style="color: #ff0000;"><em>sudo /etc/init.d/sybase_ase stop</em></span>.  Starting Sybase Replication Server, OpenServer, or similar Sybase software is simply a matter of copying the /etc/init.d/sybase_ase and tweaking the script copy.</p>
<p>If you feel this is way complicated and Sybase should just fix their software, <a href="mailto:sales@sybase.com">let them know</a>.  Please point them to this page and refer to <strong>CR455393</strong>.</p>
<p><strong>UPDATE:</strong> The <a href="http://blogs.sybase.com/master/master_04290804.asp">GLIBC issue is fixed in v15.0.2 esd 4</a>.  It doesn&#8217;t seem to be working for everyone though.  More information is needed about those systems where esd 4 doesn&#8217;t resolve the matter.  No fix is available for 12.5x from Sybase.</p>
<p><strong>UPDATE:</strong> Keep in mind, that the Sybase ASE 15.0.2 esd 4 patch is available only to Sybase customers with a current maintenance contract with Sybase.</p>
]]></content:encoded>
			<wfw:commentRss>http://froebe.net/blog/2008/06/26/how-to-install-and-run-sybase-adaptive-server-enterprise-1254-and-150x-on-ubuntu-linux-804-jeos-hardy-heron-using-chroot-environment/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

