Getting mysql gem working with ruby-1.9.3 on rvm

Hello Everyone

I am trying to setup mysql gem on ruby-1.9.3 installed with rvm. I want
set up the ‘redmine’. To install mysql gem I used -->
sudo env ARCHFLAGS="-arch x86_64" gem install --no-rdoc --no-ri mysql –

When I issue --> RAILS_ENV=production rake db:migrate, I get
warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777
!!! The bundled mysql.rb driver has been removed from Rails 2.2. Please
install the mysql gem and try again: gem install mysql.
rake aborted!
cannot load such file – mysql

However I have successfully deployed redmine1.3 on default ruby1.8.7
installation of OSX with installing mysql gem the very same way.

I want to work on the latest trunk with ruby-1.9.3
How can I resolve the issue? I have been searching the mailing list and
found similar posts, however could not solve the problem.

Why do you use sudo?

Stop it now! :wink:

Without sudo I get -->
ERROR: While executing gem … (Errno::EACCES)
Permission denied -

No help! :frowning:

you can get really ugly stuff like you have now

I have solved this problem using chown

try: rm -rf /Users/myth/.rvm/gems/ruby-1.9.3-p0/gems/mysql-2.8.1/
and gem install mysql again
don’t mix rvm and sudo if you don’t use Multi-User install of rvm

I did a clean install of ruby1.9.3 and also mysql gem without sudo.
However after successful installation of gem I get.

ERROR: While executing gem … (Gem::FilePermissionError)
You don’t have write permissions into the ./Mysql directory.

Where do I find the mysql directory? :expressionless: