<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Steve, Mani:<br><br>I think its a feature request, not a bug.<br>I installed in a different partition the OS, and installed postgres 9.1<br>and I could install pgrouting on 9.1<br><br>So, it installs on 9.4, and 9.1 as long as they are not under the same OS.<br><br>While the feature of "supporting multiple postgres versions on the same OS" is not implemented, a work around could be to migrate your databases from 9.1, 9.2 and 9.3 to 9.4. <br><br>btw. issue 109 was closed by Steve and with a comment of will not fix.<br><br><div><hr id="stopSpelling">Date: Mon, 22 Jun 2015 21:20:05 +0530<br>From: mani.iiit123@gmail.com<br>To: pgrouting-dev@lists.osgeo.org<br>Subject: Re: [pgrouting-dev] Reg: Compile error in KSP with PostgreSQL 8.4<br><br><div dir="ltr">Hi Steve,<div><br></div><div>I've tried my best to update cmake/FindPostgreSQL.cmake and CMakeLists.txt, but the build was not successful. I've changed all the POSTGRES variables to 9.4, cmake executed properly, but while compiling(make) there is a error saying "Postgres.h" not found. Can you share your CMakeLists.txt and cmake/FindPostgresql..cmake. I am on the version 9.4.</div><div><br></div><div>I think this needs to be solved for the next release. We need to the pass the postgresql version to build, like the option you said "<span style="font-size:12.8000001907349px;">DUSE_PG=9.x</span><span style="font-size:12.8000001907349px;"> </span>". But unfortunately it is not working right now. I'll try to read about cmake and see what I can do. I will update you. </div><div><br></div><div>Thank you,</div><div>Mani </div></div><div class="ecxgmail_extra"><br><div class="ecxgmail_quote">On Mon, Jun 22, 2015 at 8:20 PM, Stephen Woodbridge <span dir="ltr"><<a href="mailto:woodbri@swoodbridge.com" target="_blank">woodbri@swoodbridge.com</a>></span> wrote:<br><blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex;"><div class="ecxHOEnZb"><div class="h5">On 6/22/2015 10:37 AM, Manikanta Kondeti wrote:<br>
<blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex;">
Hi,<br>
<br>
I am facing an error while building from source. This is that<br>
issue: <a href="https://github.com/pgRouting/pgrouting/issues/109" rel="noreferrer" target="_blank">https://github.com/pgRouting/pgrouting/issues/109</a><br>
<br>
How to resolve that? Changing Pg version to 9.1 in CMakeLists.txt is<br>
not working. I have 9.1 and 9.4 postgresql versions installed in my<br>
system. Help me out in resolving this.<br>
</blockquote>
<br></div></div>
Mani,<br>
<br>
Sorry, the CMakeLists.txt files built for pgrouting 2.x were not designed for support multiple versions installed on the same system. This is a problem for me because I have 9.2, 9.3, and 9.4 installed and I can only build and install on 9.4.<br>
<br>
The solution id to update the CMakeLists.txt and specifically cmake/FindPostgreSQL.cmake which so you can do something like<br>
<br>
cd build<br>
cmake -DUSE_PG=9.x ..<br>
<br>
I took a quick look at doing this a while back but cmake/FindPostgreSQL.cmake needs to be replaced and other changes are needed and I didn't have time to make the changes and get it working.<br>
<br>
tools/<a href="http://test-runner.pl" rel="noreferrer" target="_blank">test-runner.pl</a> already support options for pg versions and ports so only the build system is broken in this regard.<br>
<br>
If you want to read up on CMake and get this working a pull request would be great!<br>
<br>
-Steve<br>
<br>
_______________________________________________<br>
pgrouting-dev mailing list<br>
<a href="mailto:pgrouting-dev@lists.osgeo.org" target="_blank">pgrouting-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/pgrouting-dev" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/pgrouting-dev</a><br>
</blockquote></div><br></div>
<br>_______________________________________________
pgrouting-dev mailing list
pgrouting-dev@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/pgrouting-dev</div> </div></body>
</html>