Changeset 39455 in project


Ignore:
Timestamp:
12/24/20 00:42:42 (4 weeks ago)
Author:
wasamasa
Message:

Mention macOS-specific workarounds

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/5/breadline

    r38646 r39455  
    5454 Libs: -lreadline
    5555 Cflags: -I/usr/include/readline
     56
     57==== macOS Homebrew
     58
     59Ensure that {{pkg-config}} and {{readline}} have been installed via
     60Homebrew.
     61
     62Consider Homebrew's remarks after installing readline:
     63
     64 readline is keg-only, which means it was not symlinked into /usr/local,
     65 because macOS provides BSD libedit.
     66 
     67 For compilers to find readline you may need to set:
     68   export LDFLAGS="-L/usr/local/opt/readline/lib"
     69   export CPPFLAGS="-I/usr/local/opt/readline/include"
     70 
     71 For pkg-config to find readline you may need to set:
     72   export PKG_CONFIG_PATH="/usr/local/opt/readline/lib/pkgconfig"
     73
     74Therefore export all of these, then run {{chicken-install breadline}}.
     75
     76In case it still doesn't work and {{pkg-config --libs readline}}
     77fails, this may be the fault of an incorrect {{readline.pc}} file,
     78see [[https://github.com/Homebrew/homebrew-core/issues/38972|Homebrew's issue tracker]]
     79and update.
    5680
    5781==== mingw-msys2
Note: See TracChangeset for help on using the changeset viewer.