Nikhil Gupte wrote:
> Jean,
> 
> Best is to install macports, if you aren't already using it.
> 
> To re-compile ruby, run:
> 
> sudo port install ruby

I was able to get mysql gem to install on OSX Leopard without warnings 
with the --no-rdoc and --no-ri switches; archflags likewise eliminated 
the uninitialized constant error:

sudo gem install mysql --no-rdoc --no-ri -- 
--with-mysql-config=/usr/local/mysql/bin/mysql_config

That hasn't made my installation functional however. I just rebuilt my 
entire project with rails myApp -d mysql; I then scaffolded 5 sets of 
tables (i.e. script/generate scaffold tablename c_code:string 
c_name:string tran_id:integer priority:integer); I next drag the project 
directory onto XCode Organizer; create the start server script 
(script/server); and start the gem server in terminal: gem server.

Fine and dandy so far (seemingly). Then I run rake db:migrate to 
engender the following error:

iMacMike:pfmpe mikemontagne$ rake db:migrate --trace
(in /Users/mikemontagne/rproj/pfmpe)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:migrate
rake aborted!
Unknown database 'pfmpe_development'

----------

database.yml indicates that this is supposed to be the development 
database. But no such file exists in my project directory.

Is this a MySQL server configuration issue? Does anybody understand why 
this table is not being created?
-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to