<?xml version="1.0" encoding="utf-8"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>Actian Community Forums - Blogs - geraintjones</title>
		<link>http://community.actian.com/forum/blogs/geraintjones/</link>
		<description><![CDATA[Actian Corporation is a leading provider of open source database management software and support services. [Toll Free] +1 (888) 446-4737]]></description>
		<language>en</language>
		<lastBuildDate>Wed, 22 Feb 2012 21:30:13 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://community.actian.com/forum/ingres4/misc/rss.jpg</url>
			<title>Actian Community Forums - Blogs - geraintjones</title>
			<link>http://community.actian.com/forum/blogs/geraintjones/</link>
		</image>
		<item>
			<title>Installing Ingres Dynamic Playback on RHEL5.4</title>
			<link>http://community.actian.com/forum/blogs/geraintjones/76-installing-ingres-dynamic-playback-rhel5-4.html</link>
			<pubDate>Fri, 17 Sep 2010 11:47:35 GMT</pubDate>
			<description>After recently installing the Ingres Dynamic Playback utility on RHEL5.4, I’m briefly noting my experiences here, in case it helps anyone else...</description>
			<content:encoded><![CDATA[<div>After recently installing the Ingres Dynamic Playback utility on RHEL5.4, I’m briefly noting my experiences here, in case it helps anyone else trying the same.<br />
<br />
For further info on Playback, see the Ingres community wiki page:<br />
<a href="http://community.ingres.com/wiki/Dynamic_Playback" target="_blank">Dynamic Playback - Ingres Community Wiki</a><br />
<br />
<b>A couple of packages to install first:</b><br />
<br />
It’s assumed that the necessary OS packages have been installed to allow compilation (gcc, make etc).<br />
<br />
<u>Mono</u><br />
<br />
The packages for RHEL5 can be found at:<br />
<a href="http://ftp.novell.com/pub/mono/download-stable/RHEL_5/" target="_blank">Index of /pub/mono/download-stable/RHEL_5</a><br />
Choose the directory appropriate to your architecture eg i386 or x86-64.<br />
<br />
Required packages are mono-addon-core, mono-addon-libgdiplus0, mono-addon-data.<br />
Install as root. (rpm –Uvh …)<br />
<br />
<u>Other packages (from the RHEL5 distribution media)</u><br />
<br />
If not already installed, the packages giflib and libexif are required.<br />
<br />
<b>Get the Playback software</b><br />
<br />
This is described on the Ingres community wiki page as shown above.<br />
<br />
I grabbed the latest development code rather than a source package from sourceforge.<br />
<br />
If using sourceforge packages, it’s likely some of the following steps won’t be required (I didn’t try it so can’t advise).<br />
<br />
The version I downloaded included a couple of very minor errors that needed to be corrected. They’re described here, but note this was development code on 15 Sep 10, it could be updated at any time:<br />
<br />
In Preprocess/monobuild.sh, reference to a couple of files was missing, add:<br />
<br />
<font color="DarkGreen">“./Preprocess/Parser/ParserSC930v6.cs” “./Preprocess/Parser/ParserSC930v7.cs”</font><br />
<br />
In Playback/db.h there weren’t enough arguments to db_connect specified:<br />
<br />
<font color="DarkGreen">extern int db_connect( const char *, char *, char *, char *, char *)</font><br />
<br />
should read<br />
<br />
<font color="DarkGreen">extern int db_connect( const char *, char *, char *, char *, char *, char *)</font><br />
<br />
<u>Autoconf</u><br />
<br />
The autoconf utility is needed to generate the configure script in the “Playback” directory.<br />
<br />
RHEL5 ships with version 2.59 of autoconf. However, Playback requires a later version – at least 2.61<br />
<br />
Get the autoconf source from <a href="http://ftp.gnu.org/gnu/autoconf/" target="_blank">Index of /gnu/autoconf</a><br />
<br />
I used version 2.61, although later versions are available.<br />
<br />
To install autoconf is a familiar process (at least to those who’ve installed packages from source before).  Uncompress &amp; extract the tar file, followed by “configure”, “make”, “make install”. Root permissions are required for “make install”. Full details are in the “INSTALL” file in the tarball.<br />
<br />
One thing to watch out for is that “make install” will install into /usr/local/bin. If autoconf 2.59 is already installed, that will remain in place in /usr/bin.<br />
When it comes to running autoconf later, if both versions are installed then it’s necessary to either set PATH appropriately to find /usr/local/bin before /usr/bin, or specify the full pathname to autoconf, ie: /usr/local/bin/autoconf<br />
<br />
<b>Compile</b><br />
<br />
I compiled under the “ingres” user, with the environment already set up correctly for using Ingres (II_SYSTEM, PATH, LD_LIBRARY_PATH).<br />
<br />
A couple of additional environment settings to make:<br />
<br />
Add to PATH: /opt/novell/mono/bin<br />
<br />
Add to LD_LIBRARY_PATH: /opt/novell/mono/lib64 (if running 64-bit OS) and /opt/novell/mono/lib<br />
<br />
Then run autoconf - from the ‘main’ directory:<br />
<br />
cd Playback<br />
/usr/local/bin/autoconf<br />
<br />
Note for 64 bit RHEL5: A 32 bit binary will be built. I had to ensure a 32-bit libingres.a existed (in $II_SYSTEM/ingres/lib/lp32 – install “Ingres 32bit support” from ingbuild if not), then edit the “configure” file and add “lp32/” to the end of the INGLIBDIR setting: INGLIBDIR=”\$(II_SYSTEM)/ingres/lib/lp32/”<br />
<br />
Finally compile:<br />
<br />
cd ..<br />
make<br />
<br />
<b>Done</b><br />
<br />
That’s it. I’ve deliberately limited the content here to installing rather than using Playback, and further to installing specifically on i386/x86-64 RHEL5 - YMMV on other platforms.<br />
<br />
Actually I will mention just a couple of things. Firstly the locations the build process put the software in my case:<br />
<br />
<br />
./Preprocess/Preprocess/bin/Debug/Preprocess.exe<br />
(run with “mono &lt;path_to&gt;/Preprocess.exe”)<br />
./Playback/playback<br />
<br />
Then there’s a further environment setting (in addition to the mono-related additions to PATH and LD_LIBRARY_PATH listed in the Compile section above) which is needed to run the preprocessor:<br />
export MONO_PATH=&lt;path_to&gt;/Preprocess/Preprocess/lib<br />
<br />
Also, some info which, although relevant at time of writing, could very quickly become out of date:<br />
The output of trace point sc930 is updated as versions of Ingres move on. The version of playback I downloaded recognises sc930 output files up to version 7. The engineering build of Ingres 10.1/103 is the first to move to version 8 of sc930 output files.<br />
<br />
Hope this info is of some use to somebody somewhere. Please let me know of any inaccuracies or updates required…</div>

]]></content:encoded>
			<dc:creator>geraintjones</dc:creator>
			<dc:publisher>57763</dc:publisher>
			<guid isPermaLink="true">http://community.actian.com/forum/blogs/geraintjones/76-installing-ingres-dynamic-playback-rhel5-4.html</guid>
		</item>
	</channel>
</rss>

