error updating ruby and installing API demo !!!

256 views
Skip to first unread message

Andrew

unread,
May 19, 2012, 10:36:08 AM5/19/12
to bigbluebu...@googlegroups.com
sudo update-alternatives --install /usr/bin/ruby ruby /usr/bin/ruby1.9.2 500\
                       
--slave   /usr/bin/ri   ri   /usr/bin/ri1.9.2\
                       
--slave   /usr/bin/irb  irb  /usr/bin/irb1.9.2\ 

                       
--slave   /usr/bin/gem  gem  /usr/bin/gem1.9.2\
                       
--slave   /usr/bin/erb  erb  /usr/bin/erb1.9.2\
                       
--slave   /usr/bin/rdoc rdoc /usr/bin/rdoc1.9.2

it gives me :
update-alternatives: error: alternative gem can't be slave of ruby: it is a master alternative.

also when trying :
sudo apt-get install bbb-demo

shows :
 
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
  bbb-playback-slides: Depends: bbb-record-core but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).

Any help :( 

Fred Dixon

unread,
May 19, 2012, 1:00:11 PM5/19/12
to bigbluebu...@googlegroups.com
Hi Andrew,

It might be a cut-and-paste problem with the script.  Just to make sure you have the script correct, can you download it from


we've uploaded it as install_ruby.sh

Download this script, copy it to your computer, make it executable, and try running it again.


Regards,... Fred
-- 
BigBlueButton Developer
BigBlueButton on twitter: @bigbluebutton





--
You received this message because you are subscribed to the Google Groups "BigBlueButton-Setup" group.
To view this discussion on the web visit https://groups.google.com/d/msg/bigbluebutton-setup/-/2YqPTnZsFbEJ.
To post to this group, send email to bigbluebu...@googlegroups.com.
To unsubscribe from this group, send email to bigbluebutton-s...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/bigbluebutton-setup?hl=en.





Andrew

unread,
May 19, 2012, 3:31:51 PM5/19/12
to bigbluebu...@googlegroups.com
**********************************************************************

 Done. The new package has been installed and saved to

 /tmp/ruby-1.9.2-p290/ruby1.9.2_1.9.2-p290-1_amd64.deb

 You can remove it from your system anytime using:

      dpkg -r ruby1.9.2

**********************************************************************

update-alternatives: error: alternative gem can't be slave of ruby: it is a master alternative.

The same problem :( :( !!!!

ruby 1.8.7 (2010-01-10 patchlevel 249) [x86_64-linux]

what could i do  ???!!!
 

Fred Dixon

unread,
May 19, 2012, 4:30:07 PM5/19/12
to bigbluebu...@googlegroups.com
Hi Andrew,

Your last post gave us the clue.  Do you already have ruby 1.8.7 installed?  If so, please remove all the packages related to ruby 1.8.7, then try the installation again.


Regards,... Fred
-- 
BigBlueButton Developer
BigBlueButton on twitter: @bigbluebutton


 

--
You received this message because you are subscribed to the Google Groups "BigBlueButton-Setup" group.

Andrew

unread,
May 20, 2012, 12:36:34 PM5/20/12
to bigbluebu...@googlegroups.com
Thanks Fred,

I have purged ruby and re-installed it via the given file "install-ruby.sh" ... but it gives me :

update-alternatives: error: alternative gem can't be slave of ruby: it is a master alternative.

Note that : " gem -v " gives me :

 1.3.5

I know it should be : 1.3.7

Really i don't know what to do ??!!  
:(  :(    

Calvin Walton

unread,
May 20, 2012, 12:44:57 PM5/20/12
to bigbluebu...@googlegroups.com
On Sun, 2012-05-20 at 09:36 -0700, Andrew wrote:
> Thanks Fred,
>
> I have purged ruby and re-installed it via the given file "install-ruby.sh"
> ... but it gives me :
>
> update-alternatives: error: alternative gem can't be slave of ruby: it is a
> > master alternative.

Hi Andrew,

If you edit the install-ruby.sh script, and replace the
'update-alternatives' command near the end of that file with the
following:

update-alternatives --install /usr/bin/ruby ruby /usr/bin/ruby1.9.2 500 \
--slave /usr/bin/ri ri /usr/bin/ri1.9.2 \
--slave /usr/bin/irb irb /usr/bin/irb1.9.2 \
--slave /usr/bin/erb erb /usr/bin/erb1.9.2 \
--slave /usr/bin/rdoc rdoc /usr/bin/rdoc1.9.2
update-alternatives --install /usr/bin/gem gem /usr/bin/gem1.9.2 500

Then it should work correctly. I will look into updating the
documentation on Monday.

--
Calvin Walton <calvin...@kepstin.ca>
Blindside Networks

Andrew

unread,
May 20, 2012, 1:09:37 PM5/20/12
to bigbluebu...@googlegroups.com
update-alternatives: error: unknown argument ` '
./install-ruby.sh: line 20: --slave: command not found
./install-ruby.sh: line 21: --slave: command not found
./install-ruby.sh: line 22: --slave: command not found
./install-ruby.sh: line 23: --slave: command not found
update-alternatives: using /usr/bin/gem1.9.2 to provide /usr/bin/gem (gem) in auto mode.

That is what i have :( :( 

Andrew

unread,
May 20, 2012, 2:13:09 PM5/20/12
to bigbluebu...@googlegroups.com
corrected :)
the spaces were the problem :)

Thanks for the help ..

Calvin Walton

unread,
May 22, 2012, 1:31:21 PM5/22/12
to bigbluebu...@googlegroups.com
I have now updated the documentation at
http://code.google.com/p/bigbluebutton/wiki/08InstallationUbuntu#2._Install_Ruby and the installation script download at http://code.google.com/p/bigbluebutton/downloads/detail?name=install_ruby.sh
with these changes - hopefully this will fix the issue for everyone else
now.

--
Calvin Walton <calvin...@kepstin.ca>

Reply all
Reply to author
Forward
0 new messages