Comments (11)
Went with the $PATH
option since it's far simpler. 2a495dc
from rbenv.
I think this problem is back with bundler pre. I am getting:
/models/user_spec.rb
/Users/gnufied/.rbenv/versions/1930/bin/ruby: no Ruby script found in input (LoadError)
rake aborted!
I am running latest version of rbenv with ruby 1.9.3.
from rbenv.
Same error occurs with Ruby 1.9.3 and bundler --pre
from rbenv.
Not to pile on, but I'm having this issue too. Any insight?
from rbenv.
+1
% rake spec
...
/Users/artem/.rbenv/versions/1.9.3-p392/bin/ruby: no Ruby script found in input (LoadError)
rake aborted!
/Users/artem/.rbenv/versions/1.9.3-p392/bin/ruby -S rspec ./spec/browser/pagination_spec.rb ...
Which is no wonder (as I understand it) since rspec
is a shim, and not a ruby script.
% which rspec
/Users/artem/.rbenv/shims/rspec
from rbenv.
Looks like this should be reopened since #372 seems to have been reverted?
from rbenv.
No, this is not an issue presently even though that PR got reverted. The current Ruby version's bin directory gets pushed onto PATH as soon as you invoke ruby
, so in fact the -S
flag always has the desired effect.
The difficult problem seems to be allowing shelling out to a different version of Ruby while preserving ruby -S
compatibility.
from rbenv.
Well, I hate to break it to you, but this problem seems to have regressed:
[...]
cd pkg/graphics-1.0.0b4
Successfully built RubyGem
Name: graphics
Version: 1.0.0b4
File: graphics-1.0.0b4.gem
mv graphics-1.0.0b4.gem ..
cd -
/Users/ryan/.rbenv/versions/2.0.0-p645/bin/ruby -S gem push pkg/graphics-1.0.0b4.gem
/Users/ryan/.rbenv/versions/2.0.0-p645/bin/ruby: no Ruby script found in input (LoadError)
rake aborted!
That's using (tried and true) Hoe to release one of my gems. It releases fine via system ruby and fails as above when using rbenv. This from rbenv to rbenv, same version. It uses Gem.ruby
to specify the full path to the ruby binary. which gem
points to the shims directory, but that might be different by the time this comes around via ruby.
from rbenv.
Is the above a shell script? What executes it/what generated it?
from rbenv.
The ruby in question is literally: sh Gem.ruby, "-S", "gem", "push", g
(where g
is the path of the gem to push).
from rbenv.
I just tried to reproduce it with this Rakefile
but can't:
task :hey do
sh Gem.ruby, '-S', 'gem', 'env'
end
What runs the rake task exactly?
from rbenv.
Related Issues (20)
- rbenv commands do nothing (e.g. install) HOT 4
- GRPC in nix does not work
- Helpful install message HOT 3
- Ubuntu 22 - no ruby 3.1.2 HOT 2
- clearer feedback message needed after running rbenv init HOT 1
- Question: why rbenv recommends inserting initial command to `~/.zshrc` instead of `~/.zshenv` or `~/.zprofile` ? HOT 2
- rbenv 1.2.0 (from Homebrew) not installing versions to ~/.rbenv/versions on Mac OS Ventura HOT 2
- Error installing mini_racer: ERROR: Failed to build gem native extension HOT 2
- Windows with WSL2 manual git clone installation method, wrong line endings HOT 4
- `rbenv init` fails in parallel environment HOT 2
- rbenv-doctor script fails: `printc:3: bad substitution` HOT 2
- version `GLIBC_2.38' not found HOT 2
- `rbenv doctor` warns about multiple paths, one symlinks to the other HOT 1
- homebrew ruby: gem command not found
- Multiple instances of rbenv-install HOT 2
- `gem-rehash` inop for `bundle install`
- GOV UK
- rbenv breaks non-interactive shells when switching user and installing version
- Shim doesn't work for Ruby 3.3.0 HOT 5
- Error when use "gem" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rbenv.