Skip to content

Error installing from PIP #10

@seifreed

Description

@seifreed

Seifreed@machine:~$ sudo pip install yara

The directory '/Users/Seifreed/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/Users/Seifreed/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting yara
Downloading yara-1.7.7.tar.gz (387kB)
100% |████████████████████████████████| 389kB 1.2MB/s
Installing collected packages: yara
Running setup.py install for yara ... error
Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;file='/private/tmp/pip-build-tmIEax/yara/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-GdhYyw-record/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib
creating build/lib/yara
copying yara/init.py -> build/lib/yara
copying yara/cli.py -> build/lib/yara
copying yara/libyara_wrapper.py -> build/lib/yara
copying yara/preprocessor.py -> build/lib/yara
copying yara/rules.py -> build/lib/yara
copying yara/scan.py -> build/lib/yara
copying yara/version.py -> build/lib/yara
creating build/lib/yara/rules
creating build/lib/yara/rules/example
copying yara/rules/example/foobar.yar -> build/lib/yara/rules/example
copying yara/rules/example/imports.yar -> build/lib/yara/rules/example
copying yara/rules/example/pe.yar -> build/lib/yara/rules/example
running install_lib
running install_data
copying ./libs/darwin/x86_64/libyara.so -> /System/Library/Frameworks/Python.framework/Versions/2.7/lib
error: [Errno 1] Operation not permitted: '/System/Library/Frameworks/Python.framework/Versions/2.7/lib/libyara.so'

----------------------------------------

Command "/usr/bin/python -u -c "import setuptools, tokenize;file='/private/tmp/pip-build-tmIEax/yara/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-GdhYyw-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-build-tmIEax/yara/

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