4commerce-technologies-ag / rvm-mini Goto Github PK
View Code? Open in Web Editor NEWSmall ruby installer and runtime environment, inspired by rvm (http://rvm.io)
License: MIT License
Small ruby installer and runtime environment, inspired by rvm (http://rvm.io)
License: MIT License
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.
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.
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.
https://github.com/TomFreudenberg/rvm-mini#your-projectbin - for details please read http://niczsoft.com/2013/10/please-hack-my-rails/
Not 100% save that scripts will handle spaces on path-names correctly.
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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.