Coder Social home page Coder Social logo

rvm-mini's People

Contributors

tomfreudenberg avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

rvm-mini's Issues

dyld: Library not loaded: libgmp.10.dylib (MAC OSX)

If you try to install ruby release > 2.2.3 the rvm binaries have a builtin dependency to libgmp on MAC. So you need to resolve this before a successful installation.

You need to have a valid Xcode installation to proceed.

Download libgmp source

Get latest source files from: https://gmplib.org/#DOWNLOAD

Extract the downloaded source somewhere and cd that archive. Do the build by running:

./configure

make

make check

sudo make install

After that you should be able to run ruby and installation without an issue.

dyld: Library not loaded - fix path compiled in binary (MAC OSX)

When using binaries from other sites like http://rubies.travis-ci.org/ sometime ruby won't start.

./ruby --version

and the error:

dyld: Library not loaded: /Users/travis/.rvm/rubies/ruby-2.1.0/lib/libruby.2.1.0.dylib
  Referenced from: ./ruby
  Reason: image not found
Abort trap: 6

That is often in case of missing or wrong / fixed linked dynamic libraries. To check that you may use:

otool -L ruby

The output looks like:

ruby:
        /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 1451.0.0)
        /Users/travis/.rvm/rubies/ruby-2.1.0/lib/libruby.2.1.0.dylib (compatibility version 2.1.0, current version 2.1.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.0.0)
        /usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 228.0.0)

To replace such a fix link and enable relative pathes to the binary, you can use install_name_tool like:

install_name_tool -change /Users/travis/.rvm/rubies/ruby-2.1.0/lib/libruby.2.1.0.dylib @loader_path/../lib/libruby.2.1.0.dylib ruby

Now that binary can be moved elsewhere to your system according with the libraries and will work.

Not sure why people doing fix compiling but you may solve that.

Fix: patch libruby.x.y.z.dylib from travis to remove unwanted LOAD_PATH

When using binaries from rubis.travis-ci.org there will be a fix LOAD_PATH linking /Users/travis/.rvm/...

To prevent that from being used, the strings should be emptied by filling / patching with ZEROS

Test with perl regex 's#/Users/travis/.rvm/ruby-#\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0#g' was successfull.

Can't run "rvm-mini -i" due outdated rubygems and SSL error

When using e.g. rvm-mini and latest (current 2.2.5) rvm binaries for MAC OSX, you will get an error when gem tries to install bundler like:

bin/rvm-mini --ruby-install

Start ruby installation ...

Get ruby package for os/machine type osx/x86_64 distribution release 10.11.
load ruby binaries from: https://rvm.io/binaries/osx/10.11/x86_64/ruby-2.2.5.tar.bz2

Check bundler ... bundle seems to be not installed!
now installing ...

ERROR:  Could not find a valid gem 'bundler' (>= 0), here is why:
          Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=error: certificate verify failed (https://api.rubygems.org/specs.4.8.gz)

I am sorry, there was an error during bundler installation. Please retry. Abort!

This happens while the packed rvm gem version is outdated due openssl libraries. For that you need to update rubygems.

Instead of doing a complicated manual or insecure rubygems update, we add the feature option --rubygems-update [2.6.7] to the installer.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.