[LRUG] rvm install help!
Adrian Stainforth
adrian.stainforth at gmail.com
Mon Jan 17 06:04:26 PST 2011
Hi jason! Yes have double checked that and it's defiantly right and pointing
to the right place, still no joy :(
Jim - while I could do that, I work as part of a team, so I'm not sure it
great idea to change the gem set so it will work on this one machine. Which
also makes me think it is the rails set up is the issue as I have the
project installed and running perfectly on other machines.
Unless the version of mysql it's running? or maybe a config I've missed for
mysql?
On 17 January 2011 13:37, Jason Green <jason.green at nogeek.org> wrote:
> Have you checked that the path to your mysql config exists and that is the
> correct one that which mysql is pointing to?
>
> Jason Green
> http://www.dynamic50.com
>
> On 17 Jan 2011, at 13:31, Adrian Stainforth wrote:
>
> Thanks, but I believe that only works with rails3, doesn't it? I'm trying
> to get it to work with rails 2.3.8 for old sites.
>
> On 17 January 2011 13:23, Jim Myhrberg <contact at jimeh.me> wrote:
>
>> I'm not sure what version of Rails you're using, but with the latest
>> version of Rails uses the mysql2 gem, which is faster and better in every
>> possible way from what I've read. Also, it installs and compiles perfectly
>> fine on OSX.
>>
>> Check the GitHub repo for more info:
>> https://github.com/brianmario/mysql2
>>
>>
>> <https://github.com/brianmario/mysql2>-jim
>>
>>
>>
>> On Monday, January 17, 2011 at 13:05, Adrian Stainforth wrote:
>>
>> Can anyone help me, I'm struggling with an RVM install with mysql.
>>
>> I'm on Mac OSX 10.6 64bit and have installed rvm fine with 1.8.7 and rails
>> 2.3.8 and then installed mysql server which is also 64bit.
>>
>> I then tried to install the mysql gem using:
>>
>> env ARCHFLAGS="-arch x86_64" rvm gem install mysql --
>> --with-mysql-config=/usr/local/mysql/bin/mysql_config
>>
>> but then once I run rake db:setup or db:migrate I get the following
>> error:
>>
>> ** Invoke db:setup (first_time)
>> ** Invoke db:create (first_time)
>> ** Invoke db:load_config (first_time)
>> ** Invoke rails_env (first_time)
>> ** Execute rails_env
>> ** Execute db:load_config
>> ** Execute db:create
>> Couldn't create database for {"reconnect"=>false, "encoding"=>"utf8",
>> "username"=>"root", "adapter"=>"mysql",
>> "database"=>"tabascopizza_development", "pool"=>5, "password"=>nil},
>> charset: utf8, collation: utf8_unicode_ci (if you set the charset manually,
>> make sure you have a matching collation)
>> ** Invoke db:schema:load (first_time)
>> ** Invoke environment (first_time)
>> ** Execute environment
>> ** Execute db:schema:load
>> -- create_table("enters", {:force=>true})
>> rake aborted!
>> uninitialized constant MysqlCompat::MysqlRes
>>
>> I've tried googling and most of them go on about making sure mysql and
>> ruby are 64bit which they are because I check with 'which ruby' & 'which
>> mysql'
>>
>> Does anyone have any ideas on why it is failing?
>>
>> Thanks
>>
>> --
>> Kind Regards
>> Adrian Stainforth
>>
>> Front-end Developer
>>
>> _______________________________________________
>> Chat mailing list
>> Chat at lists.lrug.org
>> http://lists.lrug.org/listinfo.cgi/chat-lrug.org
>>
>>
>>
>> _______________________________________________
>> Chat mailing list
>> Chat at lists.lrug.org
>> http://lists.lrug.org/listinfo.cgi/chat-lrug.org
>>
>>
>
>
> --
> Kind Regards
> Adrian Stainforth
>
> Front-end Developer
> Mobile: +447740069109
>
> _______________________________________________
> Chat mailing list
> Chat at lists.lrug.org
> http://lists.lrug.org/listinfo.cgi/chat-lrug.org
>
>
>
> _______________________________________________
> Chat mailing list
> Chat at lists.lrug.org
> http://lists.lrug.org/listinfo.cgi/chat-lrug.org
>
>
--
Kind Regards
Adrian Stainforth
Front-end Developer
Mobile: +447740069109
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lrug.org/pipermail/chat-lrug.org/attachments/20110117/2565f2b4/attachment-0003.html>
More information about the Chat
mailing list