Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error installing on OS X 10.11.3 #9

Closed
yurivish opened this issue Feb 8, 2016 · 2 comments
Closed

Error installing on OS X 10.11.3 #9

yurivish opened this issue Feb 8, 2016 · 2 comments

Comments

@yurivish
Copy link

yurivish commented Feb 8, 2016

The error is Cannot locate native library 'libreadline.so.6': dlopen(libreadline.so.6, 1): image not found. Tried installing immediately on top of the newest release of Rakudo Star, since Readline was recommended at the launch of the repl.

Full log:

panda install Readline
==> Readline depends on LibraryCheck
==> Fetching LibraryCheck
==> Building LibraryCheck
==> Testing LibraryCheck
t/01-basic.t .. ok
All tests successful.
Files=1, Tests=4,  6 wallclock secs ( 0.01 usr  0.01 sys +  5.88 cusr  0.32 csys =  6.22 CPU)
Result: PASS
==> Installing LibraryCheck
==> Successfully installed LibraryCheck
==> Fetching Readline
==> Building Readline
==> Testing Readline
t/01-load.t .. ok

# Failed test 'initialize'
# at t/02-base.t line 10
# Cannot locate native library 'libreadline.so.6': dlopen(libreadline.so.6, 1): image not found

# Failed test 'macro-dumper lives'
# at t/02-base.t line 18
    # Cannot locate native library 'libreadline.so.6': dlopen(libreadline.so.6, 1): image not found
    # Looks like you failed 1 test of 1

# Failed test 'dumpers'
# at t/02-base.t line 13

# Failed test 'set-prompt lives'
# at t/02-base.t line 27
    # Cannot locate native library 'libreadline.so.6': dlopen(libreadline.so.6, 1): image not found

# Failed test 'expand-prompt lives'
# at t/02-base.t line 29
    # Cannot locate native library 'libreadline.so.6': dlopen(libreadline.so.6, 1): image not found

# Failed test 'on-new-line-with-prompt lives'
# at t/02-base.t line 31
    # Cannot locate native library 'libreadline.so.6': dlopen(libreadline.so.6, 1): image not found

# Failed test 'save-prompt lives'
# at t/02-base.t line 33
    # Cannot locate native library 'libreadline.so.6': dlopen(libreadline.so.6, 1): image not found

# Failed test 'restore-prompt lives'
# at t/02-base.t line 35
    # Cannot locate native library 'libreadline.so.6': dlopen(libreadline.so.6, 1): image not found
    # Looks like you failed 5 tests of 5

# Failed test 'prompt'
# at t/02-base.t line 24

# Failed test 'tilde-expand lives'
# at t/02-base.t line 46
    # Cannot locate native library 'libreadline.so.6': dlopen(libreadline.so.6, 1): image not found

# Failed test 'tilde-expand-word lives'
# at t/02-base.t line 48
    # Cannot locate native library 'libreadline.so.6': dlopen(libreadline.so.6, 1): image not found
    # Looks like you failed 2 tests of 2

# Failed test 'tilde'
# at t/02-base.t line 39

# Failed test 'prep-terminal lives'
# at t/02-base.t line 58
    # Cannot locate native library 'libreadline.so.6': dlopen(libreadline.so.6, 1): image not found

# Failed test 'deprep-terminal lives'
# at t/02-base.t line 60
    # Cannot locate native library 'libreadline.so.6': dlopen(libreadline.so.6, 1): image not found

# Failed test 'reset-terminal'
# at t/02-base.t line 62
    # Cannot locate native library 'libreadline.so.6': dlopen(libreadline.so.6, 1): image not found
    # Looks like you failed 3 tests of 3

# Failed test 'terminal'
# at t/02-base.t line 54

# Failed test 'reset-line-state lives'
# at t/02-base.t line 70
    # Cannot locate native library 'libreadline.so.6': dlopen(libreadline.so.6, 1): image not found
    # Looks like you failed 1 test of 1

# Failed test 'state'
# at t/02-base.t line 68

# Failed test 'free-undo-list lives'
# at t/02-base.t line 81
    # Cannot locate native library 'libreadline.so.6': dlopen(libreadline.so.6, 1): image not found

# Failed test 'do-undo lives'
# at t/02-base.t line 83
    # Cannot locate native library 'libreadline.so.6': dlopen(libreadline.so.6, 1): image not found

# Failed test 'begin-undo-group lives'
# at t/02-base.t line 85
    # Cannot locate native library 'libreadline.so.6': dlopen(libreadline.so.6, 1): image not found

# Failed test 'end-undo-group lives'
# at t/02-base.t line 87
    # Cannot locate native library 'libreadline.so.6': dlopen(libreadline.so.6, 1): image not found
    # Looks like you failed 4 tests of 4

# Failed test 'undo'
# at t/02-base.t line 80

# Failed test 'funmap-names lives'
# at t/02-base.t line 99
    # Cannot locate native library 'libreadline.so.6': dlopen(libreadline.so.6, 1): image not found
    # Looks like you failed 1 test of 1

# Failed test 'funmap'
# at t/02-base.t line 91

# Failed test 'set-screen-size'
# at t/02-base.t line 106
    # Cannot locate native library 'libreadline.so.6': dlopen(libreadline.so.6, 1): image not found

# Failed test 'reset-screen-size lives'
# at t/02-base.t line 110
    # Cannot locate native library 'libreadline.so.6': dlopen(libreadline.so.6, 1): image not found
    # Looks like you failed 2 tests of 2

# Failed test 'screen'
# at t/02-base.t line 103

# Failed test 'insert-text lives'
# at t/02-base.t line 118
    # Cannot locate native library 'libreadline.so.6': dlopen(libreadline.so.6, 1): image not found

# Failed test 'delete-text lives'
# at t/02-base.t line 120
    # Cannot locate native library 'libreadline.so.6': dlopen(libreadline.so.6, 1): image not found

# Failed test 'kill-text lives'
# at t/02-base.t line 122
    # Cannot locate native library 'libreadline.so.6': dlopen(libreadline.so.6, 1): image not found

# Failed test 'copy-text lives'
# at t/02-base.t line 124
    # Cannot locate native library 'libreadline.so.6': dlopen(libreadline.so.6, 1): image not found
    # Looks like you failed 4 tests of 4

# Failed test 'text'
# at t/02-base.t line 114

# Failed test 'make-bare-keymap lives'
# at t/02-base.t line 132
    # Cannot locate native library 'libreadline.so.6': dlopen(libreadline.so.6, 1): image not found

# Failed test 'copy-keymap lives'
# at t/02-base.t line 134
    # Type check failed in binding $map; expected Readline::Keymap but got Any

# Failed test 'make-keymap lives'
# at t/02-base.t line 136
    # Cannot locate native library 'libreadline.so.6': dlopen(libreadline.so.6, 1): image not found

# Failed test 'discard-keymap lives'
# at t/02-base.t line 138
    # Type check failed in binding $map; expected Readline::Keymap but got Any

# Failed test 'free-keymap lives'
# at t/02-base.t line 140
    # Type check failed in binding $map; expected Readline::Keymap but got Any

# Failed test 'get-keymap-by-name lives'
# at t/02-base.t line 142
    # Cannot locate native library 'libreadline.so.6': dlopen(libreadline.so.6, 1): image not found

# Failed test 'get-keymap lives'
# at t/02-base.t line 144
    # Cannot locate native library 'libreadline.so.6': dlopen(libreadline.so.6, 1): image not found

# Failed test 'get-keymap-name lives'
# at t/02-base.t line 146
    # Type check failed in binding $map; expected Readline::Keymap but got Any

# Failed test 'set-keymap lives'
# at t/02-base.t line 148
    # Type check failed in binding $map; expected Readline::Keymap but got Any
    # Looks like you failed 9 tests of 9

# Failed test 'keymap'
# at t/02-base.t line 128
Cannot locate native library 'libreadline.so.6': dlopen(libreadline.so.6, 1): image not found
  in method setup at /Users/yurivish/Downloads/rakudo-star-2016.01/install/share/perl6/sources/075EFE4B4CDAAF73190194EA876F81A1F128D1A2 line 230
  in method CALL-ME at /Users/yurivish/Downloads/rakudo-star-2016.01/install/share/perl6/sources/075EFE4B4CDAAF73190194EA876F81A1F128D1A2 line 241
  in method make-bare-keymap at /Users/yurivish/.panda-work/1454915611_2/lib/Readline.pm line 1040
  in sub  at t/02-base.t line 159
  in sub subtest at /Users/yurivish/Downloads/rakudo-star-2016.01/install/share/perl6/sources/39D1BEBEB786F0DE0B82489F3F02F5C672CBA1F7 line 296
  in sub  at t/02-base.t line 158
  in sub subtest at /Users/yurivish/Downloads/rakudo-star-2016.01/install/share/perl6/sources/39D1BEBEB786F0DE0B82489F3F02F5C672CBA1F7 line 296
  in block <unit> at t/02-base.t line 152

t/02-base.t .. 
Dubious, test returned 1 (wstat 256, 0x100)
Failed 17/17 subtests 

Test Summary Report
-------------------
t/02-base.t (Wstat: 256 Tests: 11 Failed: 11)
  Failed tests:  1-11
  Non-zero exit status: 1
  Parse errors: Bad plan.  You planned 17 tests but ran 11.
Files=2, Tests=12, 18 wallclock secs ( 0.03 usr  0.01 sys + 16.77 cusr  0.51 csys = 17.32 CPU)
Result: FAIL
test stage failed for Readline: Tests failed
  in method install at /Users/yurivish/Downloads/rakudo-star-2016.01/install/share/perl6/site/sources/9036849E1656E91211D00AB4530B81D29A7D6E82 line 157
  in method resolve at /Users/yurivish/Downloads/rakudo-star-2016.01/install/share/perl6/site/sources/9036849E1656E91211D00AB4530B81D29A7D6E82 line 234
  in sub MAIN at /Users/yurivish/Downloads/rakudo-star-2016.01/install/share/perl6/site/resources/76CD539C815A33F2891D2EF3D6D96B1081567AD1 line 18
  in block <unit> at /Users/yurivish/Downloads/rakudo-star-2016.01/install/share/perl6/site/resources/76CD539C815A33F2891D2EF3D6D96B1081567AD1 line 150


Failure Summary
----------------
Readline(
    *test stage failed for Readline: Tests failed)

@dha
Copy link

dha commented Jun 6, 2016

Yes, OS X comes with libedit, apparently, rather than libreadline. If you use Homebrew to install packages on your OS X system, it deals with this problem(?) thus: It does not link to readline in /usr/local, but rather suggests that you build libraries that require readline with flags to explicitly locate it (e. g. -L/usr/local/opt/readline/lib).

So, I suppose in that particular case the install process could check for a Homebrew install of readline, and act accordingly, but it's clearly not a general solution for OS X. That said, I don't really know how this should be solved in the general case.

Not sure how much that helps, but I think that gives a bit more detail than the IRC log above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants