Skip to content

install_server fails on OS X without GNU sed #1922

Closed

Description

@moimikey

Hola,

Redis install was great, passed all tests, but the install_server.sh script failed for me:

mshertzberg@forge ~/git/redis/redis-stable/utils $ _ ./install_server.sh
Welcome to the redis service installer
This script will help you easily set up a running redis server

Please select the redis port for this instance: [6379]
Selecting default: 6379
Please select the redis config file name [/etc/redis/6379.conf]
Selected default - /etc/redis/6379.conf
Please select the redis log file name [/var/log/redis_6379.log]
Selected default - /var/log/redis_6379.log
Please select the data directory for this instance [/var/lib/redis/6379]
Selected default - /var/lib/redis/6379
Please select the redis executable path [/usr/local/bin/redis-server]
Selected config:
Port           : 6379
Config file    : /etc/redis/6379.conf
Log file       : /var/log/redis_6379.log
Data dir       : /var/lib/redis/6379
Executable     : /usr/local/bin/redis-server
Cli Executable : /usr/local/bin/redis-cli
Is this ok? Then press ENTER to go on or Ctrl-C to abort.
sed: illegal option -- r
usage: sed script [-Ealn] [-i extension] [file ...]
       sed [-Ealn] [-i extension] [-e script] ... [-f script_file] ... [file ...]
cp: cannot create regular file ‘/etc/init.d/redis_6379’: No such file or directory
ERROR: Could not copy redis init script to  /etc/init.d/redis_6379. Aborting!

If i'm not mistaken, -r is specific to GNU sed and I don't believe OS X ships with GNU sed. OS X's equiv. would be -E.

mshertzberg@forge ~/git/redis/redis-stable/utils $ uname -a
Darwin forge.local 14.0.0 Darwin Kernel Version 14.0.0: Wed Jul 16 00:46:31 PDT 2014; root:xnu-2782.1.43.0.2~2/RELEASE_X86_64 x86_64 i386 MacBookAir4,2 Darwin

thanks.

Activity

  1. badboy commented on Aug 8, 2014

    @badboy
    Contributor

    Thanks. I still have pending changes for that file anyway. I'll take a look at this

  2. added 2 commits that reference this issue on Jul 24, 2017
    7fcca9b
    19e5e5e
  3. added a commit that references this issue on Aug 20, 2017
    10701f4
  4. added 2 commits that reference this issue on Jan 13, 2018
    0c5bdb1
    60980fb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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