building readline on Tiger

  • Thread starter Jean-Michel LEON-FOUN-LIN
  • Start date
J

Jean-Michel LEON-FOUN-LIN

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_mysql_tiger.

I

seem to have a working ruby / rails install. I have tried Apple's
tutorial's at http://developer.apple.com/tools/rubyonrails.html 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
 
C

Chris Gehlker

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_mysql_tiger.

I
seem to have a working ruby / rails install. I have tried Apple's
tutorial's at http://developer.apple.com/tools/rubyonrails.html 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)
 
J

Jean-Michel LEON-FOUN-LIN

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.
 

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,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top