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

Already on GitHub? Sign in to your account

ruby-1.9.3-p374 - #adjusting #shebangs for (gem irb erb ri rdoc testrb rake). #1461

Closed
wonbyte opened this Issue Jan 23, 2013 · 9 comments

Comments

Projects
None yet
2 participants

wonbyte commented Jan 23, 2013

Running Max OSX 10.8.2 and using Homebrew.

I installed rvm.
ran: rvm get head
rvm install rvm install ruby-1.9.3-p374 --with-openssl-dir=brew --prefix openssl

and I get the below which according to mpapis should not be showing me the #adjusting #shebang prompts.

Fetching yaml-0.1.4.tar.gz to /Users/gps/.rvm/archives

################################################################## 100.0%

Extracting yaml to /Users/gps/.rvm/src/yaml-0.1.4
Configuring yaml in /Users/gps/.rvm/src/yaml-0.1.4.
Compiling yaml in /Users/gps/.rvm/src/yaml-0.1.4.
Installing yaml to /Users/gps/.rvm/usr
Installing Ruby from source to: /Users/gps/.rvm/rubies/ruby-1.9.3-p374, this may take a while depending on your cpu(s)...
ruby-1.9.3-p374 - #downloading ruby-1.9.3-p374, this may take a while depending on your connection...

################################################################## 100.0%

ruby-1.9.3-p374 - #extracting ruby-1.9.3-p374 to /Users/gps/.rvm/src/ruby-1.9.3-p374
ruby-1.9.3-p374 - #extracted to /Users/gps/.rvm/src/ruby-1.9.3-p374
ruby-1.9.3-p374 - #configuring
ruby-1.9.3-p374 - #compiling
ruby-1.9.3-p374 - #installing
Retrieving rubygems-1.8.24

################################################################## 100.0%

Extracting rubygems-1.8.24 ...
Removing old Rubygems files...
Installing rubygems-1.8.24 for ruby-1.9.3-p374 ...
Installation of rubygems completed successfully.
Saving wrappers to '/Users/gps/.rvm/bin'.
ruby-1.9.3-p374 - #adjusting #shebangs for (gem irb erb ri rdoc testrb rake).
overwrite /Users/gps/.rvm/rubies/ruby-1.9.3-p374/bin/gem? (y/n [n]) y
overwrite /Users/gps/.rvm/rubies/ruby-1.9.3-p374/bin/irb? (y/n [n]) y
overwrite /Users/gps/.rvm/rubies/ruby-1.9.3-p374/bin/erb? (y/n [n]) y
overwrite /Users/gps/.rvm/rubies/ruby-1.9.3-p374/bin/ri? (y/n [n]) y
overwrite /Users/gps/.rvm/rubies/ruby-1.9.3-p374/bin/rdoc? (y/n [n]) y
overwrite /Users/gps/.rvm/rubies/ruby-1.9.3-p374/bin/testrb? (y/n [n]) y
overwrite /Users/gps/.rvm/rubies/ruby-1.9.3-p374/bin/rake? (y/n [n]) y
ruby-1.9.3-p374 - #importing default gemsets, this may take time ...
Install of ruby-1.9.3-p374 - #complete

@ghost ghost assigned mpapis Jan 23, 2013

@mpapis mpapis closed this in 51402ce Jan 23, 2013

wonbyte commented Jan 24, 2013

Still seeing this on install:

ruby-1.9.3-p374 - #adjusting #shebangs for (gem irb erb ri rdoc testrb rake).
overwrite /Users/gps/.rvm/rubies/ruby-1.9.3-p374/bin/gem? (y/n [n]) y
overwrite /Users/gps/.rvm/rubies/ruby-1.9.3-p374/bin/irb? (y/n [n]) y
overwrite /Users/gps/.rvm/rubies/ruby-1.9.3-p374/bin/erb? (y/n [n]) y
overwrite /Users/gps/.rvm/rubies/ruby-1.9.3-p374/bin/ri? (y/n [n]) y
overwrite /Users/gps/.rvm/rubies/ruby-1.9.3-p374/bin/rdoc? (y/n [n]) y
overwrite /Users/gps/.rvm/rubies/ruby-1.9.3-p374/bin/testrb? (y/n [n]) y
overwrite /Users/gps/.rvm/rubies/ruby-1.9.3-p374/bin/rake? (y/n [n]) y

Owner

mpapis commented Jan 24, 2013

can you please provide a gist of:

rvm get head
rvm --trace install ruby-1.9.3-p374 --with-openssl-dir=$( brew --prefix openssl )

@mpapis mpapis reopened this Jan 24, 2013

wonbyte commented Jan 27, 2013

using --trace gives: 'Could not detect ruby version/name for installation, please be more specific.\n'
Could not detect ruby version/name for installation, please be more specific.

without --trace install runs.

https://gist.github.com/4650508

wonbyte commented Jan 27, 2013

rvm get head

(gps ~)$ rvm install ruby-1.9.3-p374 --with-openssl-dir=brew --prefix openssl
Fetching yaml-0.1.4.tar.gz to /Users/gps/.rvm/archives
######################################################################## 100.0%
Extracting yaml to /Users/gps/.rvm/src/yaml-0.1.4
Configuring yaml in /Users/gps/.rvm/src/yaml-0.1.4.
Compiling yaml in /Users/gps/.rvm/src/yaml-0.1.4.
Installing yaml to /Users/gps/.rvm/usr
Installing Ruby from source to: /Users/gps/.rvm/rubies/ruby-1.9.3-p374, this may take a while depending on your cpu(s)...
ruby-1.9.3-p374 - #downloading ruby-1.9.3-p374, this may take a while depending on your connection...
######################################################################## 100.0%
ruby-1.9.3-p374 - #extracting ruby-1.9.3-p374 to /Users/gps/.rvm/src/ruby-1.9.3-p374
ruby-1.9.3-p374 - #extracted to /Users/gps/.rvm/src/ruby-1.9.3-p374
ruby-1.9.3-p374 - #configuring
ruby-1.9.3-p374 - #compiling
ruby-1.9.3-p374 - #installing
Retrieving rubygems-1.8.25
######################################################################## 100.0%
Extracting rubygems-1.8.25 ...
Removing old Rubygems files...
Installing rubygems-1.8.25 for ruby-1.9.3-p374 ...
Installation of rubygems completed successfully.
Saving wrappers to '/Users/gps/.rvm/bin'.
ruby-1.9.3-p374 - #adjusting #shebangs for (gem irb erb ri rdoc testrb rake).
overwrite /Users/gps/.rvm/rubies/ruby-1.9.3-p374/bin/gem? (y/n [n]) y
overwrite /Users/gps/.rvm/rubies/ruby-1.9.3-p374/bin/irb? (y/n [n]) y
overwrite /Users/gps/.rvm/rubies/ruby-1.9.3-p374/bin/erb? (y/n [n]) y
overwrite /Users/gps/.rvm/rubies/ruby-1.9.3-p374/bin/ri? (y/n [n]) y
overwrite /Users/gps/.rvm/rubies/ruby-1.9.3-p374/bin/rdoc? (y/n [n]) y
overwrite /Users/gps/.rvm/rubies/ruby-1.9.3-p374/bin/testrb? (y/n [n]) y
overwrite /Users/gps/.rvm/rubies/ruby-1.9.3-p374/bin/rake? (y/n [n]) y
ruby-1.9.3-p374 - #importing default gemsets, this may take time ...
Install of ruby-1.9.3-p374 - #complete

(gps ~)$

Owner

mpapis commented Jan 27, 2013

@wonbyte what system/version is this, what version of shell are you running, there is something bizarre going on.

wonbyte commented Jan 28, 2013

It's OSX 10.8.2 using Homebrew.

GNU bash, version 4.2.42(2)-release (i386-apple-darwin12.2.0)
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Owner

mpapis commented Feb 1, 2013

@wonbyte any chance you have an alias mv="mv -i" or alias cp="cp -i"?

wonbyte commented Feb 1, 2013

alias cp='cp -i'
alias mv='mv -i'
alias rm='rm -i'

👍

If this is the issue, I don't mind just saying 'y' to the prompts as long as that is the correct option to choose.

@mpapis mpapis closed this in f9f4413 Feb 1, 2013

Owner

mpapis commented Feb 1, 2013

as easy as:

grep -rlE '[^\](cp |mv |rm )' scripts/ | xargs sed -Ei 's#([^\])(cp |mv |rm )#\1\\\2#'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment