webby, ubuntu and gems

M

Martin DeMello

I've recently switched distributions to ubuntu, and I'm having
problems getting webby up and running. (I suspect this a general
problem with gems that need to install executables). I ran gem install
webby, and it installed happily enough into
/var/lib/gems/1.8/gems/webby-0.8.4/, but didn't install the webby
executable anywhere in path. I checked for an ubuntu package, but
there wasn't one. Of course, I could simply install it all by hand,
but that seems like the wrong thing to do - I'd rather figure out how
to get my gems playing nicely with ubuntu.

ruby -v: ruby 1.8.6 (2007-09-24 patchlevel 111) [i486-linux]
gem -v: 0.9.4
/etc/lsb-release:DISTRIB_CODENAME=hardy

martin
 
D

David Masover

I've recently switched distributions to ubuntu, and I'm having
problems getting webby up and running. (I suspect this a general
problem with gems that need to install executables). I ran gem install
webby, and it installed happily enough into
/var/lib/gems/1.8/gems/webby-0.8.4/, but didn't install the webby
executable anywhere in path.

Check /var/lib/gems/1.8/bin -- and you may want to add that to your path.
 
L

Leslie Viljoen

Check /var/lib/gems/1.8/bin -- and you may want to add that to your path.

My webby executable ended up in /usr/bin/webby. I installed gems via the
deb package (wajig install rubygems).

I have Ubuntu 8.04

Les
 
M

miles.sterrett

I've recently switched distributions to ubuntu, and I'm having
problems getting webby up and running. (I suspect this a general
problem with gems that need to install executables). I ran gem install
webby, and it installed happily enough into
/var/lib/gems/1.8/gems/webby-0.8.4/, but didn't install the webby
executable anywhere in path. I checked for an ubuntu package, but
there wasn't one. Of course, I could simply install it all by hand,
but that seems like the wrong thing to do - I'd rather figure out how
to get my gems playing nicely with ubuntu.

ruby -v: ruby 1.8.6 (2007-09-24 patchlevel 111) [i486-linux]
gem -v: 0.9.4
/etc/lsb-release:DISTRIB_CODENAME=hardy

martin

I am running Ubuntu 8.04. I installed RubyGems from source. I just
installed webby, and it placed an executable file in /usr/bin.

Incidentally, it is acceptable, if not recommended, to install
RubyGems from source. Because RubyGems can update itself, you can run
into issues with both apt/aptitude/Synaptic and RubyGems trying to
update RubyGems.

It may be advantageous for you to post the results of 'echo $PATH' and
'sudo find / -name "webby"'.

Good luck.

MilesZS
 
M

Martin DeMello

I am running Ubuntu 8.04. I installed RubyGems from source. I just
installed webby, and it placed an executable file in /usr/bin.

The apt-got rubygems placed the executable in /var/lib/gems/1.8/bin/,
which it does seem to have done for all my other gems as well.
Incidentally, it is acceptable, if not recommended, to install
RubyGems from source. Because RubyGems can update itself, you can run
into issues with both apt/aptitude/Synaptic and RubyGems trying to
update RubyGems.

Thanks, will try that.

martin
 
M

Martin DeMello

My webby executable ended up in /usr/bin/webby. I installed gems via the
deb package (wajig install rubygems).

Thanks for the pointer to wajig! I tried uninstalling and reinstalling
webby and gems, just in case it had done something wrong the first
time, but still no /usr/bin installs. But adding the gem bin directory
to path works for me.

martin
 
D

David Masover

Incidentally, it is acceptable, if not recommended, to install
RubyGems from source. Because RubyGems can update itself, you can run
into issues with both apt/aptitude/Synaptic and RubyGems trying to
update RubyGems.

However, if I install RubyGems from apt, all gems are entirely contained
in /var/lib/gems. It provides a nice conceptual break between the package
managers -- gems go here, apt gets everything else.

The solution here is fairly simple: I don't ever tell RubyGems to update
itself, or any part of Ruby which is installed via apt. However, I do use
RubyGems to install everything else, rather than using the libfoo-ruby
packages.

It would be nice to have an Ubuntu repository autogenerated from gems, though.
Even this cleanly separated, I don't like having two package managers.
 
E

Eric Hodel

I've recently switched distributions to ubuntu, and I'm having
problems getting webby up and running. (I suspect this a general
problem with gems that need to install executables). I ran gem
install
webby, and it installed happily enough into
/var/lib/gems/1.8/gems/webby-0.8.4/, but didn't install the webby
executable anywhere in path. I checked for an ubuntu package, but
there wasn't one. Of course, I could simply install it all by hand,
but that seems like the wrong thing to do - I'd rather figure out how
to get my gems playing nicely with ubuntu.

ruby -v: ruby 1.8.6 (2007-09-24 patchlevel 111) [i486-linux]
gem -v: 0.9.4
/etc/lsb-release:DISTRIB_CODENAME=hardy

martin

I am running Ubuntu 8.04. I installed RubyGems from source. I just
installed webby, and it placed an executable file in /usr/bin.

Incidentally, it is acceptable, if not recommended, to install
RubyGems from source. Because RubyGems can update itself, you can run
into issues with both apt/aptitude/Synaptic and RubyGems trying to
update RubyGems.

I don't recommend installing RubyGems from source over a package.
Choose whichever makes you most comfortable.

I do recommend only continuing to upgrade RubyGems however you
initially installed it. Upgrading RubyGems via `gem update --system`
instead of through the packager you installed it with may lead to
undesired behavior.
 
L

Leslie Viljoen

I've recently switched distributions to ubuntu, and I'm having
problems getting webby up and running. (I suspect this a general
problem with gems that need to install executables). I ran gem install
webby, and it installed happily enough into
/var/lib/gems/1.8/gems/webby-0.8.4/, but didn't install the webby
executable anywhere in path. I checked for an ubuntu package, but
there wasn't one. Of course, I could simply install it all by hand,
but that seems like the wrong thing to do - I'd rather figure out how
to get my gems playing nicely with ubuntu.

ruby -v: ruby 1.8.6 (2007-09-24 patchlevel 111) [i486-linux]
gem -v: 0.9.4
/etc/lsb-release:DISTRIB_CODENAME=hardy

martin

I am running Ubuntu 8.04. I installed RubyGems from source. I just
installed webby, and it placed an executable file in /usr/bin.

Incidentally, it is acceptable, if not recommended, to install
RubyGems from source. Because RubyGems can update itself, you can run
into issues with both apt/aptitude/Synaptic and RubyGems trying to
update RubyGems.

I don't recommend installing RubyGems from source over a package. Choose
whichever makes you most comfortable.

I do recommend only continuing to upgrade RubyGems however you initially
installed it. Upgrading RubyGems via `gem update --system` instead of
through the packager you installed it with may lead to undesired behavior.

Oh? Perhaps 'gem update --system' should check if it was installed via Apt
and refuse to update then. Not realising the danger here, I have updated gem
in exactly this way quite a few times.

I haven't noticed any problems but I suppose if I tried to cleanly remove gem
with apt things would break? Actually I have been running and updating apt in
this way since two Ubuntu releases ago, and have done two Ubuntu upgrades
in between without noticing any problems!


Les
 
E

Eric Hodel

Oh? Perhaps 'gem update --system' should check if it was installed
via Apt
and refuse to update then. Not realising the danger here, I have
updated gem
in exactly this way quite a few times.

This would have to work for every packaged RubyGems. I don't know of
a way to do that so it wouldn't break somewhere.
I haven't noticed any problems but I suppose if I tried to cleanly
remove gem
with apt things would break? Actually I have been running and
updating apt in
this way since two Ubuntu releases ago, and have done two Ubuntu
upgrades
in between without noticing any problems!


Last I looked, apt RubyGems changes the default gem repository by hard-
coding a path. Updating would cause gems to "disappear" because
RubyGems would switch back to the default path.
 
L

Leslie Viljoen

This would have to work for every packaged RubyGems. I don't know of a way
to do that so it wouldn't break somewhere.



Last I looked, apt RubyGems changes the default gem repository by
hard-coding a path. Updating would cause gems to "disappear" because
RubyGems would switch back to the default path.

Ah, now that I think about it I have noticed that sort of thing happening!
This explains so much!

Surely update --system could at least say "warning, if you did not
install Rubygems from
source, this is not a safe operation. Continue?"

Les
 
E

Eric Hodel

Surely update --system could at least say "warning, if you did not
install Rubygems from source, this is not a safe operation. Continue?"

Hrm, I will consider it.
 
T

Tom Cloyd

Eric said:
Hrm, I will consider it.
Yeah, SOMETHING needs to be done about this mess. For the perpetual
amateurs among us, it is simply too much to ask to remember what to do
about this problem, in the long gaps between the times we have to think
about it at all.

I know that I have NOT updated rubygems precisely because I have yet to
find the time to backtrack to figure out exactly how I need to do it,
and I don't want to screw up and break things and be unable to use
rubygems at all. I'm too busy actually getting needful work done. Sigh.

Tom

--

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Tom Cloyd, MS MA, LMHC
Private practice Psychotherapist
Bellingham, Washington, U.S.A: (360) 920-1226
<< (e-mail address removed) >> (email)
<< TomCloyd.com >> (website & psychotherapy weblog)
<< sleightmind.wordpress.com >> (mental health issues weblog)
<< directpathdesign.com >> (web site design & consultation)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
M

Martin DeMello

I know that I have NOT updated rubygems precisely because I have yet to find
the time to backtrack to figure out exactly how I need to do it, and I don't
want to screw up and break things and be unable to use rubygems at all. I'm
too busy actually getting needful work done. Sigh.

Ironically, I switched to Ubuntu because I needed to get useful work
done rather than endlessly fighting with my wireless card :) You win
some, you lose some.

martin
 

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
473,967
Messages
2,570,148
Members
46,694
Latest member
LetaCadwal

Latest Threads

Top