Bjoern: MacOSでは構築されません

作成日 2017年03月09日  ·  3コメント  ·  ソース: jonashaag/bjoern

(/Users/avloss/home/anaconda2) ALs-MacBook-Pro:avloss-serving avloss$ pip install bjoern
Collecting bjoern
  Downloading bjoern-1.4.3.tar.gz
Building wheels for collected packages: bjoern
  Running setup.py bdist_wheel for bjoern ... error
  Complete output from command /Users/avloss/home/anaconda2/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/3x/9p627g6n3bb280wjtkx4nxj00000gn/T/pip-build-LyW2k8/bjoern/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /var/folders/3x/9p627g6n3bb280wjtkx4nxj00000gn/T/tmpKryGt9pip-wheel- --python-tag cp27:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.macosx-10.6-x86_64-2.7
  copying bjoern.py -> build/lib.macosx-10.6-x86_64-2.7
  running build_ext
  building '_bjoern' extension
  creating build/temp.macosx-10.6-x86_64-2.7
  creating build/temp.macosx-10.6-x86_64-2.7/http-parser
  creating build/temp.macosx-10.6-x86_64-2.7/bjoern
  gcc -fno-strict-aliasing -I/Users/avloss/home/anaconda2/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DWANT_SENDFILE=1 -DWANT_SIGINT_HANDLING=1 -Ihttp-parser -I/usr/include/libev -I/Users/avloss/home/anaconda2/include/python2.7 -c http-parser/http_parser.c -o build/temp.macosx-10.6-x86_64-2.7/http-parser/http_parser.o -std=c99 -fno-strict-aliasing -fcommon -fPIC -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -g
  gcc -fno-strict-aliasing -I/Users/avloss/home/anaconda2/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DWANT_SENDFILE=1 -DWANT_SIGINT_HANDLING=1 -Ihttp-parser -I/usr/include/libev -I/Users/avloss/home/anaconda2/include/python2.7 -c bjoern/_bjoernmodule.c -o build/temp.macosx-10.6-x86_64-2.7/bjoern/_bjoernmodule.o -std=c99 -fno-strict-aliasing -fcommon -fPIC -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -g
  In file included from bjoern/_bjoernmodule.c:3:
  In file included from bjoern/wsgi.h:2:
  bjoern/request.h:4:10: fatal error: 'ev.h' file not found
  #include <ev.h>
           ^
  1 error generated.
  error: command 'gcc' failed with exit status 1

  ----------------------------------------
  Failed building wheel for bjoern
  Running setup.py clean for bjoern
Failed to build bjoern
Installing collected packages: bjoern
  Running setup.py install for bjoern ... error
    Complete output from command /Users/avloss/home/anaconda2/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/3x/9p627g6n3bb280wjtkx4nxj00000gn/T/pip-build-LyW2k8/bjoern/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/3x/9p627g6n3bb280wjtkx4nxj00000gn/T/pip-nZgtFz-record/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating build/lib.macosx-10.6-x86_64-2.7
    copying bjoern.py -> build/lib.macosx-10.6-x86_64-2.7
    running build_ext
    building '_bjoern' extension
    creating build/temp.macosx-10.6-x86_64-2.7
    creating build/temp.macosx-10.6-x86_64-2.7/http-parser
    creating build/temp.macosx-10.6-x86_64-2.7/bjoern
    gcc -fno-strict-aliasing -I/Users/avloss/home/anaconda2/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DWANT_SENDFILE=1 -DWANT_SIGINT_HANDLING=1 -Ihttp-parser -I/usr/include/libev -I/Users/avloss/home/anaconda2/include/python2.7 -c http-parser/http_parser.c -o build/temp.macosx-10.6-x86_64-2.7/http-parser/http_parser.o -std=c99 -fno-strict-aliasing -fcommon -fPIC -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -g
    gcc -fno-strict-aliasing -I/Users/avloss/home/anaconda2/include -arch x86_64 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DWANT_SENDFILE=1 -DWANT_SIGINT_HANDLING=1 -Ihttp-parser -I/usr/include/libev -I/Users/avloss/home/anaconda2/include/python2.7 -c bjoern/_bjoernmodule.c -o build/temp.macosx-10.6-x86_64-2.7/bjoern/_bjoernmodule.o -std=c99 -fno-strict-aliasing -fcommon -fPIC -Wall -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -g
    In file included from bjoern/_bjoernmodule.c:3:
    In file included from bjoern/wsgi.h:2:
    bjoern/request.h:4:10: fatal error: 'ev.h' file not found
    #include <ev.h>
             ^
    1 error generated.
    error: command 'gcc' failed with exit status 1

    ----------------------------------------
Command "/Users/avloss/home/anaconda2/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/3x/9p627g6n3bb280wjtkx4nxj00000gn/T/pip-build-LyW2k8/bjoern/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/3x/9p627g6n3bb280wjtkx4nxj00000gn/T/pip-nZgtFz-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/3x/9p627g6n3bb280wjtkx4nxj00000gn/T/pip-build-LyW2k8/bjoern/
(

最も参考になるコメント

Homebrewでlibevをインストールした後、私は同じ問題(macOs 10.13.6)に直面していましたが、次のように修正されました。

pip install --global-option=build_ext --global-option="-I/usr/local/include/" --global-option="-L/usr/local/lib"  bjoern

全てのコメント3件

libevが必要です。https: //github.com/jonashaag/bjoern/wiki/Installation#libevを参照して

Homebrewでlibevをインストールした後、私は同じ問題(macOs 10.13.6)に直面していましたが、次のように修正されました。

pip install --global-option=build_ext --global-option="-I/usr/local/include/" --global-option="-L/usr/local/lib"  bjoern

Homebrewでlibevをインストールした後、私は同じ問題(macOs 10.13.6)に直面していましたが、次のように修正されました。

pip install --global-option=build_ext --global-option="-I/usr/local/include/" --global-option="-L/usr/local/lib"  bjoern

または、macportsを使用している場合は/opt/local/includeおよび/opt/local/lib

このページは役に立ちましたか?
0 / 5 - 0 評価

関連する問題

alexhultman picture alexhultman  ·  14コメント

jonashaag picture jonashaag  ·  18コメント

voroninman picture voroninman  ·  5コメント

alexted picture alexted  ·  12コメント

thedrow picture thedrow  ·  22コメント