I try to install a ruby version via rvm but the installation fails with the following error
> ruby-2.4.5 - #making binaries executable.
> Error running '__rvm_set_executable /Users/username/.rvm/rubies/ruby-2.4.5/bin/*',
please read /Users/username/.rvm/log/1541865833_ruby-2.4.5/chmod.bin.log
before it I read a note that
> No binary rubies available for: osx/10.14/x86_64/ruby-2.4.5.
I googled a lot to find a solution and many posts mentioned that it can be problem with Xcode, but I installed it and the problem is still present
I have MacOS Mojave, version 10.14.1
Log below
current path: /Users/user/.rvm/src/ruby-2.4.5
GEM_HOME=/Users/user/.rvm/gems/ruby-2.4.1
PATH=/usr/local/opt/coreutils/bin:/usr/local/opt/pkg-config/bin:/usr/local/opt/libtool/bin:/usr/local/opt/automake/bin:/usr/local/opt/autoconf/bin:/Users/user/Library/Python/3.7/bin:/Library/Frameworks/Python.framework/Versions/3.7/lib/python/site-packages:/Users/user/.rvm/gems/ruby-2.4.1/bin:/Users/user/.rvm/gems/ruby-2.4.1#global/bin:/Users/user/.rvm/rubies/ruby-2.4.1/bin:/Users/user/.nvm/versions/node/v10.9.0/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/Postgres.app/Contents/Versions/latest/bin:/Users/user/.rvm/bin
GEM_PATH=/Users/user/.rvm/gems/ruby-2.4.1:/Users/user/.rvm/gems/ruby-2.4.1#global
command(2): __rvm_set_executable /Users/user/.rvm/rubies/ruby-2.4.5/bin/*
++ for __file in '"$#"'
++ [[ -x /Users/user/.rvm/rubies/ruby-2.4.5/bin/* ]]
++ chmod +x '/Users/user/.rvm/rubies/ruby-2.4.5/bin/*'
chmod: /Users/user/.rvm/rubies/ruby-2.4.5/bin/*: No such file or directory
Related
I'm getting the following error while trying to install Ruby 2.0.0 with RVM (Linux Mint 17)
A previous answer here recommends that I "Remove broken or 404 repos from my sources list /etc/apt/sources.list"
The problem is that on Linux Mint 17, my sources list has only one line #deb cdrom:[Linux Mint 17 _Qiana_ - Release amd64 2xxxxxxx]/ trusty contrib main non-free.
Therefore,the three broken 404 repos:
http://ppa.launchpad.net/w-vollprecht/ppa/ubuntu/dists/trusty/main/source/Sources 404 not found
http://ppa.launchpad.net/w-vollprecht/ppa/ubuntu/dists/trusty/main/binary-amd64/Packages 404 not found
http://ppa.launchpad.net/w-vollprecht/ppa/ubuntu/dists/trusty/main/binary-i386/Packages 404 not found
are not in this sources.list file
Can you help me on this?
$ rvm install ruby 2.0.0
Searching for binary rubies, this might take some time.
No binary rubies available for: mint/17/x86_64/ruby-2.0.0-p481.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for mint.
Installing requirements for mint.
Updating system................
Error running 'requirements_debian_update_system ruby-2.0.0-p481',
showing last 15 lines of /home/james/.rvm/log/1xxxxxxxxx_ruby-2.0.0-p481/update_system.log
++ case "${TERM:-dumb}" in
++ case "$1" in
++ [[ -t 2 ]]
++ return 1
++ printf %b 'There has been error while updating '\''apt-get'\'', please give it some time and try again later.
For 404 errors check your sources configured in:
/etc/apt/sources.list
/etc/apt/sources.list.d/*.list
\n'
There has been error while updating 'apt-get', please give it some time and try again later.
For 404 errors check your sources configured in:
/etc/apt/sources.list
/etc/apt/sources.list.d/*.list
++ return 100
Requirements installation failed with status: 100.
As it says in the answer I linked to in my question,
RVM will fail if you don't remove or comment out any broken or 404 Repos from your sources list /etc/apt/sources.list
The problem is that for some reason, you cant get direct access to all the repos on LinuxMint 17... unlike Ubuntu.
I ran sudo apt-get update:
This will show you the broken packages at the end... For me, this was:
http://ppa.launchpad.net/w-vollprecht/ppa/ubuntu/dists/trusty/main/source/Sources
404 not found
http://ppa.launchpad.net/w-vollprecht/ppa/ubuntu/dists/trusty/main/binary-amd64/Packages
404 not found
http://ppa.launchpad.net/w-vollprecht/ppa/ubuntu/dists/trusty/main/binary-i386/Packages
404 not found
Since I cant just comment it out because I don't have access to the full source.list (or I cant find it), I found out that in Linux Mint 17, you can use the GUI.
So I went to Menu >> Software >> Software Sources >> PPA to un-tick the broken Launchpad Repos.
After doing this, I ran rvm install 2.0.0 again and everything worked as expected.
The new standard sources.list moved to
/etc/apt/sources.list.d/official-package-repositories.list
And before modifications of it try to run
sudo apt-get update
I installed Emscripten using the instructions here, with a few differences for 13.10:
Instead of compiling and setting up clang 3.2, installed from the repository since it's 3.2. (clang --version shows expected output)
Linked the llvm since the compiler didn't find it:
sudo ln -s /usr/bin/llvm-link-3.2 /usr/bin/llvm-link
sudo ln -s /usr/bin/llvm-ar-3.2 /usr/bin/llvm-ar
But now I get an error about the nonexistence of /usr/bin/opt, even though ~/.emscripten has no mention of that directory:
$ ./em++ tests/hello_world.cpp
WARNING root: LLVM version appears incorrect (seeing "version", expected "3.2")
INFO root: (Emscripten: Running sanity checks)
CRITICAL root: Cannot find /usr/bin/opt, check the paths in ~/.emscripten
As described here, there were several more that needed links from -3.2 to normal.
Check /usr/bin installed files from llvm-3.2 package:
dpkg -L llvm-3.2 | grep /usr/bin/ | sort
Create sym-links without version number
sudo ln -s /usr/bin/llvm-ar-3.2 /usr/bin/llvm-ar
...
sudo ln -s /usr/bin/opt-3.2 /usr/bin/opt
Note: Don't forget 5 files named no include "llvm-". ( bugpoint, c-index-test, llc, macho-dump, opt)
Check /usr/bin installed files from llvm-3.2-runtime package:
dpkg -L llvm-3.2-runtime | grep /usr/bin/ | sort
Create sym-link without version number:
sudo ln -s /usr/bin/lli-3.2 /usr/bin/lli
Run Emscripten:
emcc
http://www.ehow.co.uk/how_8733332_install-boost-mac.html
As shown in the above link, I just downloaded boost_1_49_0 version on my mac 10.6.8 os x and decompressed in the directory where i want to install. and next step is to type ./bootstrap.sh.
but in the folder of boost_1_49_0 has only two other files:
$ ls
LICENSE_1_0.txt bjam
$ ./bootstrap.sh
-bash: ./bootstrap.sh: No such file or directory
$ ./bjam architecture=combined
Unable to load Boost.Build: could not find "boost-build.jam"
---------------------------------------------------------------
Attempted search from /Users/sungheeoh/seq_tools/boost-jam-3.1.18-1-macosxx86_64
up to the root and in these directories
from BOOST_BUILD_PATH and BOOST_ROOT: /usr/share/boost-build.
Please consult the documentation at 'http://www.boost.org'.
could you please let me know if i missed something here?
CopyStringsFile ../StepMania.app/Contents/Resources/it.lproj/Localizable.strings it.lproj/Localizable.strings
cd ~/OpenSource/GameDev/StepMania/PBProject
setenv ICONV /usr/bin/iconv
/Developer/Library/Xcode/Plug-ins/CoreBuildTasks.xcplugin/Contents/Resources/copystrings --validate --inputencoding utf-16 --outputencoding UTF-16 it.lproj/Localizable.strings --outdir ~/OpenSource/GameDev/StepMania/PBProject/../StepMania.app/Contents/Resources/it.lproj
error: can't exec '/Developer/Library/Xcode/Plug-ins/CoreBuildTasks.xcplugin/Contents/Resources/copystrings' (No such file or directory)
Command /Developer/Library/Xcode/Plug-ins/CoreBuildTasks.xcplugin/Contents/Resources/copystrings failed with exit code 71
But when I navigate to that location, I have the file (copystrings).
Anybody have any solutions?
Using Xcode 3.2.3 (Latest)
Mac OS X 10.6.4
I'm also using the latest SVN of StepMania, if you want to look at the localization files.
https://svn.stepmania.com/svn/trunk/stepmania/PBProject/
I had on old symlink to ruby. I originally thought this wasn't related to ruby... but as it turns out.. it is.
sudo ln -s /opt/local/bin/ruby /usr/bin/ruby
Make sure to delete the old /usr/bin/ruby first.
Currently Google SketchUp for Mac has Ruby version 1.8.5 which I find a bit outdated. I can update Ruby to 1.8.7 (OSX's version) by the following commands
$ cd /Applications/Google\ SketchUp\ 7/SketchUp.app/Contents/Frameworks/Ruby.framework/Versions/Current
$ ls
Headers/ Resources/ Ruby
$ ls Headers/
config.h defines.h intern.h missing.h ruby.h
$ rm -r Headers
$ ln -s /System/Library/Frameworks/Ruby.framework/Headers
$ ln -fs /System/Library/Frameworks/Ruby.framework/Ruby
SketchUp starts without a problem and Ruby console shows version 1.8.7.
1.9.2
Now I try to go further and update to 1.9.2-rc2. Google SketchUp requires i386 binary, which can be produced by the following commands
$ cd ~/ruby-1.9.2-rc2/
$ ARCHFLAGS="-arch i386" CFLAGS="-arch i386" LDFLAGS="-arch i386" ./configure --with-arch=i386
$ make && sudo make install
Then I copy the necessary files to SketchUp:
$ cd /Applications/Google\ SketchUp\ 7/SketchUp.app/Contents/Frameworks/Ruby.framework/
$ rm Headers Ruby
$ cp /usr/local/bin/ruby Ruby
$ mkdir Headers
$ cp /usr/local/include/ruby-1.9.1/i386-darwin10.4.0/ruby/config.h Headers/
$ cp /usr/local/include/ruby-1.9.1/ruby.h Headers/
$ cp -r /usr/local/include/ruby-1.9.1/ruby/* Headers/
$ ls Headers
backward/ defines.h dl.h intern.h missing.h re.h ruby.h util.h vm.h
config.h digest.h encoding.h io.h oniguruma.h regex.h st.h version.h
and when I try to start SketchUp I get the following error report
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Dyld Error Message:
Library not loaded: #executable_path/../Frameworks/Ruby.framework/Versions/A/Ruby
Referenced from: /Applications/Google SketchUp 7/SketchUp.app/Contents/MacOS/SketchUp
Reason: no suitable image found. Did find:
/Applications/Google SketchUp 7/SketchUp.app/Contents/MacOS/../Frameworks/Ruby.framework/Versions/A/Ruby: can't map
/Applications/Google SketchUp 7/SketchUp.app/Contents/MacOS/../Frameworks/Ruby.framework/Versions/A/Ruby: can't map
/usr/local/lib/Ruby: not a file
/usr/lib/Ruby: not a file
Model: MacBookPro7,1, BootROM MBP71.0039.B05, 2 processors, Intel Core 2 Duo, 2.4 GHz, 4 GB, SMC 1.62f5
Could you tell me why?
UPDATE1
Dan Rathbun made some tests and found the following
On Win32 when I tried to get Sketchup
to load any 1.9.x I got an "Entry
point not found" for the ruby C
function "rb_set_kcode" which is no
longer in 1.9.x (it was renamed, and
the Ruby people did not alias the old
name to the new name.)
Basically Sketchup calls rb_set_kcode
to set the character encoding to UTF8
just after loading the Ruby
interpreter. It works fine for any
Ruby in the 1.8.x branch, but in 1.9.x
the Ruby project totally reengineered
the character encoding, and gave all
the C functions new identifiers, and
added alot more functions.
The solution for 1.9.x and Sketchup
seems to be that Sketchup needs to be
"Ruby Version Agile", which means a
coding change by the Google Guys in
Boulder.
The C level API has changed in 1.9.1. Notice that the paths to gems indicate the API compatibility: .../1.8/... for the 1.8 line and .../1.9.1/... for the 1.9.2 line.
This makes it very difficult to upgrade without recompiling.
You can require "backports"; this will get you the most of the new methods of 1.9.x, but not the new syntax or the string encoding.