Ruby on Rails
Wednesday, November 27, 2013
This seems to be a common issue (affects some Python users as well). The install of libmysqlclient seems not to be on your PATH.
A stackoverflow question came up with this solution:
sudo ln -s /usr/local/mysql/lib/libmysqlclient.18.dylib /usr/lib/libmysqlclient.18.dylib
(ie, you symlink the file onto your path).
On Tue, Nov 26, 2013 at 11:14 PM, romenig damasio <lists@ruby-forum.com> wrote:
Hey guys,
I'm new to learning RoR and I try to do a database with mysql and I
have a problem.
First I create a a folder in my desktop and after with command in the
terminal on Mac Os Mavericks I create a project:
rails new vota_prato -d mysql
after I will try to create a database with this command:
$ rake db:create
and I have this error:
MacBook-Pro-de-Romenig:vota_prato romenig$ rake db:create
rake aborted!
dlopen(/Users/romenig/.rvm/gems/ruby-2.0.0-p247/gems/mysql2-0.3.14/lib/mysql2/mysql2.bundle,
9): Library not loaded: libmysqlclient.18.dylib
Referenced from:
/Users/romenig/.rvm/gems/ruby-2.0.0-p247/gems/mysql2-0.3.14/lib/mysql2/mysql2.bundle
Reason: image not found -
/Users/romenig/.rvm/gems/ruby-2.0.0-p247/gems/mysql2-0.3.14/lib/mysql2/mysql2.bundle
/Users/romenig/.rvm/gems/ruby-2.0.0-p247/gems/mysql2-0.3.14/lib/mysql2.rb:8:in
`require'
/Users/romenig/.rvm/gems/ruby-2.0.0-p247/gems/mysql2-0.3.14/lib/mysql2.rb:8:in
`<top (required)>'
/Users/romenig/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in
`require'
/Users/romenig/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in
`block (2 levels) in require'
/Users/romenig/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in
`each'
/Users/romenig/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in
`block in require'
/Users/romenig/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in
`each'
/Users/romenig/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in
`require'
/Users/romenig/.rvm/gems/ruby-2.0.0-p247@global/gems/bundler-1.3.5/lib/bundler.rb:132:in
`require'
/Users/romenig/Desktop/caelum_ror/vota_prato/config/application.rb:7:in
`<top (required)>'
/Users/romenig/Desktop/caelum_ror/vota_prato/Rakefile:4:in `require'
/Users/romenig/Desktop/caelum_ror/vota_prato/Rakefile:4:in `<top
(required)>'
/Users/romenig/.rvm/gems/ruby-2.0.0-p247/bin/ruby_executable_hooks:15:in
`eval'
/Users/romenig/.rvm/gems/ruby-2.0.0-p247/bin/ruby_executable_hooks:15:in
`<main>'
(See full trace by running task with --trace)
What I need to do for running good? Before install the RVM for RoR I
have installed the MySql who I do projects with Java.
Someone could help me with this error?
O want to continue my studies and I really like Ruby on Rails do the
things it's exciting!
Thank's!
--
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 unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/c1fc569fc65a7fed4449dfcb7a3cdc15%40ruby-forum.com.
For more options, visit https://groups.google.com/groups/opt_out.
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAAb4X%3Dwa6mTus1RxiyfnLb9e%2BE6i3YiaSpba-hUMZxTuLdCJsQ%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment