[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Problems with Rubygems

hemant

2/11/2008 12:55:00 AM

Hi,

I am facing some issues with Rubygems on my ubuntu gutsy machine,
where Ruby 1.8.6 p111 is compiled and installed with:

/configure --prefix=/usr/local

ruby executable is not symlinked and I have /usr/local/bin in path.

Recently I started to notice that, gem executables while installing
gems aren't getting created anywhere in path. I thought, it could be a
rubygems version issue and I ran:

sudo gem update --system

which seems to have updated to rubygems version 1.0.1, and yet when i run:

gem --version
0.9.5

So definitely something fishy going on here!



--
Let them talk of their oriental summer climes of everlasting
conservatories; give me the privilege of making my own summer with my
own coals.

http://g...

5 Answers

Ali Pan

2/11/2008 1:34:00 AM

0

hemant wrote:
> Hi,
>
> I am facing some issues with Rubygems on my ubuntu gutsy machine,
> where Ruby 1.8.6 p111 is compiled and installed with:
>
> ./configure --prefix=/usr/local
>
> ruby executable is not symlinked and I have /usr/local/bin in path.
>
> Recently I started to notice that, gem executables while installing
> gems aren't getting created anywhere in path. I thought, it could be a
> rubygems version issue and I ran:
>
> sudo gem update --system
>
> which seems to have updated to rubygems version 1.0.1, and yet when i run:
>
> gem --version
> 0.9.5
>
> So definitely something fishy going on here!
>
>
>
>
this is a simple and maybe stupid reply. I encountered the same problem
yesterday installing rubygems on my vps.

I logged out and problem was fixed.

bye

Ken Bloom

2/11/2008 2:39:00 PM

0

On Sun, 10 Feb 2008 20:34:10 -0500, Ali Panick wrote:

> hemant wrote:
>> Hi,
>>
>> I am facing some issues with Rubygems on my ubuntu gutsy machine, where
>> Ruby 1.8.6 p111 is compiled and installed with:
>>
>> ./configure --prefix=/usr/local
>>
>> ruby executable is not symlinked and I have /usr/local/bin in path.
>>
>> Recently I started to notice that, gem executables while installing
>> gems aren't getting created anywhere in path. I thought, it could be a
>> rubygems version issue and I ran:
>>
>> sudo gem update --system
>>
>> which seems to have updated to rubygems version 1.0.1, and yet when i
>> run:
>>
>> gem --version
>> 0.9.5
>>
>> So definitely something fishy going on here!
>>
> this is a simple and maybe stupid reply. I encountered the same problem
> yesterday installing rubygems on my vps.
>
> I logged out and problem was fixed.

If logging out fixed it, the problem probably wasn't fixed. What probably
happened was that when you updated with gem update --system, it installed
rubygems 1.0.1 into a different location. Since your shell (probably
bash) had hashed the location of rubygems so it wouldn't have to go
searching, it continued to use the old binary until you logged out and
logged back in. Run
$ whereis gem
make sure you don't have extra copies of rubygems hanging around
somewhere, and clean up the mess if you do.

--Ken

--
Ken (Chanoch) Bloom. PhD candidate. Linguistic Cognition Laboratory.
Department of Computer Science. Illinois Institute of Technology.
http://www.iit.edu...

hemant

2/11/2008 4:53:00 PM

0

On Mon, Feb 11, 2008 at 8:40 PM, Ken Bloom <kbloom@gmail.com> wrote:
>
> On Sun, 10 Feb 2008 20:34:10 -0500, Ali Panick wrote:
>
> > hemant wrote:
> >> Hi,
> >>
> >> I am facing some issues with Rubygems on my ubuntu gutsy machine, where
> >> Ruby 1.8.6 p111 is compiled and installed with:
> >>
> >> ./configure --prefix=/usr/local
> >>
> >> ruby executable is not symlinked and I have /usr/local/bin in path.
> >>
> >> Recently I started to notice that, gem executables while installing
> >> gems aren't getting created anywhere in path. I thought, it could be a
> >> rubygems version issue and I ran:
> >>
> >> sudo gem update --system
> >>
> >> which seems to have updated to rubygems version 1.0.1, and yet when i
> >> run:
> >>
> >> gem --version
> >> 0.9.5
> >>
> >> So definitely something fishy going on here!
> >>
> > this is a simple and maybe stupid reply. I encountered the same problem
> > yesterday installing rubygems on my vps.
> >
> > I logged out and problem was fixed.
>
> If logging out fixed it, the problem probably wasn't fixed. What probably
> happened was that when you updated with gem update --system, it installed
> rubygems 1.0.1 into a different location. Since your shell (probably
> bash) had hashed the location of rubygems so it wouldn't have to go
> searching, it continued to use the old binary until you logged out and
> logged back in. Run
> $ whereis gem
> make sure you don't have extra copies of rubygems hanging around
> somewhere, and clean up the mess if you do.
>

Well for me, logging out doesn't resolve the problem and the problem
persists. I don't have any rubygems installation hanging around. I do
have Ruby1.9 compiled and installed, but its not in path and I
generally use aliases ruby2 and gem2 to run my programs with Ruby1.9.

Florian Gilcher

3/28/2009 7:17:00 PM

0


On Feb 11, 2008, at 5:53 PM, hemant wrote:

> On Mon, Feb 11, 2008 at 8:40 PM, Ken Bloom <kbloom@gmail.com> wrote:
>>
>> On Sun, 10 Feb 2008 20:34:10 -0500, Ali Panick wrote:
>>
>>> hemant wrote:
>>>> Hi,
>>>>
>>>> I am facing some issues with Rubygems on my ubuntu gutsy machine,
>>>> where
>>>> Ruby 1.8.6 p111 is compiled and installed with:
>>>>
>>>> ./configure --prefix=/usr/local
>>>>
>>>> ruby executable is not symlinked and I have /usr/local/bin in path.
>>>>
>>>> Recently I started to notice that, gem executables while installing
>>>> gems aren't getting created anywhere in path. I thought, it could
>>>> be a
>>>> rubygems version issue and I ran:
>>>>
>>>> sudo gem update --system
>>>>
>>>> which seems to have updated to rubygems version 1.0.1, and yet
>>>> when i
>>>> run:
>>>>
>>>> gem --version
>>>> 0.9.5
>>>>
>>>> So definitely something fishy going on here!
>>>>
>>> this is a simple and maybe stupid reply. I encountered the same
>>> problem
>>> yesterday installing rubygems on my vps.
>>>
>>> I logged out and problem was fixed.
>>
>> If logging out fixed it, the problem probably wasn't fixed. What
>> probably
>> happened was that when you updated with gem update --system, it
>> installed
>> rubygems 1.0.1 into a different location. Since your shell (probably
>> bash) had hashed the location of rubygems so it wouldn't have to go
>> searching, it continued to use the old binary until you logged out
>> and
>> logged back in. Run
>> $ whereis gem
>> make sure you don't have extra copies of rubygems hanging around
>> somewhere, and clean up the mess if you do.
>>
>
> Well for me, logging out doesn't resolve the problem and the problem
> persists. I don't have any rubygems installation hanging around. I do
> have Ruby1.9 compiled and installed, but its not in path and I
> generally use aliases ruby2 and gem2 to run my programs with Ruby1.9.
>


Rubygems updating is somewhat broken for old versions (and 0.9.5 is
reaaaaally old).

Another upgrade path is to install the "rubygems-update" gem (over
internet or from a gem file) and then run "update_rubygems".

Regards,
Florian

--
Florian Gilcher

smtp: flo@andersground.net
jabber: Skade@jabber.ccc.de
gpg: 533148E2


Fernando Perez

3/28/2009 10:29:00 PM

0

Hemant Kumar wrote:
> Hi,
>
> I am facing some issues with Rubygems on my ubuntu gutsy machine,
> where Ruby 1.8.6 p111 is compiled and installed with:
>
> ./configure --prefix=/usr/local
>

I would recommend to install each app in its own folder:
/usr/local/ruby, then update your $PATH accordingly, otherwise
everything gets mixed up. Now you could uninstall and easily update your
compiled software with simply rm -rf /usr/local/ruby.
--
Posted via http://www.ruby-....