[CIG-SHORT] Problem building pylith 2.2.1 from source on macOS

Brad Aagaard baagaard at usgs.gov
Wed Nov 14 07:51:12 PST 2018


Josimar,

Are you not able to use the openssl libraries in /usr/lib?

When you tried using --enable-openssl with the PyLith installer, what 
didn't work?

Note: When we use --enable-openssl, we are building the binary which 
means that we build *everything* from the compiler on up, which ensures 
that the openssl libraries we build are used rather than the system 
openssl libraries.

Thanks,
Brad


On 11/14/18 3:49 AM, Josimar Alves da Silva wrote:
> Hi Brad,
> 
> I solved this problem. Fundamentally, in my case, during the building 
> process the openssl libraries were not being linked at all during the 
> python installation part. Thus, I modified the existing pylith 2.2.1 
> Makefile so that it finds the correct openssl libraries.
> 
> In summary, if anyone else finds similar issues in the future, here are 
> the steps:
> 
> 1) Install openssl (I used homebrew)
> 
> 2) Run configure as normal for the pylith installation
> 
> 3) Before running "make", open the Makefile and add two extra paths to 
> the LDFLAGS and CPPFLAGS. For my case, I had to add:
>       a) LDFLAGS: -L/usr/local/opt/openssl/lib
>      b)  CPPFLAGS: -I/usr/local/opt/openssl/include
> 
> 4) I am under the impression that the default path for pylith to look 
> for openssl is /usr/local/ssl, which in my case does not exist.
> 
> Note that simply configuring pylith-2.2.1 using enable-openssl did not 
> solve my problem.
> 
> Best,
> Josimar
> 
> 
> On Mon, Nov 12, 2018 at 5:04 PM Josimar Alves da Silva 
> <jsilva.mit at gmail.com <mailto:jsilva.mit at gmail.com>> wrote:
> 
>     Hi Brad,
> 
>     I am trying to build pylith-2.2.1 from source but the compilation
>     stops at the h5py installation.  My machine runs on macOS v.
>     10.13.6. Note that I was able to build it on a linux computer
>     without any problems.
> 
>     A summary of the error is below and the complete full set log is
>     attached. Would you have any suggestions to fix this issue ?
> 
>     Thank you,
>     Josimar
> 
>     Error summary:
> 
>     Download error on https://pypi.org/simple/pkgconfig/: unknown url
>     type: https -- Some packages may not be found!
> 
>     Couldn't find index page for 'pkgconfig' (maybe misspelled?)
> 
>     Download error on https://pypi.org/simple/: unknown url type: https
>     -- Some packages may not be found!
> 
>     No local packages or working download links found for pkgconfig
> 
>     Traceback (most recent call last):
> 
>        File "setup.py", line 167, in <module>
> 
>          cmdclass = CMDCLASS,
> 
>        File
>     "build/bdist.macosx-10.13-x86_64/egg/setuptools/__init__.py", line
>     128, in setup
> 
>        File
>     "build/bdist.macosx-10.13-x86_64/egg/setuptools/__init__.py", line
>     123, in _install_setup_requires
> 
>        File "build/bdist.macosx-10.13-x86_64/egg/setuptools/dist.py",
>     line 504, in fetch_build_eggs
> 
>        File
>     "build/bdist.macosx-10.13-x86_64/egg/pkg_resources/__init__.py",
>     line 774, in resolve
> 
>        File
>     "build/bdist.macosx-10.13-x86_64/egg/pkg_resources/__init__.py",
>     line 1057, in best_match
> 
>        File
>     "build/bdist.macosx-10.13-x86_64/egg/pkg_resources/__init__.py",
>     line 1069, in obtain
> 
>        File "build/bdist.macosx-10.13-x86_64/egg/setuptools/dist.py",
>     line 571, in fetch_build_egg
> 
>        File
>     "build/bdist.macosx-10.13-x86_64/egg/setuptools/command/easy_install.py",
>     line 667, in easy_install
> 
>     distutils.errors.DistutilsError: Could not find suitable
>     distribution for Requirement.parse('pkgconfig')
> 
>     make[2]: *** [h5py] Error 1
> 
>     make[1]: *** [installed_h5py] Error 2
> 
>     make: *** [installed_pylith] Error 2
> 
> 


More information about the CIG-SHORT mailing list