Wrox Programmer Forums
|
BOOK: Beginning Ruby on Rails
This is the forum to discuss the Wrox book Beginning Ruby on Rails by Steve Holzner Ph.D.; ISBN: 9780470069158
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Ruby on Rails section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 18th, 2007, 01:01 AM
Registered User
 
Join Date: Jun 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Scaffolding problem

Everytime I try to run scaffolding (chap 6) weather from the example in the book, or any test for that matter, I get the following output.

Code:
      exists  app/controllers/
      exists  app/helpers/
      exists  app/views/manage
      exists  app/views/layouts/
      exists  test/functional/
  dependency  model
      exists    app/models/
      exists    test/unit/
      exists    test/fixtures/
   identical    app/models/poem.rb
   identical    test/unit/poem_test.rb
   identical    test/fixtures/poems.yml
dyld: ruby can't open library: /usr/local/mysql/lib/mysql/libmysqlclient.15.dylib  (No such file or directory, errno = 2)
Trace/BPT trap
I am running:
Mac OS X 10.3.9
Rails 1.2.3
Ruby 1.8.6
MySQL 5.0.41

any advice as to what I can do?

 
Old June 18th, 2007, 05:12 AM
Friend of Wrox
 
Join Date: Dec 2003
Posts: 488
Thanks: 0
Thanked 3 Times in 3 Posts
Default

In think its cos recent versions of my sql have changed their path from lib/mysql to just lib. A mac friend suggests you open a terminal and type:

Code:
sudo install_name_tool -change /usr/local/mysql/lib/mysql/libmysqlclient.15.dylib \ /usr/local/mysql/lib/libmysqlclient.15.dylib /usr/local/lib/ruby/gems/1.8/gems/mysql-2.7/lib/mysql.bundle
I'm a linux user so I have no idea if this will work or not.

--
Charlie Harvey's website - linux, perl, java, anarchism and punk rock: http://charlieharvey.org.uk
 
Old June 18th, 2007, 11:19 PM
Registered User
 
Join Date: Jun 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you, and your friend, I tried it, but it didn't work. It corrects the path, but it still doesn't find the file, which is there. I can open it with textwrangler.

Again, thank you for your help.

 
Old June 19th, 2007, 10:41 AM
Registered User
 
Join Date: Jun 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I was able to fix it by uninstalling MySQL 5.0.41 and reinstalling 5.0.3 something. Now it works fine. Accourding to some PHP boards, there is an issue with the paths changing in 5.0.41.

Thanks for all your help..










Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.