Skip to content

Instantly share code, notes, and snippets.

@zorn
Created August 2, 2011 21:56
Show Gist options
  • Save zorn/1121332 to your computer and use it in GitHub Desktop.
Save zorn/1121332 to your computer and use it in GitHub Desktop.
I started by installing Rails 3.1 and playing around. When I got to our App I noticed it was build in Rails 3 and bundler told me I have to install all it's specific versions. When it was done I tried to launch the server but
Last login: Tue Aug 2 17:57:55 on ttys000
Zelda:~ zorn$ echo $PATH
/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
Zelda:~ zorn$ which ruby
/usr/local/bin/ruby
Zelda:~ zorn$ ruby --version
ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-darwin11.0.0]
Zelda:~ zorn$ cd Projects/Summit-AdminPanel/
Zelda:Summit-AdminPanel zorn$ rake server
rake aborted!
You have already activated rake 0.9.2, but your Gemfile requires rake 0.8.7. Consider using bundle exec.
Trying to use bundle exec doesn't seem to help.
(See full trace by running task with --trace)
Zelda:Summit-AdminPanel zorn$ bundle exec rake server
/usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.15/lib/bundler/rubygems_integration.rb:218:in `block in replace_bin_path': can't find executable rake (Gem::Exception)
from /usr/local/bin/rake:19:in `<main>'
Zelda:Summit-AdminPanel zorn$
Is this related?
http://groups.google.com/group/rubyinstaller/browse_thread/thread/9817d0c6c8a48a79
# When I try to start the server within my RVM setup it keeps saying MySQL is missing even though I did install it.
I installed it first with
gem install mysql -- --with-mysql-dir=/usr/local/mysql
then tried I ran gem uninstall and tried this on the recommendation of a SO answer:
http://stackoverflow.com/questions/991708/rails-mysql-and-snow-leopard
env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config
Neither seemed to work.
Zelda:Summit-AdminPanel zorn$ rake server
(in /Users/zorn/Projects/Summit-AdminPanel)
rake aborted!
dlopen(/Users/zorn/.rvm/gems/ruby-1.9.2-p290@congress/gems/mysql2-0.2.6/lib/mysql2/mysql2.bundle, 9): Library not loaded: libmysqlclient.18.dylib
Referenced from: /Users/zorn/.rvm/gems/ruby-1.9.2-p290@congress/gems/mysql2-0.2.6/lib/mysql2/mysql2.bundle
Reason: image not found - /Users/zorn/.rvm/gems/ruby-1.9.2-p290@congress/gems/mysql2-0.2.6/lib/mysql2/mysql2.bundle
/Users/zorn/Projects/Summit-AdminPanel/Rakefile:4:in `<top (required)>'
(See full trace by running task with --trace)
Zelda:Summit-AdminPanel zorn$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment