[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

building readline on Tiger

Jean-Michel LEON-FOUN-LIN

9/23/2006 11:37:00 AM

Hi everyone,

this is the first time I've posted to this group. And I am a ruby and
programming newbie. (To give you an idea of my skills I am reading
Chris Pine's book right now, I'll move to the PickAxe later).
I have installed ruby and rails following Hivelogic's guide at
http://hivelogic.com/articles/2005/12/01/ruby_rails_lighttpd_m....

I

seem to have a working ruby / rails install. I have tried Apple's
tutorial's at http://developer.apple.com/tools/rubyon... and
some basic ruby programs.
When I type: require 'readline' irb gives a false response. When I do
the same with 'mysql' it tells me the file doesn't exist.

Building readline seemed to have gone right. Could someone explain to
me what irb's answers mean?

Config:
Tiger 10.4.7 PowerPC
MySQL 5 32 bits
XCode 2.4

2 Answers

Chris Gehlker

9/23/2006 11:50:00 AM

0


On Sep 23, 2006, at 4:40 AM, Jean-Michel LEON-FOUN-LIN wrote:

> Hi everyone,
>
> this is the first time I've posted to this group. And I am a ruby
> and programming newbie. (To give you an idea of my skills I am
> reading Chris Pine's book right now, I'll move to the PickAxe later).
> I have installed ruby and rails following Hivelogic's guide at
> http://hivelogic.com/articles/2...
> ruby_rails_lighttpd_mysql_tiger.
>
> I
> seem to have a working ruby / rails install. I have tried Apple's
> tutorial's at http://developer.apple.com/tools/rubyon... and
> some basic ruby programs.
> When I type: require 'readline' irb gives a false response. When I
> do the same with 'mysql' it tells me the file doesn't exist.
>
> Building readline seemed to have gone right. Could someone explain
> to me what irb's answers mean?

The false response for "require 'readline'" is simply Ruby's way of
saying that readline was already loaded. That is require returns
false whenever it doesn't actually have to load the file. The file
mysql.rb does not actually exist. Rails doesn't need such a file to
access MySQL.
---
Neither a man nor a crowd nor a nation can be trusted to act humanely
or to think sanely under the influence of a great fear.

-Bertrand Russell, philosopher, mathematician, author, Nobel laureate
(1872-1970)



Jean-Michel LEON-FOUN-LIN

9/23/2006 12:25:00 PM

0

On 2006-09-23 15:50:06 +0400, Chris Gehlker <canyonrat@mac.com> said:

>
> On Sep 23, 2006, at 4:40 AM, Jean-Michel LEON-FOUN-LIN wrote:
>
>> Hi everyone,
>>
>> this is the first time I've posted to this group. And I am a ruby and
>> programming newbie. (To give you an idea of my skills I am reading
>> Chris Pine's book right now, I'll move to the PickAxe later).
>> I have installed ruby and rails following Hivelogic's guide at
>> http://hivelogic.com/articles/2...
>> ruby_rails_lighttpd_mysql_tiger.
>>
>> I
>> seem to have a working ruby / rails install. I have tried Apple's
>> tutorial's at http://developer.apple.com/tools/rubyon... and
>> some basic ruby programs.
>> When I type: require 'readline' irb gives a false response. When I do
>> the same with 'mysql' it tells me the file doesn't exist.
>>
>> Building readline seemed to have gone right. Could someone explain to
>> me what irb's answers mean?
>
> The false response for "require 'readline'" is simply Ruby's way of
> saying that readline was already loaded. That is require returns false
> whenever it doesn't actually have to load the file. The file mysql.rb
> does not actually exist. Rails doesn't need such a file to access
> MySQL.
> ---
> Neither a man nor a crowd nor a nation can be trusted to act humanely
> or to think sanely under the influence of a great fear.
>
> -Bertrand Russell, philosopher, mathematician, author, Nobel laureate
> (1872-1970)

Thanks a lot for your answer.