Skip to content
This repository was archived by the owner on Aug 8, 2018. It is now read-only.
This repository was archived by the owner on Aug 8, 2018. It is now read-only.

MacPorts compatibility issue #278

Open
@amamaenko

Description

@amamaenko

Checklist

Here is the list of steps that are different so far as I got, when installing MacOS with MacPorts

Steps

  1. first install the C++ libraries that we would need later:

sudo port install automake libtool pkgconfig libffi gmp openssl

Note that the MacPorts has pkgconfig library name rather than pkg-config in
Brew or linuxes.

  1. Next step is to build one of pyethapp dependencies - the scrypt module
    using a trick. The reason for this trick is described at:
    https://cryptography.io/en/latest/installation/#building-cryptography-on-os-x,
    and a solution is described at: scrypt-1.2.0/libcperciva/crypto/crypto_aes.c:6:10: fatal error: 'openssl/aes.h' file not found #209
    Basically, the pyethapp setup relies on system packages for openssl, so,
    instead of modifying its setup scripts, we're going to simply preinstall the
    dependency manually:
    env LDFLAGS="-L/opt/local/lib" CFLAGS="-I/opt/local/include" pip install scrypt

  2. Installing from an egg/wheel doesn't work, so clone the pytheapp module and run the "Development" setup
    cd pyethapp
    USE_PYETHEREUM_DEVELOP=1 python setup.py develop

  3. THE TRICKIEST: Fix the devp2p module.
    In the devp2p/crypto.py fix the openssl import path. Make sure to include the
    MacPorts' library into the lib path. Correct lib path below:

_openssl_lib_paths = ['/usr/local/Cellar/openssl/', '/opt/local/bin/']

System/environment

  • MacOS 10.13.2 (High Sierra) freshly installed.
    • standard libraries for openssl removed in this version
  • MacPorts 2.4.2 already installed (see https://www.macports.org)
    • some packages have different names from Brew
  • Python 3.6.4 installed from macports as python3
    • pytheapp hacked in python 2.7, so it won't install from pypi on 3.6

Expected behaviour

Instead of step 3, the install should go fine

Observed behaviour

required ciphers {'aes-128-ctr'} not available in openssl library'

Steps to reproduce

After the above installation start:

python[3] -m pyethapp.app

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions