uninitialized constant MysqlCompat::MysqlRes

21 views
Skip to first unread message

Rick

unread,
Dec 9, 2010, 5:39:55 PM12/9/10
to Potion Store Discussions
I'm having some difficulty setting up the Potion store on my Mac:

$ rake db:migrate --trace
(in /Users/rmann/Downloads/potionstore-0.5.0)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:migrate
rake aborted!
uninitialized constant MysqlCompat::MysqlRes
/Users/rmann/Downloads/potionstore-0.5.0/vendor/rails/activesupport/
lib/active_support/dependencies.rb:442:in `load_missing_constant'
/Users/rmann/Downloads/potionstore-0.5.0/vendor/rails/activesupport/
lib/active_support/dependencies.rb:77:in `const_missing'
/Users/rmann/Downloads/potionstore-0.5.0/vendor/rails/activerecord/lib/
active_record/connection_adapters/mysql_adapter.rb:9:in
`define_all_hashes_method!'
...

Any idea what I'm doing wrong? Thanks!

Andy Kim

unread,
Dec 9, 2010, 5:48:53 PM12/9/10
to potion...@googlegroups.com
It looks like it's not finding the mysql library.

Did you do a "sudo gem install mysql"?

- Andy Kim

> --
> You received this message because you are subscribed to the Google Groups "Potion Store Discussions" group.
> To post to this group, send email to potion...@googlegroups.com.
> To unsubscribe from this group, send email to potion-store...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/potion-store?hl=en.
>

Rick Mann

unread,
Dec 9, 2010, 5:52:08 PM12/9/10
to potion...@googlegroups.com

On Dec 9, 2010, at 14:48:53, Andy Kim wrote:

> It looks like it's not finding the mysql library.
>
> Did you do a "sudo gem install mysql"?

Sure did (got a different complaint before I did). It complained during the install, but seemed to be complaining about docs:

$ sudo gem install mysql
Password:
Building native extensions. This could take a while...
Successfully installed mysql-2.8.1
1 gem installed
Installing ri documentation for mysql-2.8.1...

No definition for next_result

No definition for field_name

No definition for field_table

No definition for field_def

No definition for field_type

No definition for field_length

No definition for field_max_length

No definition for field_flags

No definition for field_decimals

No definition for time_inspect

No definition for time_to_s

No definition for time_get_year

No definition for time_get_month

No definition for time_get_day

No definition for time_get_hour

No definition for time_get_minute

No definition for time_get_second

No definition for time_get_neg

No definition for time_get_second_part

No definition for time_set_year

No definition for time_set_month

No definition for time_set_day

No definition for time_set_hour

No definition for time_set_minute

No definition for time_set_second

No definition for time_set_neg

No definition for time_set_second_part

No definition for time_equal

No definition for error_errno

No definition for error_sqlstate
Installing RDoc documentation for mysql-2.8.1...

No definition for next_result

No definition for field_name

No definition for field_table

No definition for field_def

No definition for field_type

No definition for field_length

No definition for field_max_length

No definition for field_flags

No definition for field_decimals

No definition for time_inspect

No definition for time_to_s

No definition for time_get_year

No definition for time_get_month

No definition for time_get_day

No definition for time_get_hour

No definition for time_get_minute

No definition for time_get_second

No definition for time_get_neg

No definition for time_get_second_part

No definition for time_set_year

No definition for time_set_month

No definition for time_set_day

No definition for time_set_hour

No definition for time_set_minute

No definition for time_set_second

No definition for time_set_neg

No definition for time_set_second_part

No definition for time_equal

No definition for error_errno

No definition for error_sqlstate


Andy Kim

unread,
Dec 9, 2010, 6:12:32 PM12/9/10
to potion...@googlegroups.com
It's been a while since I've tried running Potion Store on my Mac so perhaps others can help better, but a brief Google search yields two links that look promising. You probably saw these already, but I'm not sure what else I can give you at the moment.

- Andy Kim

http://stackoverflow.com/questions/1332207/uninitialized-constant-mysqlcompatmysqlres-using-mms2r-gem

http://stackoverflow.com/questions/1946182/problem-installing-mysql-gem-on-snow-leopard-uninitialized-constant-mysqlcompat

Reply all
Reply to author
Forward
0 new messages