I’m testing a new host. All is not so great. It is bsd. I’m kind of new
to unix.
* [Download]
<http://rubyforge.org/project/showfiles.php?group_id=126> RubyGems
* check
* Unpack the distribution (zip or tar.gz)
* check
* cd rubygems-version.number
* yep
* /made myself super use/r
* ruby install.rb (NOTE: You'll need to have write access to your
Ruby site_library directory).
The install of gems seemed to go ok.(i dont remember the message
exactly but it was positive)
But when running
#>gem -Rl
#>env: ruby: No such file or directory
Hi Paul. We us a program called “env” with the argument “ruby” to
find ruby in the path and run the script with whatever ruby was found
in the path. By the look of the error message, the env program can’t
find ruby on your system for some reason. I ran it on my Mac with a
bogus program name and you can see that the output is similar:
tashi-delek:~ chadfowler$ /usr/bin/env hello_paul
env: hello_paul: No such file or directory
Now if I run env manually with “ruby” as the parameter, I see:
tashi-delek:~ chadfowler$ env ruby -e ‘puts “hello”’
hello
It appears that the “env” program doesn’t deal with shell aliases (not
surprising):
tashi-delek:~ chadfowler$ alias myruby=/usr/local/bin/ruby
tashi-delek:~ chadfowler$ myruby -v
ruby 1.9.0 (2004-04-30) [powerpc-darwin]
tashi-delek:~ chadfowler$ /usr/bin/env myruby
env: myruby: No such file or directory
Can you try changing the first line of your “gem” script to look like:
#!/usr/local/bin/ruby18
Alternatively, you could create a symbolic link to your ruby
interpreter and call it “ruby” instead of using the aliases:
ln -s /usr/local/bin/ruby18 /usr/local/bin/ruby
Chad
···
On Mon, 10 May 2004 08:18:53 +0900, Paul Vudmaska paul@vudmaska.com wrote:
I’ve restarted my terminal in case there was a path problem.
I’ve got these aliases in .cshrc
alias ruby /usr/local/bin/ruby18
alias irb /usr/local/bin/irb18
If that makes a difference.
Anyway, thanks.