<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hi Robert,<br>
<br>
I faced the same issues (I think) - if I remember correctly;<br>
<br>
I think I faked it,<br>
by installing Postgres 8.x (from the default repos)<br>
then getting 9.1 (for me) from postgres-repos<br>
<br>
and then (re-)moving/hiding the 8.4 binaries.<br>
Needed to take care of a bunch of Jars (9.x connectors etc)<br>
but that was it...<br>
<br>
If you want more details, <br>
I might be able to tell you on Monday...<br>
Best<br>
-Jonathan<br>
<br>
On 07/24/2014 04:38 PM, Boyd, Robert wrote:<br>
</div>
<blockquote cite="mid:0D5F32BB8C49D6438AF012955D0CBEF2B8B13957E7@CORP2K7MAIL.corp.peopleclick.com" type="cite">
<meta http-equiv="Context-Type" content="text/html;
        charset=Windows-1252">
<meta name="Generator" content="Microsoft Word 12 (filtered
        medium)">
<div class="WordSection1">
<p class="MsoNormal"><span>Bedankt  for the suggestion Andreas,</span></p>
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal"><span>It appears that someone previously – in 2012 logged a report about this very same problem with the installation procedure.</span></p>
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal"><span>The installation guide on the wiki states:  “</span><span>Spacewalk uses database server to store its primary data. It supports either PostgreSQL (version 8.4 and higher) or Oracle RDBMS (version 10g or higher).” 
</span><span>Unfortunately the rpm needs some help to differentiate when something higher than 8.4 is actually installed.   As far as I can tell from what I read in the response to the bug report, the problem is that the RPM is looking for 8.4 specific files
 and needs to be updated to include handling the changes implemented for 9 and above. 
</span><span></span></p>
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal"><span>Creating and managing RPMs is not in my current skillset – I would rather not spend my time learning how to do that when I won’t be doing that as a regular thing.  It looks like I’d have to find the source of the spacewalk rpm to
 discover exactly how it’s coded and how it’s specifying the postgresql dependencies.  Then I could put together a fakeout rpm as a companion to the postgresql9x rpms that would provide the missing metadata to fake out the spacewalk rpm.</span></p>
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal"><span>Seems like it would be a much easier effort for someone already well familiar with the spacewalk rpm construction to make the mods necessary to handle postgresql9x. 
</span></p>
<p class="MsoNormal"><span> </span></p>
<div>
<p class="MsoNormal"><b><span>Robert Boyd</span></b></p>
<p class="MsoNormal"><b><span>Sr. Systems Engineer </span></b></p>
<p class="MsoNormal"><b><span>PeopleFluent</span></b></p>
<p class="MsoNormal"><span>p. 919-645-2972 | c. 919-306-4681</span></p>
<p class="MsoNormal"><span>e. <b><a moz-do-not-send="true" href="mailto:robert.boyd@peoplefluent.com">Robert.Boyd@PeopleFluent.com</a></b></span><span></span></p>
</div>
<table class="MsoNormalTable">
<tbody>
<tr>
<td><br>
</td>
</tr>
<tr>
<td><br>
</td>
</tr>
<tr>
<td>
<p class="MsoNormal"><a moz-do-not-send="true" href="http://www.peoplefluent.com/"><span><img id="Picture_x0020_1" src="cid:part2.00020804.03000003@helmholtz-muenchen.de" alt="http://mktg.peoplefluent.com/rs/peopleclick/images/140410_PF4colorLOGOx150.png" height="62" width="150"></span></a><span></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span> </span></p>
<table class="MsoNormalTable">
<tbody>
<tr>
<td>
<p class="MsoNormal"><span><br>
Visit:</span><span> </span><span><a moz-do-not-send="true" href="http://www.peoplefluent.com/"><span>www.peoplefluent.com</span></a></span><span> </span><span>| Read:</span><span> </span><span><a moz-do-not-send="true" href="http://peoplefluent.com/resources/peoplefluent-blog"><span>Peoplefluent
 Blog</span></a></span><span> </span><span>| Follow:</span><span> </span><span><a moz-do-not-send="true" href="http://twitter.com/peoplefluent"><span>@peoplefluent</span></a></span><span> </span><span>| Download:</span><span> </span><span><a moz-do-not-send="true" href="http://itunes.apple.com/us/app/peoplefluent/id474251804?mt=8"><span>iPad
 App</span></a></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span> </span></p>
<p class="MsoNormal"><span> </span></p>
<div>
<div>
<p class="MsoNormal"><b><span>From:</span></b><span> <a class="moz-txt-link-abbreviated" href="mailto:spacewalk-list-bounces@redhat.com">
spacewalk-list-bounces@redhat.com</a> [<a class="moz-txt-link-freetext" href="mailto:spacewalk-list-bounces@redhat.com">mailto:spacewalk-list-bounces@redhat.com</a>]
<b>On Behalf Of </b>Andreas Dijkman<br>
<b>Sent:</b> Thursday, July 24, 2014 3:12 AM<br>
<b>To:</b> <a class="moz-txt-link-abbreviated" href="mailto:spacewalk-list@redhat.com">
spacewalk-list@redhat.com</a><br>
<b>Subject:</b> Re: [Spacewalk-list] upgrading postgres (8.4 > 9.x) on the spacewalk server ?</span></p>
</div>
</div>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Hi, </p>
<div>
<p class="MsoNormal"> </p>
</div>
<div>
<p class="MsoNormal">The RPM isn’t actually looking at the file but at the file specs of all available RPM’s. You need to install and rpm that provides the binary /usr/bin/psql in it’s metadata. You could build an metadata-only-rpm that depends on all the postgresql-9.x-stuff
 and provides the necessary files in it’s metadata and secretly creates symlinks underneath.</p>
</div>
<div>
<p class="MsoNormal"> </p>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span>Met vriendelijke groet,<br>
<br>
Andreas Dijkman<br>
</span><span>Oracle Technical Consultant<br>
Phone: +31(0)50-210 0132 | Mobile: +31(0)6-8115 2982</span><span></span></p>
</div>
<div>
<p class="MsoNormal"><span><a moz-do-not-send="true" href="http://www.cygnis.nl/">Cygnis</a> | Stationsweg 3B | 9726 AC Groningen</span><span></span></p>
</div>
<div>
<p class="MsoNormal"><span>Op maandag afwezig</span><span></span></p>
</div>
</div>
</div>
</div>
<p class="MsoNormal"> </p>
<div>
<div>
<p class="MsoNormal">On 23 Jul, 2014, at 23:42 , Boyd, Robert <<a moz-do-not-send="true" href="mailto:Robert.Boyd@peoplefluent.com">Robert.Boyd@peoplefluent.com</a>> wrote:</p>
</div>
<p class="MsoNormal"><br>
<br>
</p>
<p class="MsoNormal">I tried changing the link for /usr/bin/psql to directly link to the binary.  That didn't help.
<br>
<br>
I tried removing the link and copying the binary to /usr/bin/psql -- that didn't help either.
<br>
<br>
I take it this means that the error message I'm getting isn't telling me the truth about what the real error is.<br>
<br>
Robert Boyd<br>
Sr. Systems Engineer <br>
PeopleFluent<br>
p. 919-645-2972 | c. 919-306-4681<br>
e. <a moz-do-not-send="true" href="mailto:Robert.Boyd@PeopleFluent.com">Robert.Boyd@PeopleFluent.com</a><br>
<br>
-----Original Message-----<br>
From: Boyd, Robert <br>
Sent: Wednesday, July 23, 2014 5:33 PM<br>
To: '<a moz-do-not-send="true" href="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</a>'<br>
Subject: RE: [Spacewalk-list] upgrading postgres (8.4 > 9.x) on the spacewalk server ?<br>
<br>
I'm attempting an install of spacewalk 2.2 using postgresql-9.3.  <br>
<br>
I installed and manually configured postgresql.<br>
<br>
When I attempt to install spacewalk I get this error:<br>
<br>
 yum install spacewalk-postgresql<br>
<br>
 ... many dependencies resolved ... etc ...<br>
<br>
 Error: Package: spacewalk-postgresql-2.2.2-1.el6.noarch (spacewalk)<br>
          Requires: /usr/bin/psql<br>
<br>
However there is clearly something there:<br>
<br>
[root ~]# ll /usr/bin/psql<br>
lrwxrwxrwx. 1 root root 28 Jul 21 12:35 /usr/bin/psql -> /etc/alternatives/pgsql-psql
<br>
<br>
[root ~]# ll /etc/alternatives/pgsql-psql <br>
lrwxrwxrwx. 1 root root 23 Jul 21 12:35 /etc/alternatives/pgsql-psql -> /usr/pgsql-9.3/bin/psql
<br>
<br>
[root ~]# ll /usr/pgsql-9.3/bin/psql <br>
-rwxr-xr-x. 1 root root 447560 Mar 18 03:19 /usr/pgsql-9.3/bin/psql<br>
<br>
What is this package expecting to find there?  Is a symbolic link not good enough?  Can I fake it out by copying over the real binary or changing the link to point directly to the binary instead of an intermediate link?<br>
<br>
<br>
Robert Boyd<br>
Sr. Systems Engineer<br>
PeopleFluent<br>
p. 919-645-2972 | c. 919-306-4681<br>
e. <a moz-do-not-send="true" href="mailto:Robert.Boyd@PeopleFluent.com">Robert.Boyd@PeopleFluent.com</a><br>
<br>
_______________________________________________<br>
Spacewalk-list mailing list<br>
<a moz-do-not-send="true" href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a><br>
<a moz-do-not-send="true" href="https://www.redhat.com/mailman/listinfo/spacewalk-list">https://www.redhat.com/mailman/listinfo/spacewalk-list</a></p>
</div>
<p class="MsoNormal"> </p>
</div>
</div>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">-- 
Jonathan Hoser, M.Sc.
Institute of Bioinformatics and System Biology

WWW: <a class="moz-txt-link-freetext" href="http://mips.helmholtz-muenchen.de">http://mips.helmholtz-muenchen.de</a>

</pre>
<br>
<hr>
<font face="Arial" color="Black" size="1">Helmholtz Zentrum München<br>
Deutsches Forschungszentrum für Gesundheit und Umwelt (GmbH)<br>
Ingolstädter Landstr. 1<br>
85764 Neuherberg<br>
www.helmholtz-muenchen.de<br>
Aufsichtsratsvorsitzende: MinDir´in Bärbel Brumme-Bothe<br>
Geschäftsführer: Prof. Dr. Günther Wess, Dr. Nikolaus Blum, Dr. Alfons Enhsen<br>
Registergericht: Amtsgericht München HRB 6466<br>
USt-IdNr: DE 129521671<br>
</font>
</body>
</html>