8000 make install fails on Mac OS X · Issue #1984 · micropython/micropython · GitHub
[go: up one dir, main page]

Skip to content
make install fails on Mac OS X #1984
Closed
Closed
@muellermartin

Description

@muellermartin

Compiling MicroPython v1.7 works fine on Mac OS X, but running the install target of the Makefile in the subfolder unix fails with following error (relevant excerpt):

install -D micropython /usr/local/Cellar/micropython/1.7/bin/micropython
install: illegal option -- D
usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
               [-o owner] file1 file2
       install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
               [-o owner] file1 ... fileN directory
       install -d [-v] [-g group] [-m mode] [-o owner] directory ...
make: *** [install] Error 64

This is likely due to the incompatible flag -D which is only available for the install command contained in GNU coreutils, but not in the BSD version of install.

As solution I suggest to run install -d on the install directory first and then call install for the two files seperately. I've successfully used this approach for the package in the Homebrew package manager (see: Homebrew/homebrew-core#353).

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

      0