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

macOS binaries missing libruby #26

Closed
tobiashm opened this issue Nov 28, 2016 · 21 comments
Closed

macOS binaries missing libruby #26

tobiashm opened this issue Nov 28, 2016 · 21 comments
Assignees

Comments

@tobiashm
Copy link

Trying to install Ruby 2.3.3 & 2.2.6 binaries on macOS 10.12.1 (using latest RVM) I get these errors:

Found remote file https://rubies.travis-ci.org/osx/10.12/x86_64/ruby-2.3.3.tar.bz2
…
Libraries missing for ruby-2.3.3: /Users/travis/.rvm/rubies/ruby-2.3.3/lib/libruby.2.3.0.dylib. Refer to your system manual for installing libraries

and

Found remote file https://rubies.travis-ci.org/osx/10.12/x86_64/ruby-2.2.6.tar.bz2
…
Libraries missing for ruby-2.2.6: /Users/travis/.rvm/rubies/ruby-2.2.6/lib/libruby.2.2.0.dylib. Refer to your system manual for installing libraries
@BanzaiMan
Copy link
Contributor

Are you trying to use the archive where no travis user exists?

@BanzaiMan
Copy link
Contributor

BanzaiMan commented Nov 28, 2016

I believe this was a side effect of getting to compile Ruby on OS X at all. See 535ac21.

I am open to suggestions, but in the mean time, I am inclined to stop advertising these archives as usable elsewhere.

@mpapis
Copy link
Contributor

mpapis commented Nov 28, 2016

@BanzaiMan the initial problem should be solved, if you point me to it - I will try to find some time to look into it ... the other options would be either removing travis from rvm advertised rubies - or split the binary rubies repository to movable and not movable

@markelog
Copy link

I am open to suggestions, but in the mean time, I am inclined to stop advertising these archives as usable elsewhere.

Please don't do that, right now you have very great collections of ruby binaries unavailable anywhere else, compiling is the worst for the user :/ especially when compiled binaries do not give user much these days.

Would be a waste to make them specific to your environment. Especially, when it seems as an easy fix by referencing dylib to your lib folder relative to the bin?

@BanzaiMan
Copy link
Contributor

@mpapis Thanks for the offer. Much appreciated. I'll post an update when I remember how it was failing before!

@markelog Understood. We'll see if we can resolve this problem. Thanks for opening this issue.

@BanzaiMan
Copy link
Contributor

Just so you know… I'll be traveling to Taipei for RubyConf Taiwan for the next week; this will most likely delay my responses.

(Anyone is welcome to look at build history and my commits to be the code detective, though!)

@BanzaiMan BanzaiMan self-assigned this Nov 28, 2016
@markelog
Copy link

And thank you for all those rubies, very cool!

@markelog
Copy link

markelog commented Dec 27, 2016

Friendly ping... any plans for this?

@BanzaiMan
Copy link
Contributor

Sorry for the delay. I'll revisit this after the New Year's.

@markelog
Copy link

Thank you, have a good one

@BanzaiMan
Copy link
Contributor

@mpapis The revert of 535ac21 results in https://travis-ci.org/travis-ci/travis-rubies/builds/188647343. Builds on macOS/OS X fails there. RVM is failing to find autoreconf, which I would have assumed to have been installed as a part of autoconf somehow.

@BanzaiMan
Copy link
Contributor

@mpapis I can install autoconf from source, and the compilation goes further but then it can't find Autom4te/ChannelDefs.pm (https://travis-ci.org/travis-ci/travis-rubies/jobs/189235428#L794), although the file should exist (https://travis-ci.org/travis-ci/travis-rubies/jobs/189235428#L575).

Haven't figured out why this is happening.

@anothermh
Copy link

The rvm maintainers have elected to remove the Travis binaries from the available remote binaries:

rvm/rvm#3861
rvm/rvm#3690

This probably closes this issue -- the binaries are not built for normal rvm users.

@markelog
Copy link

markelog commented Jan 29, 2017

Besides the rvm there is also rbenv, chruby and ruby-install or any other possible tool that can take advantage of precompiled binaries like https://github.com/asdf-vm/asdf plugins, not to mention manual installation.

Binary installation is much less buggy and so so much easier for the consumers to work with, whereas there is effectively no benefit with compilation approach.

That is why newest platform like go, rust, node or elm distribute binaries and it is to bad that official versions of python, php and ruby do not do that. And that's why it is so awesome that travis devs fixed such tremendous inconvenience

@markelog
Copy link

Hey, are you still planning to fix this issue? If policy has changed, maybe it would be the right move to remove http://rubies.travis-ci.org/ page?

@BanzaiMan
Copy link
Contributor

See 7c9282b.

I am sorry that we have not been able to overcome the problem.

I'm closing this now, but if anyone has a brilliant idea, please let me know.

Thank you.

@markelog
Copy link

Nevertheless, thank you for trying :)

@TomFreudenberg
Copy link

Hi @BanzaiMan Hiro and @markelog Oleg

Its a bit outdated but since I am using now travis-ci binaries for our small RVM-MINI tool, I would like to share the infos from our issue queue 4commerce-technologies-AG/rvm-mini#5

If interested checkout how to fix the dylib errors.

Cheers
Tom

@TomFreudenberg
Copy link

I am sorry ... spending the whole day here but couldn't get it run 100% outside the /Users/travis/.rvm space.

Dropping that item
Cheers
Tom

@TomFreudenberg
Copy link

Sorry for posting back and for ... but at least I got it running.

I will push the update to rvm-mini in a few days an will link here the changes.

Cheers
Tom

@TomFreudenberg
Copy link

Ok, its pushed.

For whom is interested checkout:

  1. function __fix_TRAVIS_CI_bindings()
  2. set RUBYLIB_PATH for valid rubygems.rb and rbconfig.rb
  3. export ENV to ruby processes

Cheers
Tom

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

6 participants