1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" id="sixapart-standard">
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6 <meta name="generator" content="Movable Type 5.2.3" />
8 <link rel="stylesheet" href="http://defaria.com/blogs/Status/styles-site.css" type="text/css" />
9 <link rel="alternate" type="application/atom+xml" title="Atom" href="http://defaria.com/blogs/Status/atom.xml" />
10 <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="http://defaria.com/blogs/Status/index.xml"$>" />
12 <title>Status for Andrew DeFaria: March 2007 Archives</title>
14 <link rel="start" href="http://defaria.com/blogs/Status/" title="Home" />
15 <link rel="prev" href="http://defaria.com/blogs/Status/archives/2007_01.html" title="January 2007" />
16 <link rel="next" href="http://defaria.com/blogs/Status/archives/2007_04.html" title="April 2007" />
18 <body class="layout-one-column">
20 <div id="container-inner" class="pkg">
23 <div id="banner-inner" class="pkg">
24 <h1 id="banner-header"><a href="http://defaria.com/blogs/Status/" accesskey="1">Status for Andrew DeFaria</a></h1>
25 <h2 id="banner-description">Searchable status reports and work log</h2>
30 <div id="pagebody-inner" class="pkg">
32 <div id="alpha-inner" class="pkg">
34 <p class="content-nav">
35 <a href="http://defaria.com/blogs/Status/archives/2007_01.html">« January 2007</a> |
36 <a href="http://defaria.com/blogs/Status/">Main</a>
37 | <a href="http://defaria.com/blogs/Status/archives/2007_04.html">April 2007 »</a>
42 <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
43 xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
44 xmlns:dc="http://purl.org/dc/elements/1.1/">
46 rdf:about="http://defaria.com/blogs/Status/archives/2007_03.html#entry-000628"
47 trackback:ping="http://defaria.com/mt/mt-tb.cgi/17"
48 dc:title="DLPActivity.pl/YELL"
49 dc:identifier="http://defaria.com/blogs/Status/archives/2007_03.html#entry-000628"
50 dc:subject="Texas Instruments"
51 dc:description=" Rewrote DLPAcctivity.pl, a Clearquest reporting tool that emails DLP engineers about Clearquest defects Look into YELL scripts..."
53 dc:date="2007-03-30T17:07:21-06:00" />
58 <h2 class="date-header">March 30, 2007</h2>
60 <div class="entry" id="entry-628">
61 <h3 class="entry-header">DLPActivity.pl/YELL</h3>
62 <div class="entry-content">
63 <div class="entry-body">
65 <li>Rewrote DLPAcctivity.pl, a Clearquest reporting tool that emails DLP engineers about Clearquest defects</li>
67 <li>Look into YELL scripts</li>
70 <p class="entry-footer">
71 <span class="post-footers">Posted by at 5:07 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000628.html">Permalink</a>
73 | <a href="http://defaria.com/blogs/Status/archives/000628.html#trackback">TrackBacks (0)</a>
80 <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
81 xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
82 xmlns:dc="http://purl.org/dc/elements/1.1/">
84 rdf:about="http://defaria.com/blogs/Status/archives/2007_03.html#entry-000627"
85 trackback:ping="http://defaria.com/mt/mt-tb.cgi/16"
86 dc:title="mkview_linked/GPDB Login"
87 dc:identifier="http://defaria.com/blogs/Status/archives/2007_03.html#entry-000627"
88 dc:subject="Texas Instruments"
89 dc:description=" Finished work on mkview_linked for MySQL databasse Implemented login for GPDB with cookies..."
91 dc:date="2007-03-28T17:03:40-06:00" />
96 <h2 class="date-header">March 28, 2007</h2>
98 <div class="entry" id="entry-627">
99 <h3 class="entry-header">mkview_linked/GPDB Login</h3>
100 <div class="entry-content">
101 <div class="entry-body">
103 <li>Finished work on mkview_linked for MySQL databasse</li>
105 <li>Implemented login for GPDB with cookies</li>
108 <p class="entry-footer">
109 <span class="post-footers">Posted by at 5:03 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000627.html">Permalink</a>
111 | <a href="http://defaria.com/blogs/Status/archives/000627.html#trackback">TrackBacks (0)</a>
118 <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
119 xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
120 xmlns:dc="http://purl.org/dc/elements/1.1/">
122 rdf:about="http://defaria.com/blogs/Status/archives/2007_03.html#entry-000626"
123 trackback:ping="http://defaria.com/mt/mt-tb.cgi/15"
124 dc:title="GPDB Login"
125 dc:identifier="http://defaria.com/blogs/Status/archives/2007_03.html#entry-000626"
127 dc:description=" Started implementing a login facility for GPDB..."
129 dc:date="2007-03-26T16:57:06-06:00" />
134 <h2 class="date-header">March 26, 2007</h2>
136 <div class="entry" id="entry-626">
137 <h3 class="entry-header">GPDB Login</h3>
138 <div class="entry-content">
139 <div class="entry-body">
141 <li>Started implementing a login facility for GPDB</li>
144 <p>Just about the time we were getting the <em>Single Signon</em> working I realized that we also have command line or a script based API in which we allow others to call GPDB functionality. Part of that functionality is logging in with gpdb_login. Well since we didn't come through Single Signon nro a web page how do we get the authorization to log into the database? Answer is we don't. Single Signon is only good for web apps where the <b>only</b> way into the application is through the web.</p>
146 <p>The security guys did mention something about a command line alternative but it didn't seem like it would fit the bill. I believe that it only allows you to authenticate as your currently logged in user. What if, for example, user A wished to connect to GPDB as user B and knows user B's username and password? What when a script wished to login as an admin on behalf of all users. These questions need to be answered.</p>
148 <p class="entry-footer">
149 <span class="post-footers">Posted by at 4:57 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000626.html">Permalink</a>
151 | <a href="http://defaria.com/blogs/Status/archives/000626.html#trackback">TrackBacks (0)</a>
158 <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
159 xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
160 xmlns:dc="http://purl.org/dc/elements/1.1/">
162 rdf:about="http://defaria.com/blogs/Status/archives/2007_03.html#entry-000625"
163 trackback:ping="http://defaria.com/mt/mt-tb.cgi/14"
164 dc:title="GPDB Web Update/Oracle testing"
165 dc:identifier="http://defaria.com/blogs/Status/archives/2007_03.html#entry-000625"
166 dc:subject="Texas Instruments"
167 dc:description=" Added menus to GPDB web Tested and documented access of Oracle databases, such as GPDB, using standard Perl and standard Oracle libraries from various architectures..."
169 dc:date="2007-03-21T16:52:37-06:00" />
174 <h2 class="date-header">March 21, 2007</h2>
176 <div class="entry" id="entry-625">
177 <h3 class="entry-header">GPDB Web Update/Oracle testing</h3>
178 <div class="entry-content">
179 <div class="entry-body">
181 <li>Added menus to GPDB web</li>
183 <li>Tested and documented access of Oracle databases, such as GPDB, using standard Perl and standard Oracle libraries from various architectures</li>
186 <p>Joe Ramey had worked on getting the Oracle Linux client API library to work with Perl. I am trying to validate that this works on all supported architectures where <i>all supported architectures</i> is considered the subset of:</p>
188 <li>Solaris (e.g. Stashu)</li>
189 <li>Linux 32-bit (e.g. Fad01)</li>
190 <li>Linux 64-bit AMD Opteron processor (e.g. DrTeeth)</li>
191 <li>Linux 64-bit Intel processor (e.g. Fad11)</li>
194 <h3>How to properly code Perl to access an Oracle DB</h3>
196 <p>Normal access to SQL databases in Perl usually consists of use'ing two different Perl modules. First a DBI.pm module which is the<i> <b>D</b>ata<b>B</b>ase <b>I</b>ndependent</i> interface and the DBD or <b><i>D</i></b><i>ata<b>B</b>ase <b>D</b>river</i> module for the particular SQL database involved. We are interested in Oracle here but others include mSQL, MySQL, etc.</p>
198 <p>Couple this with the fact that we wish to use the standard Perl (e.g. /apps/perl/5.8.3/bin/perl) and standard Perl modules (/apps/perl/modules-<<i>datecode</i>> where <i>datecode</i> is some combination of a year/month date code whose apparent LCD seems to be modules-0412).</p>
200 <p>So first our Perl script should start with:</p>
202 <div class=code><pre>
203 <font color="#3333ff">#!/apps/perl/5.8.3/bin/perl</font>
204 <font color="#ff0000">use strict</font>;
205 <font color="#ff0000">use warnings</font>;
207 <font color="#3333ff"># Standard CDOE modules (Modules of the month!) - need this to pick up DBI.pm</font>
208 <font color="#ff0000">use lib</font> "<font color="#009900">/apps/perl/modules-0412/lib</font>";
211 <p>So as the comment indicates we are picking up the DBI.pm module from here. Next, normally, we'd simply include the lib path for the Oracle DBD.pm (or in the special case of Oracle, the Oracle.pm file) as well as the supporting shared library Oracle.so (which is architecturally dependent) by coding the following:</p>
213 <div class=code><pre>
214 <font color="#3333ff"># Perl/Oracle libraries</font>
215 <font color="#ff0000">use lib</font> "<font color="#009900">/apps/oracle/perl/10.2.0.1.0/lib</font>";
218 <p>However, since Linux client support is not included in /apps/oracle/perl/10.2.0.1.0/lib (yet) we need to pick up Joe's stuff:</p>
220 <div class=code><pre>
221 <font color="#3333ff"># Linux API is in Ramey's home dir...</font>
222 <font color="#ff0000">use lib</font> "<font color="#009900">/home/ramey/oracle/perl/10.2.0.1.0/lib</font>";
225 <p>The next excerpt from my code, shown in it's entirety later, shows a lib path I used to use that allows Solaris clients to work correctly, however we wish to move away from this special cased library thus it's commented out here:</p>
227 <div class=code><pre>
228 <font color="#3333ff"># This is a non standard Oracle</font>
229 <font color="#3333ff">#use lib "/apps/perl/5.8.0/lib/perl5/site_perl/5.8.0";</font>
232 <p>As the full code listing that follows shows I then use my current development libraries and attempt to log into the development version of GPDB, and Oracle database, and retrieve and display some rudimentary data:</p>
234 <p><font color="#999999">Entire code listing of ~x0062320/testgpdb.pl</font></p>
236 <div class=code><pre>
237 <font color="#3333ff">#!/apps/perl/5.8.3/bin/perl</font>
238 <font color="#ff0000">use strict</font>;
239 <font color="#ff0000">use warnings</font>;
241 <font color="#3333ff"># Standard CDOE modules (Modules of the month!) - need this to pick up DBI.pm</font>
242 <font color="#ff0000">use lib</font> "<font color="#009900">/apps/perl/modules-0412/lib</font>";
244 <font color="#3333ff"># Perl/Oracle libraries</font>
245 <font color="#ff0000">use lib</font> "<font color="#009900">/apps/oracle/perl/10.2.0.1.0/lib</font>";
247 <font color="#3333ff"># Linux API is in Ramey's home dir...</font>
248 <font color="#ff0000">use lib</font> "<font color="#009900">/home/ramey/oracle/perl/10.2.0.1.0/lib</font>";
250 <font color="#3333ff"># This is a non standard Oracle</font>
251 <font color="#3333ff">#use lib "/apps/perl/5.8.0/lib/perl5/site_perl/5.8.0";
253 # Current development GPDB modules</font>
254 <font color="#ff0000">use lib</font> "<font color="#009900">/web/gpdb/cgi-bin</font>";
256 <font color="#ff0000">use GPDB::gpdb</font>;
258 <font color="#3333ff"># Log into GPDB - read only</font>
259 gpdb_login (<font color="#33cc00">undef</font>, <font color="#33cc00">undef</font>, "<font color="#009900">OracleDevelopment</font>");
261 <font color="#3333ff"># Get a project</font>
262 <font color="#ff0000">my</font> <font color="#3333ff"><b>@projects</b></font> = gpdb_getProject ("<font color="#009900">uma</font>");
264 <font color="#3333ff"># Play with it a little bit...</font>
265 <font color="#ff0000">my</font> <i><font color="#ff0000">%project</font></i> = %{<font color="#3333ff"><b>$projects</b></font> [0][0]};
267 <font color="#33cc00">print</font> "<font color="#009900">Project: ${project {PROJECT}{NAME}}\n</font>";
268 <font color="#33cc00">print</font> "<font color="#009900">Site: ${project {PROJECT}{SITE_NAME}}\n</font>";
270 <font color="#33cc00">print</font> "<font color="#009900">Vobs:\n</font>";
272 <font color="#ff0000">foreach</font> (@{<font color="#ff0000">$project</font> {CLEARCASE}}) {
273 <font color="#ff0000">my</font> <i><font color="#ff0000">%cc</font></i> = %{$_};
275 <font color="#33cc00">print</font> "<font color="#009900">\t${cc {VOB_TAG}}\n</font>";
276 } <font color="#3333ff"># foreach</font>
278 <font color="#33cc00">print</font> "<font color="#009900">done\n</font>";
283 <p>Here's the results running on the target architectures:</p>
285 <div class=code><pre>
286 $ ssh stashu testgpdb.pl
287 DBI connect('host=dflorad01.itg.ti.com;sid=flddsync;port=1521','cm_gpdb_readonly',...) failed: ERROR OCIEnvNlsCreate. Check ORACLE_HOME env var, NLS settings, permissions, etc. at /web/gpdb/cgi-bin/GPDB/DBHelper.pm line 136
288 Could not connect to database. Check $ORACLE_HOME. at /web/gpdb/cgi-bin/GPDB/primitive.pm line 81
289 $ ssh fad01 testgpdb.pl
298 $ ssh drteeth testgpdb.pl
307 $ ssh fad11 testgpdb.pl
309 '/home/ramey/oracle/perl/10.2.0.1.0/lib/i686-linux-thread-multi/auto/DBI/DBI.so' for module DBI: /lib/libc.so.6: version `GLIBC_2.3' not found (required by
310 /home/ramey/oracle/perl/10.2.0.1.0/lib/i686-linux-thread-multi/auto/DBI/DBI.so) at /apps/perl/5.8.3/lib/5.8.3/i686-linux-thread-multi/DynaLoader.pm line 229.
311 at /home/ramey/oracle/perl/10.2.0.1.0/lib/i686-linux-thread-multi/DBI.pm line 259
312 BEGIN failed--compilation aborted at /home/ramey/oracle/perl/10.2.0.1.0/lib/i686-linux-thread-multi/DBI.pm line 259.
313 Compilation failed in require at /web/gpdb/cgi-bin/GPDB/primitive.pm line 24.
314 BEGIN failed--compilation aborted at /web/gpdb/cgi-bin/GPDB/primitive.pm line 24.
315 Compilation failed in require at /web/gpdb/cgi-bin/GPDB/gpdb.pm line 38.
316 BEGIN failed--compilation aborted at /web/gpdb/cgi-bin/GPDB/gpdb.pm line 38.
317 Compilation failed in require at ./testgpdb.pl line 20.
318 BEGIN failed--compilation aborted at ./testgpdb.pl line 20.
321 <p>So as we can see this is <b>not</b> working for Solaris or Linux 64-bit Intel.</p>
323 <p class="entry-footer">
324 <span class="post-footers">Posted by at 4:52 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000625.html">Permalink</a>
326 | <a href="http://defaria.com/blogs/Status/archives/000625.html#trackback">TrackBacks (0)</a>
333 <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
334 xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
335 xmlns:dc="http://purl.org/dc/elements/1.1/">
337 rdf:about="http://defaria.com/blogs/Status/archives/2007_03.html#entry-000624"
338 trackback:ping="http://defaria.com/mt/mt-tb.cgi/13"
339 dc:title="MySQL Client Libraries"
340 dc:identifier="http://defaria.com/blogs/Status/archives/2007_03.html#entry-000624"
341 dc:subject="Texas Instruments"
342 dc:description=" Worked on solutions for MySQL client library problem..."
344 dc:date="2007-03-16T17:32:56-06:00" />
349 <h2 class="date-header">March 16, 2007</h2>
351 <div class="entry" id="entry-624">
352 <h3 class="entry-header">MySQL Client Libraries</h3>
353 <div class="entry-content">
354 <div class="entry-body">
356 <li>Worked on solutions for MySQL client library problem</li>
359 Andrew DeFaria wrote:
360 <blockquote type="cite"> Chris Davey
362 <blockquote type="cite">
365 <p>have update the /apps/cmpackages as per the web page ane try the new version of mkview_linked but faile to run:</p>
369 <div class=code><pre>
370 warmflash,a0741187> ./mkview_linked
371 install_driver(mysql) failed: Can't load
372 '/apps/cmpackages/perl/lib/site_perl/5.8.0/sun4-solaris-thread-multi/auto/DBD/mysql/mysql.so'
373 for module DBD::mysql: ld.so.1: mkview_linked: fatal:
374 libmysqlclient.so.12: open failed: No such file or directory at
375 /apps/cmpackages/perl/lib/5.8.0/sun4-solaris-thread-multi/DynaLoader.pm
378 Compilation failed in require at (eval 1) line 3.
379 Perhaps a required shared library or dll isn't installed where expected
380 at ./mkview_linked line 54
382 warmflash,a0741187> ls -l
383 /apps/cmpackages/perl/lib/site_perl/5.8.0/sun4-solaris-thread-multi/auto/DBD/mysql
385 -r--r--r-- 1 amemgr ameadm 0 Mar 16 09:05 mysql.bs
386 -r-xr-xr-x 1 amemgr ameadm 360080 Mar 16 09:05 mysql.so*
391 <div class=code><pre>
392 ace.tiuk.ti.com,a0741187> ./mkview_linked
393 install_driver(mysql) failed: Can't load
394 '/apps/cmpackages/perl/lib/site_perl/5.8.0/i686-linux-thread-multi/auto/DBD/mysql/mysql.so'
395 for module DBD::mysql: libmysqlclient.so.12: cannot open shared object
396 file: No such file or directory at
397 /apps/cmpackages/perl/lib/5.8.0/i686-linux-thread-multi/DynaLoader.pm
400 Compilation failed in require at (eval 1) line 3.
401 Perhaps a required shared library or dll isn't installed where expected
402 at ./mkview_linked line 54
403 ace.tiuk.ti.com,a0741187> ls -l
404 /apps/cmpackages/perl/lib/site_perl/5.8.0/sun4-solaris-thread-multi/auto/DBD/mysql
406 /apps/cmpackages/perl/lib/site_perl/5.8.0/sun4-solaris-thread-multi/auto/DBD/mysql:
407 No such file or directory
411 <p>The problem seems to be that you lack /apps/mysql/<version> which is what we used to build the DBD::mysql package. We are working on alternate solutions. Meantime could you try the following:</p>
414 <li>mkdir /apps/mysql</li>
415 <li>On Solaris (warmflash): rsync -rlz
416 stashu.dal.design.ti.com:/apps/mysql/4.0.16 /apps/mysql</li>
417 <li>On Linux (ace): rsync -rlz
418 drteeth.dal.design.ti.com:/apps/mysql/4.0.17 /app/mysql</li>
421 <p>Try mkview_linked. Let us know.</p>
425 <h1>Meantime back at the lab...</h1>
427 <h2>Short version:</h2>
429 <p>Nix the rsyncing of /apps/mysql and redo the rsync of /apps/cmpackages. We're put a copy of mysql under /apps/cmpackages. After refreshing your /apps/cmpackages area you should see an /apps/cmpackages/mysql directory. Then test mkview_linked again.</p>
431 <h2>Long version (AKA the gory details...)</h2>
433 <p>In order to get mkview_linked to use DBD::mysql, the Perl package of mysql must be compiled and installed. Perl packages often glue some subsystem's API (in this case MySQL), normally written in C or something like that to a Perl package (i.e. a .pm file). So on the one
434 end we have architecturally dependent code (usually a .a or .so library) and on the other we have (hopefully) architecturally neutral and interpreted Perl code (the .pm module). Therefore the process usually involves a makefile, execution of gcc to compile the <i>glue code</i> between the Perl and the subsystem's API as well as installing into the proper place, all of these files.</p>
436 <p>When Perl then calls the module DynaLoader.pm gets involved to load the appropriate architecturally dependent libraries so that calls to the Perl subroutines flow through the glue code and the appropriate API is called.</p>
438 <p>Since architecturally dependent code is involved we need to build this for the different architectures that we support. Further, MySQL in particular, has it's own library, libmysqlclient.a, which contains the API itself. So the glue code (mysql.so) needs to locate and load the appropriate libmysqlclient.a before it can successfully call an API. Finally there are issues of the version number of the, in this case, client software and the server software. Suffice to say, this is not always easy stuff!</p>
440 <p>Oh and we need mention that we are also talking about a large corporation here with various sites and the like; in most cases MySQL's client libraries will <b>not</b> be available locally nor of the right version - IOW we cannot trust that the MySQL client libraries will be local.</p>
442 <p>Oh and did I mention that mysql is not officially supported by TI...</p>
444 <p>We had hoped that /apps/mysql/<version>, while not officially supported, would be widely available but on our first guinea pi... ah... test subject, TI UK, we found that not to be the case. It looked like we had two ways to go: either 1) copy the /apps/mysql/<version> over to the remote sites or 2) include the /apps/mysql/<version> trees under /apps/cmpackages as our own mini distribution. I've implemented the latter. Now refreshing your /apps/cmpackages tree will carry along the necessary MySQL client libraries necessary to support mkview_linked and friends in most situations.</p>
446 <p class="entry-footer">
447 <span class="post-footers">Posted by at 5:32 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000624.html">Permalink</a>
449 | <a href="http://defaria.com/blogs/Status/archives/000624.html#trackback">TrackBacks (0)</a>
456 <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
457 xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
458 xmlns:dc="http://purl.org/dc/elements/1.1/">
460 rdf:about="http://defaria.com/blogs/Status/archives/2007_03.html#entry-000623"
461 trackback:ping="http://defaria.com/mt/mt-tb.cgi/12"
462 dc:title="Remote sites/mkview"
463 dc:identifier="http://defaria.com/blogs/Status/archives/2007_03.html#entry-000623"
464 dc:subject="Texas Instruments"
465 dc:description=" Gained access to a few new remote sites. Updated GPDB. Alas there's no DesignSync info at these sites and none of the vobs have vobstorage paths that indicate a project! Got access to cmmgr but was unable to publish..."
467 dc:date="2007-03-13T17:26:14-06:00" />
472 <h2 class="date-header">March 13, 2007</h2>
474 <div class="entry" id="entry-623">
475 <h3 class="entry-header">Remote sites/mkview</h3>
476 <div class="entry-content">
477 <div class="entry-body">
479 <li>Gained access to a few new remote sites. Updated GPDB. Alas there's no DesignSync info at these sites and none of the vobs have vobstorage paths that indicate a project!</li>
481 <li>Got access to cmmgr but was unable to publish new mysql from all architectures</li>
483 <li>Started incorporating the UK changes into mkview. Need to replicate these to mkview_linked (?)</li>
486 <p class="entry-footer">
487 <span class="post-footers">Posted by at 5:26 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000623.html">Permalink</a>
489 | <a href="http://defaria.com/blogs/Status/archives/000623.html#trackback">TrackBacks (0)</a>
496 <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
497 xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
498 xmlns:dc="http://purl.org/dc/elements/1.1/">
500 rdf:about="http://defaria.com/blogs/Status/archives/2007_03.html#entry-000622"
501 trackback:ping="http://defaria.com/mt/mt-tb.cgi/11"
502 dc:title="Clearcase License Graphs"
503 dc:identifier="http://defaria.com/blogs/Status/archives/2007_03.html#entry-000622"
504 dc:subject="Texas Instruments"
505 dc:description=" Worked on Clearcase License Graphs web page..."
507 dc:date="2007-03-08T18:52:25-06:00" />
512 <h2 class="date-header">March 8, 2007</h2>
514 <div class="entry" id="entry-622">
515 <h3 class="entry-header">Clearcase License Graphs</h3>
516 <div class="entry-content">
517 <div class="entry-body">
519 <li>Worked on Clearcase License Graphs web page</lI>
522 <p>Seems this set of scripts didn't like the additional of the Make licensing because Make licensing often had 0 usage. The 0 was being carried forward and used as a denominator for some divisions causing divide by zero errors. I fixed up these errors which then caused it to loop indefinitely. Seems a for loop didn't properly anticipate having a usage of 0. Fixed</p>
524 <p class="entry-footer">
525 <span class="post-footers">Posted by at 6:52 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000622.html">Permalink</a>
527 | <a href="http://defaria.com/blogs/Status/archives/000622.html#trackback">TrackBacks (0)</a>
534 <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
535 xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
536 xmlns:dc="http://purl.org/dc/elements/1.1/">
538 rdf:about="http://defaria.com/blogs/Status/archives/2007_03.html#entry-000621"
539 trackback:ping="http://defaria.com/mt/mt-tb.cgi/10"
540 dc:title="Building DBD::MySQL"
541 dc:identifier="http://defaria.com/blogs/Status/archives/2007_03.html#entry-000621"
542 dc:subject="Texas Instruments"
543 dc:description=" Built DBD::MySQL for Solaris Having problems building DBD::MySQL for Linux..."
545 dc:date="2007-03-07T17:44:17-06:00" />
550 <h2 class="date-header">March 7, 2007</h2>
552 <div class="entry" id="entry-621">
553 <h3 class="entry-header">Building DBD::MySQL</h3>
554 <div class="entry-content">
555 <div class="entry-body">
557 <li>Built DBD::MySQL for Solaris</li>
559 <li>Having problems building DBD::MySQL for Linux</li>
563 <h2>How to build DBD::MySQL</h2>
565 <p>After downloading DBD::mysql from
566 <a href="http://search.cpan.org/~capttofu/DBD-mysql-4.003/lib/DBD/mysql.pm">http://search.cpan.org/~capttofu/DBD-mysql-4.003/lib/DBD/mysql.pm</a> I encountered some problems. First one needs to use the appropriate perl, one that has a compatible DBI module already. I found this in /app/cmpackages/perl/bin/perl. The more standard perl, /apps/perl/5.8.3/bin/perl seems to have a newer DBI module that is not compatible with the DBD::mysql that I downloaded.</p>
568 <p>Then one needs to give the proper parameters to generate the Makefile:</p>
570 <div class=code><pre>
571 $ export PATH=$PATH:/apps/mysql/4.0.16/bin
572 $ /apps/cmpackages/perl/bin/perl Makefile.PL \
573 > --libs="-L/apps/mysql/4.0.16/lib/mysql -lmysqlclient -lz" \
574 > --cflags=-I/apps/mysql/4.0.16/include/mysql \
575 > --testhost=mysql01.dal.design.ti.com \ <font
576 color="#ff0000"><i>These will not always be the same</i></font>
577 > --testuser=ccprojects \ <font color="#ff0000"><i>This will change</i></font>
578 > --testpassword=ccpr0jects <font color="#ff0000"><i>This will change (note the 0 not O)</i></font>
581 <p>Note that we explicitly use /apps/cmpackages/perl/bin/perl here. I would rather use /apps/perl/5.8.3/bin/perl but it's DBI appears to be too new for this version of DBD::mysql (!).</p>
583 <p>This will produce a Makefile which you then do:</p>
585 <div class=code><pre>
590 <p>Alas, normally one would do a make install but that would attempt to install into /usr/local/perl, not something we wish to do. And there doesn't appear to be a way to pack into Makefile.PL where you want to eventually install this module when make install is run, so we need to actually modify the Makefile itself.</p>
592 <p>Turns out that perl Makefile.PL <<i>options</i>> specifies which perl to use thus the following appears in the generated Makefile:</p>
594 <div class=code><pre>
595 INSTALLPRIVLIB = /apps/cmpackages/perl/lib/5.8.0
596 INSTALLSITELIB = /apps/cmpackages/perl/lib/site_perl/5.8.0
598 INSTALLARCHLIB = /apps/cmpackages/perl/lib/5.8.0/sun4-solaris-thread-multi
599 INSTALLSITEARCH = /apps/cmpackages/perl/lib/site_perl/5.8.0/sun4-solaris-thread-multi
601 INSTALLBIN = /apps/cmpackages/perl/bin
602 INSTALLSITEBIN = /apps/cmpackages/perl/bin
604 INSTALLSCRIPT = /apps/cmpackages/perl/bin
607 <p>Thus this means a make install will install the module into whichever Perl installation we specified in the perl Makefile.PL <<i>options</i>>! Alas we cannot write to those areas yet...</p>
609 <p class="entry-footer">
610 <span class="post-footers">Posted by at 5:44 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000621.html">Permalink</a>
612 | <a href="http://defaria.com/blogs/Status/archives/000621.html#trackback">TrackBacks (0)</a>