Navigation Menu

Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined method rubyforge_project=' for class Gem::Specification' (NameError) #3831

Closed
utkarsh2102 opened this issue Jul 14, 2020 · 6 comments
Labels

Comments

@utkarsh2102
Copy link
Contributor

Whilst trying to install rubygems manually, I tried running ruby setup.rb, as suggested in the README.md file.
Upon doing so, I got:

➜  rubygems git:(master) ruby setup.rb
Traceback (most recent call last):
	5: from setup.rb:23:in `<main>'
	4: from setup.rb:23:in `require'
	3: from /home/utkarsh/debian/ruby-team/rubygems/rubygems/lib/rubygems.rb:1347:in `<top (required)>'
	2: from /home/utkarsh/debian/ruby-team/rubygems/rubygems/lib/rubygems.rb:1347:in `require'
	1: from /usr/lib/ruby/vendor_ruby/rubygems/defaults/operating_system.rb:90:in `<top (required)>'
/usr/lib/ruby/vendor_ruby/rubygems/defaults/operating_system.rb:91:in `<class:Specification>': undefined method `rubyforge_project=' for class `Gem::Specification' (NameError)

I believe this has been deprecated and shouldn't really be used 🤔
Am I missing something or is it really a bug!?

@simi
Copy link
Member

simi commented Jul 14, 2020

@utkarsh2102 you do mix system and custom ruby installations. It is not supported. Please install ruby manually (not by system package, for example by ruby-install or rbenv) and update rubygems manually or keep your ruby updated by system (not manually).

@deivid-rodriguez operating_system.rb seems really dangerous place actually. What about to rescue all errors during requiring and next to the stack-trace report user friendly message explaining that there are some problems at rubygems distributor side.

@utkarsh2102
Copy link
Contributor Author

Hi @simi,

you do mix system and custom ruby installations. It is not supported. Please install ruby manually (not by system package, for example by ruby-install or rbenv) and update rubygems manually or keep your ruby updated by system (not manually).

Gah, I see. Thanks for the tip 👍
(we're working on packaging rubygems, btw)

@simi
Copy link
Member

simi commented Jul 14, 2020

@utkarsh2102 yeah, I know. This exact problem should be already fixed at https://salsa.debian.org/ruby-team/rubygems-integration/-/commit/39d3a082f568ec0b6c9acd10e54a4a31a08bd8b5.

@utkarsh2102
Copy link
Contributor Author

utkarsh2102 commented Jul 14, 2020

Aha, I see. Thanks \o/

P.S. figured why it still doesn't work -- this has been released just a couple of hours back. So the new update of rubygems-integration should fix this!

@hsbt
Copy link
Member

hsbt commented Jul 14, 2020

Duplicate with #3068

@hsbt hsbt closed this as completed Jul 14, 2020
@deivid-rodriguez
Copy link
Member

@deivid-rodriguez operating_system.rb seems really dangerous place actually. What about to rescue all errors during requiring and next to the stack-trace report user friendly message explaining that there are some problems at rubygems distributor side.

@simi This is a very good idea in my opinion 👍.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants