Initial add of defaria.com
[clearscm.git] / defaria.com / blogs / Status / archives / 000655.html
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">
4 <head>
5    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6    <meta name="generator" content="Movable Type 5.2.3" />
7
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" />
11
12    <title>Status for Andrew DeFaria: PHP Web/Clearquest install/cq_setup.csh</title>
13
14    <link rel="start" href="http://defaria.com/blogs/Status/" title="Home" />
15    <link rel="prev" href="http://defaria.com/blogs/Status/archives/000654.html" title="Automating Clearcase Installs" />
16    <link rel="next" href="http://defaria.com/blogs/Status/archives/000656.html" title="Clearquest on Linux" />
17
18    <!--
19 <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
20          xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/"
21          xmlns:dc="http://purl.org/dc/elements/1.1/">
22 <rdf:Description
23     rdf:about="http://defaria.com/blogs/Status/archives/000655.html"
24     trackback:ping="http://defaria.com/mt/mt-tb.cgi/42"
25     dc:title="PHP Web/Clearquest install/cq_setup.csh"
26     dc:identifier="http://defaria.com/blogs/Status/archives/000655.html"
27     dc:subject="General Dynamics"
28     dc:description=" Finished recoding RAN web using PHP, better HTML coding and CSS Documented new PHP Web Copied large CC &amp; CQ install image over to RAN. Tried running Clearquest. Was receiving error Learned that we have a copy of cq_setup.csh..."
29     dc:creator=""
30     dc:date="2007-07-25T18:46:41-06:00" />
31 </rdf:RDF>
32 -->
33
34
35    
36
37    <script type="text/javascript" src="http://defaria.com/blogs/Status/mt-site.js"></script>
38 </head>
39 <body class="layout-one-column" onload="individualArchivesOnLoad(commenter_name)">
40    <div id="container">
41       <div id="container-inner" class="pkg">
42
43          <div id="banner">
44             <div id="banner-inner" class="pkg">
45                <h1 id="banner-header"><a href="http://defaria.com/blogs/Status/" accesskey="1">Status for Andrew DeFaria</a></h1>
46                <h2 id="banner-description">Searchable status reports and work log</h2>
47             </div>
48          </div>
49
50          <div id="pagebody">
51             <div id="pagebody-inner" class="pkg">
52                <div id="alpha">
53                   <div id="alpha-inner" class="pkg">
54
55                      <p class="content-nav">
56                         <a href="http://defaria.com/blogs/Status/archives/000654.html">&laquo; Automating Clearcase Installs</a> |
57                         <a href="http://defaria.com/blogs/Status/">Main</a>
58                         | <a href="http://defaria.com/blogs/Status/archives/000656.html">Clearquest on Linux &raquo;</a>
59                      </p>
60
61                      <a id="a000655"></a>
62                      <div class="entry" id="entry-655">
63                         <h3 class="entry-header">PHP Web/Clearquest install/cq_setup.csh</h3>
64                         <div class="entry-content">
65                            <div class="entry-body">
66                               <ul>
67   <li>Finished recoding RAN web using PHP, better HTML coding and CSS</li>
68
69   <li>Documented new PHP Web</li>
70
71   <li>Copied large CC & CQ install image over to RAN. Tried running Clearquest. Was receiving error</li>
72
73   <li>Learned that we have a copy of cq_setup.csh that is sourced by the csh startup scripts. But it uses a Sun version. This obviously causes problems for Linux machines</li>
74 </ul>
75                            </div>
76                            <div id="more" class="entry-more">
77                               <p>I downloaded the Rational 2003.06.00 release tarball that Carlos provided me and installed it on ranlin02. I have the following problem when trying to run Clearquest I get the following error:</p>
78
79 <div class=code><pre>
80 <font  color="#3333ff"><b>Ranlin02:</b></font><u>/opt/rational/clearquest/bin/clearquest</u>
81 /opt/rational/clearquest/rhat_x86/bin/clearquest_main: error while loading shared libraries: libXmu.so: cannot open shared object file: No such file or directory
82 </pre></div>
83
84 <p>Looking at the <a
85  href="http://www-1.ibm.com/support/docview.wss?uid=swg21202987&amp;aid=1">ClearQuest
86 and Clearquest MultiSite Release Notes</a> I find:</p>
87
88 <blockquote>
89   <h3>Linux symbolic links to Motif libraries</h3>
90
91   <p>ClearQuest uses the Motif libraries native to the machine, and these libraries need to include the proper symbolic links. If the symbolic links are not established, the following error occurs when invoking</p>
92
93   <tt>ClearQuest:/opt/rational/clearquest/rhat_x86/bin/clearquest_main:
94 error while loading shared libraries: libXmu.so: cannot open shared
95 object file: No such file or directory</tt> <br>
96
97   <p>The error complains about the first of several libraries it cannot find. To insure that the symlinks are created, it is necessary that the</p>
98
99   <tt>XFree86-devel-*</tt><br>
100
101   <p>package be installed when installing the OS.</p>
102 </blockquote>
103
104 <p>And, of course:</p>
105
106 <div class=code><pre>
107 <font color="#3333ff"><b>Ranlin02:</b></font><u>rpm -qa | grep XFree86-devel</u>
108 <font color="#3333ff"><b>Ranlin02</b></font>:
109 </pre></div>
110
111 <p>So can we get XFree86-devel-* installed?</p>
112
113 <p>On a different but related note, we generally support only Sun and only csh (and it's derivatives - tcsh). We have a serious of csh style start up scripts (which I've largely replicated/converted for bash...) one of which sources /prj/muosran/config/cq_setup.csh. That is merely a copy of a /opt/rational/clearquest/bin/cq_setup.csh. Contained therein is a reference to sun5 which is bad because this source of /prj/muosran/config/cq_setup.csh is global and thus sourced by users of Linux machines. Naturally Linux user will not be finding any sun5 executables nor executing them.</p>
114
115 <p>I've made a modification to /proj/muosran/config/cq_setup.csh as such:</p>
116
117 <div class=code><pre>
118 #!/bin/csh -f<br><br>#  Andrew@DeFaria.com 07-25-2007: By specifying sun5 we tie
119 # ourselves to an architecture. There is no need to do this.
120 # Call the clearquest in /opt/rational/clearquest/bin and let
121 # it figure out our architecture.
122
123 #eval `/opt/rational/clearquest/sun5/bin/clearquest -dumpcsh`<br>eval `/opt/rational/clearquest/bin/clearquest -dumpcsh`
124
125 set var = $status
126 if ($var != 0) then
127     unset var
128     exit(2)
129 endif
130 unset var
131
132 #echo "You can now run 'clearquest' to start Rational ClearQuest."
133 </pre></div>
134
135 <p>Still all of this seem pretty arbitrary. What is the above script doing but checking that clearquest can simply be run? Why set an environment variable (var) only to test it and then ultimately unset it?!? Seems like really odd and unnecessary code from IBM/Rational.</p>
136                            </div>
137                         </div>
138                         <p class="entry-footer">
139                            <span class="post-footers">Posted by  on July 25, 2007  6:46 PM</span> <span class="separator">|</span> <a class="permalink" href="http://defaria.com/blogs/Status/archives/000655.html">Permalink</a>
140                         </p>
141                      </div>
142
143                      
144                      <div class="trackbacks">
145                         <h3 id="trackback" class="trackbacks-header">TrackBack</h3>
146                         <div id="trackbacks-info">
147                            <p>TrackBack URL for this entry:<br />http://defaria.com/mt/mt-tb.cgi/42</p>
148                         </div>
149                         <div class="trackbacks-content">
150                            
151                         </div>
152                      </div>
153                      
154
155                      
156                   </div>
157                </div>
158             </div>
159          </div>
160       </div>
161    </div>
162 </body>
163 </html>