Uninstall Gems

  • Thread starter trans. (T. Onoma)
  • Start date
T

trans. (T. Onoma)

What's the proper way to uninstall RubyGems?

If you wonder why I'd want to:
1. Screwy error messages.
2. RUBYOPT causes conflict with RPA and compiling Ruby.
3. I like setup.rb best anyway.

What I like about it that I will miss?
1. Command line interface is well done.
2. Version control is a very nice feature.
3. Love the name.

Unfortunately the later doesn't quite overcome the former, at least for my
tastes.

Thanks,
T.
 
C

Chad Fowler

What's the proper way to uninstall RubyGems?

If you wonder why I'd want to:
1. Screwy error messages.
2. RUBYOPT causes conflict with RPA and compiling Ruby.
3. I like setup.rb best anyway.

What I like about it that I will miss?
1. Command line interface is well done.
2. Version control is a very nice feature.
3. Love the name.

Unfortunately the later doesn't quite overcome the former, at least for my
tastes.

Thanks,
T.


(for example)
rm -rf /usr/local/lib/ruby/site_ruby/1.8/rubygems*
rm -rf /usr/local/lib/ruby/gems/
rm /usr/local/bin/gem* # be careful on this one

I'd love a list (sent personally to me, preferably) of the "Screwy"
error messages. We're working on the RUBYOPT thing.

--

Chad Fowler
http://chadfowler.com
http://rubycentral.org
http://rubygarden.org
http://rubygems.rubyforge.org (over 20,000 gems served!)
 
M

Mauricio Fernández

What's the proper way to uninstall RubyGems?
[...]
(for example)
rm -rf /usr/local/lib/ruby/site_ruby/1.8/rubygems*
rm -rf /usr/local/lib/ruby/gems/
rm /usr/local/bin/gem* # be careful on this one

One would also have to remove the stubs in bin/ carefully, I guess.
I'd love a list (sent personally to me, preferably) of the "Screwy"
error messages. We're working on the RUBYOPT thing.

I'd appreciate some info on this. How are you going to solve the problem
when building ruby?
 
J

Jim Weirich

I must have missed something. What exactly is the problem with compiling ruby
with RUBYOPT? (I searched the RubyGemsDev mailing list and couldn't find a
reference).
 
A

Austin Ziegler

I must have missed something. What exactly is the problem with
compiling ruby with RUBYOPT? (I searched the RubyGemsDev mailing
list and couldn't find a reference).

Once miniruby is built, if RUBYOPT is set, then it can't find
"ubygems" and the build dies.

-austin
 
J

Jim Weirich

Once miniruby is built, if RUBYOPT is set, then it can't find
"ubygems" and the build dies.

I still must be missing something ... with Ruby 1.8.2.preview2 ...

traken$ echo $RUBYOPT
rubygems
traken$ make
gcc -g -O2 -I. -I. -c array.c
gcc -g -O2 -I. -I. -c bignum.c
gcc -g -O2 -I. -I. -c class.c

[... many line elided ...]

ar rcu libruby-static.a array.o bignum.o class.o compar.o dir.o dln.o
enum.o error.o eval.o file.o gc.o hash.o inits.o io.o marshal.o math.o
numeric.o object.o pack.o parse.o process.o prec.o random.o range.o re.o
regex.o ruby.o signal.o sprintf.o st.o string.o struct.o time.o util.o
variable.o version.o dmyext.o
gcc -g -O2 -I. -I. -c main.c
gcc -g -O2 -rdynamic main.o dmyext.o libruby-static.a -ldl -lcrypt -lm
-o miniruby
compiling Win32API
compiling bigdecimal

[... more lines elided ...]

make[1]: Entering directory `/home/jim/pkgs/ruby-1.8.2-preview3'
gcc -g -O2 -rdynamic -L. main.o -lruby-static -ldl -lcrypt -lm -o
ruby
make[1]: Leaving directory `/home/jim/pkgs/ruby-1.8.2-preview3'
traken$ make test
test succeeded
traken$ echo $RUBYOPT
rubygems

AFAICT miniruby builds fine. Am I doing something different than the those
having a problem?
 
G

gabriele renzi

Jim Weirich ha scritto:
AFAICT miniruby builds fine. Am I doing something different than the those
having a problem?

maybe you have RUBYLIB set to search in the old library path, and those
having a problem don't have it set so miniruby fails to load from
$ruby_build_dir
# already compiled, so quick show:
C:\ruby-build\ruby>make
c:\ruby-build\ruby\miniruby.exe: No such file to load -- ubygems (LoadError)
make: *** [all] Error 1
 
N

nobu.nokada

Hi,

At Sun, 12 Dec 2004 20:22:22 +0900,
gabriele renzi wrote in [ruby-talk:123401]:
maybe you have RUBYLIB set to search in the old library path, and those
having a problem don't have it set so miniruby fails to load from
$ruby_build_dir
# already compiled, so quick show:
C:\ruby-build\ruby>make
c:\ruby-build\ruby\miniruby.exe: No such file to load -- ubygems (LoadError)
make: *** [all] Error 1

On dosish systems, load paths are relative to the path of the
ruby DLL.

Does it work by adding a line "RUBYOPT=" to Makefile?
 
J

Jim Weirich

gabriele renzi wrote in [ruby-talk:123401]:
maybe you have RUBYLIB set to search in the old library path, and those
having a problem don't have it set so miniruby fails to load from
$ruby_build_dir
# already compiled, so quick show:
C:\ruby-build\ruby>make
c:\ruby-build\ruby\miniruby.exe: No such file to load -- ubygems
(LoadError) make: *** [all] Error 1

On dosish systems, load paths are relative to the path of the
ruby DLL.

Ahhh ... thanks. This does make sense. I do very little development on
windows systems and didn't realize the difference.
Does it work by adding a line "RUBYOPT=" to Makefile?

You should also be able to create a launch script that sets the value of
RUBYOPT during a build.
 
G

gabriele renzi

(e-mail address removed) ha scritto:
On dosish systems, load paths are relative to the path of the
ruby DLL.

Does it work by adding a line "RUBYOPT=" to Makefile?

Yes it does.
I have a batch script that sets up stuff (cvs checkout, setting paths
environment variables etc), so I never bothered to try this.
Do you think that the generated Makefile
should have this by default to avoid this kind of problems?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,164
Messages
2,570,901
Members
47,439
Latest member
elif2sghost

Latest Threads

Top