[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

rubygems 0.9.5 not finding SSL package

Mike Berrow

11/24/2007 9:27:00 PM

I am trying to install rails on xubuntu with the line
sudo gem install rails --include-dependencies

It terminates with this error:
ERROR: While executing gem ... (Gem::Exception)
SSL is not installed on this system

I have these packages installed
libssl0.9.8
libssl-dev
openssl 0.9.8e-5ubuntu3.1
libopenssl-ruby
libopenssl-ruby1.8

I built ruby 1.8.6 from source here (as per advice elsewhere).
$ ruby -v
ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-linux]
$ gem -v
0.9.5
$ uname -a
Linux xubuntu 2.6.22-14-generic #1 SMP Sun Oct 14 23:05:12 GMT 2007 i686
GNU/Linux

Any ideas?

Thanks,
-- Mike Berrow
--
Posted via http://www.ruby-....

6 Answers

Mike Berrow

11/26/2007 8:05:00 AM

0

Has anyone completed a fresh install of ruby/rubygems/rails on ubuntu
using the the new 0.9.5 rubygems ?

-- Mike Berrow
--
Posted via http://www.ruby-....

Eric Hodel

11/28/2007 4:46:00 AM

0

On Nov 24, 2007, at 13:27 PM, Mike Berrow wrote:
> I am trying to install rails on xubuntu with the line
> sudo gem install rails --include-dependencies
>
> It terminates with this error:
> ERROR: While executing gem ... (Gem::Exception)
> SSL is not installed on this system
>
> I have these packages installed
> libssl0.9.8
> libssl-dev
> openssl 0.9.8e-5ubuntu3.1
> libopenssl-ruby
> libopenssl-ruby1.8
>
> I built ruby 1.8.6 from source here (as per advice elsewhere).
> $ ruby -v
> ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-linux]
> $ gem -v
> 0.9.5
> $ uname -a
> Linux xubuntu 2.6.22-14-generic #1 SMP Sun Oct 14 23:05:12 GMT 2007
> i686
> GNU/Linux
>
> Any ideas?


At that point, RubyGems is doing the equivalent of:

ruby -e "require 'openssl'"

I'm researching why RubyGems now seems to require OpenSSL, but haven't
discovered the cause yet.


Austin Ziegler

11/28/2007 12:53:00 PM

0

On 11/27/07, Eric Hodel <drbrain@segment7.net> wrote:
> At that point, RubyGems is doing the equivalent of:
>
> ruby -e "require 'openssl'"
>
> I'm researching why RubyGems now seems to require OpenSSL, but haven't
> discovered the cause yet.

Signed gems are done with SSL.

-austin
--
Austin Ziegler * halostatue@gmail.com * http://www.halo...
* austin@halostatue.ca * http://www.halo...feed/
* austin@zieglers.ca

Eric Hodel

11/28/2007 7:48:00 PM

0

On Nov 28, 2007, at 04:53 AM, Austin Ziegler wrote:
> On 11/27/07, Eric Hodel <drbrain@segment7.net> wrote:
>> At that point, RubyGems is doing the equivalent of:
>>
>> ruby -e "require 'openssl'"
>>
>> I'm researching why RubyGems now seems to require OpenSSL, but
>> haven't
>> discovered the cause yet.
>
> Signed gems are done with SSL.

This appears to be happening regardless of signing of gems.

Eric Smith

11/29/2007 11:25:00 PM

0


Eric Hodel wrote:
> On Nov 28, 2007, at 04:53 AM, Austin Ziegler wrote:
>> On 11/27/07, Eric Hodel <drbrain@segment7.net> wrote:
>>> At that point, RubyGems is doing the equivalent of:
>>>
>>> ruby -e "require 'openssl'"
>>>
>>> I'm researching why RubyGems now seems to require OpenSSL, but
>>> haven't
>>> discovered the cause yet.
>>
>> Signed gems are done with SSL.
>
> This appears to be happening regardless of signing of gems.


The problem is that the default installation of ruby 1.8.6 from source
isn't picking up the OpenSSL libraries, etc... during make or make
install.

To fix this problem, you need to do the following:

Assuming your source is at /usr/src/ruby-1.8.6

cd /usr/src/ruby-1.8.6/ext/openssl
sudo ruby extconf.rb
sudo make
sudo make install

Now you should be able to install any gem.

Eric M. Smith
--
Posted via http://www.ruby-....

Eric Hodel

11/30/2007 3:18:00 AM

0

On Nov 29, 2007, at 15:25 PM, Eric Smith wrote:
> Eric Hodel wrote:
>> On Nov 28, 2007, at 04:53 AM, Austin Ziegler wrote:
>>> On 11/27/07, Eric Hodel <drbrain@segment7.net> wrote:
>>>> At that point, RubyGems is doing the equivalent of:
>>>>
>>>> ruby -e "require 'openssl'"
>>>>
>>>> I'm researching why RubyGems now seems to require OpenSSL, but
>>>> haven't
>>>> discovered the cause yet.
>>>
>>> Signed gems are done with SSL.
>>
>> This appears to be happening regardless of signing of gems.
>
> The problem is that the default installation of ruby 1.8.6 from source
> isn't picking up the OpenSSL libraries, etc... during make or make
> install.

No.

RubyGems should work with or without OpenSSL. If RubyGems is not
working when you don't have OpenSSL, it's a RubyGems bug.