<div dir="ltr"><div>Hi Priyanka,</div><div><br></div><div>Like Pavel said, yo ucan install the distro (RPM) packages, then run the installer.<br></div><div><br></div><div>We have a private variable for what distro (RPM) packages to install in the installer:</div><div>pulp_preq_packages</div><div><br></div><div>We set it per distro, but only if it's a distro we know the value for.</div><div>If you set it yourself for any other distro (like SLES15), its value will be used.</div><div><br></div><div>It is a list, so for example in your variables file:<br></div><div>pulp_preq_packages:</div><div>- postgresql-server-devel</div><div>- package2</div><div>- package3<br></div><div><br></div><div>Please share with us what packages you install (top level, not dependencies), and we can specify them in the installer for SLES15.</div><div><br></div><div>Or if you know ansible well, create a PR. This is the relevant section of the code:</div><div><a href="https://github.com/pulp/pulp_installer/tree/master/roles/pulp/vars">https://github.com/pulp/pulp_installer/tree/master/roles/pulp/vars</a></div><div><a href="https://github.com/pulp/pulp_installer/blob/master/roles/pulp/tasks/main.yml#L17">https://github.com/pulp/pulp_installer/blob/master/roles/pulp/tasks/main.yml#L17</a></div><div><br></div><div>-Mike<br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 10, 2020 at 9:50 AM Pavel Picka <<a href="mailto:ppicka@redhat.com">ppicka@redhat.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello,<br><br>Please try to install the 'postgresql-server-devel' package first. This one should contain 'pg_config'. <br><br>Although 'zypper' shows it should appear in '/usr/bin/pg_config', it is possible it will not.<br><br>It happened to me on my SLES box. <div>If still missing 'pg_config' please check '/usr/lib/postgresql/bin/' (maybe with version '/usr/lib/postgresql11/bin/' depends on your version installed) where in my case I found the 'pg_config' command. <div>If so, it was enough to update your 'PATH' shell variable with this directory and I was able to install 'pulpcore' and 'pulp-file' smoothly (with python3-devel & gcc installed). <br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 10, 2020 at 11:31 AM J, Priyanka <<a href="mailto:priyankaj@hpe.com" target="_blank">priyankaj@hpe.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">





<div lang="EN-US">
<div>
<p class="MsoNormal">Hi All,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I am trying to install pulpcore on SUSE Linux Enterprise Server 15 SP2 VM, but I am not able to install it due to below error even though I installed all dependency packages like postgresql, postgresql-devel, python3-psycopg2, psycopg2-binary
 and few more.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Collecting psycopg2<2.9,>=2.7<u></u><u></u></p>
<p class="MsoNormal">  Using cached psycopg2-2.8.5.tar.gz (380 kB)<u></u><u></u></p>
<p class="MsoNormal">    ERROR: Command errored out with exit status 1:<u></u><u></u></p>
<p class="MsoNormal">     command: /usr/local/lib/pulp/bin/python3.6 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-1rysuemo/psycopg2/setup.py'"'"'; __file__='"'"'/tmp/pip-install-1rysuemo/psycopg2/setup.py'"'"';f=getattr(tokenize,
 '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-jaf1kify<u></u><u></u></p>
<p class="MsoNormal">         cwd: /tmp/pip-install-1rysuemo/psycopg2/<u></u><u></u></p>
<p class="MsoNormal">    Complete output (23 lines):<u></u><u></u></p>
<p class="MsoNormal">    running egg_info<u></u><u></u></p>
<p class="MsoNormal">    creating /tmp/pip-pip-egg-info-jaf1kify/psycopg2.egg-info<u></u><u></u></p>
<p class="MsoNormal">    writing /tmp/pip-pip-egg-info-jaf1kify/psycopg2.egg-info/PKG-INFO<u></u><u></u></p>
<p class="MsoNormal">    writing dependency_links to /tmp/pip-pip-egg-info-jaf1kify/psycopg2.egg-info/dependency_links.txt<u></u><u></u></p>
<p class="MsoNormal">    writing top-level names to /tmp/pip-pip-egg-info-jaf1kify/psycopg2.egg-info/top_level.txt<u></u><u></u></p>
<p class="MsoNormal">    writing manifest file '/tmp/pip-pip-egg-info-jaf1kify/psycopg2.egg-info/SOURCES.txt'<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">    Error: pg_config executable not found.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">    pg_config is required to build psycopg2 from source.  Please add the directory<u></u><u></u></p>
<p class="MsoNormal">    containing pg_config to the $PATH or specify the full executable path with the<u></u><u></u></p>
<p class="MsoNormal">    option:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">        python setup.py build_ext --pg-config /path/to/pg_config build ...<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">    or with the pg_config option in 'setup.cfg'.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">    If you prefer to avoid building psycopg2 from source, please install the PyPI<u></u><u></u></p>
<p class="MsoNormal">    'psycopg2-binary' package instead.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">    For further information please check the 'doc/src/install.rst' file (also at<u></u><u></u></p>
<p class="MsoNormal">    <<a href="https://www.psycopg.org/docs/install.html" target="_blank">https://www.psycopg.org/docs/install.html</a>>).<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">    ----------------------------------------<u></u><u></u></p>
<p class="MsoNormal">ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span style="background:yellow none repeat scroll 0% 0%">Please let me know if any one of you came across the same issue and solution for this. It will be good if we have documentation of installing pulpcore on suse.</span><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks,<u></u><u></u></p>
<p class="MsoNormal">Priyanka<u></u><u></u></p>
</div>
</div>

_______________________________________________<br>
Pulp-list mailing list<br>
<a href="mailto:Pulp-list@redhat.com" target="_blank">Pulp-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/pulp-list" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/pulp-list</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div>Pavel Picka</div><div>Red Hat<br></div></div></div>
_______________________________________________<br>
Pulp-list mailing list<br>
<a href="mailto:Pulp-list@redhat.com" target="_blank">Pulp-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/pulp-list" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/pulp-list</a></blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><p style="color:rgb(0,0,0);font-family:RedHatText,sans-serif;font-weight:bold;margin:0px;padding:0px;font-size:14px;text-transform:capitalize"><span>Mike</span> <span>DePaulo</span><span style="text-transform:uppercase;color:rgb(170,170,170);margin:0px"></span></p><p style="color:rgb(0,0,0);font-family:RedHatText,sans-serif;font-size:12px;margin:0px 0px 4px;text-transform:capitalize">He / Him / His</p><p style="color:rgb(0,0,0);font-family:RedHatText,sans-serif;font-size:12px;margin:0px;text-transform:capitalize"><span>Service Reliability Engineer, Pulp</span></p><p style="color:rgb(0,0,0);font-family:RedHatText,sans-serif;margin:0px 0px 4px;font-size:12px"><a href="https://www.redhat.com/" style="color:rgb(0,136,206);margin:0px" target="_blank">Red Hat<span></span></a></p><div style="color:rgb(0,0,0);font-family:RedHatText,sans-serif;font-size:medium;margin-bottom:4px"></div><p style="color:rgb(0,0,0);font-family:RedHatText,sans-serif;margin:0px;font-size:12px"><span>IM: <span>mikedep333</span></span></p><p style="color:rgb(0,0,0);font-family:RedHatText,sans-serif;font-size:12px;margin:0px"><span>GPG: 51745404</span></p><div style="color:rgb(0,0,0);font-family:RedHatText,sans-serif;font-size:medium;margin-top:12px"><table border="0"><tbody><tr><td width="100px"><a href="https://www.redhat.com/" target="_blank"><img src="https://marketing-outfit-prod-images.s3-us-west-2.amazonaws.com/f5445ae0c9ddafd5b2f1836854d7416a/Logo-RedHat-Email.png" width="90" height="auto"></a></td></tr></tbody></table></div></div></div>