Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Open Source > BOOK: Beginning Ruby on Rails
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old June 18th, 2007, 01:01 AM
Registered User
 
Join Date: Jun 2007
Location: , , .
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?

  #2 (permalink)  
Old June 18th, 2007, 05:12 AM
Friend of Wrox
Points: 1,515, Level: 15
Points: 1,515, Level: 15 Points: 1,515, Level: 15 Points: 1,515, Level: 15
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Dec 2003
Location: Oxford, , United Kingdom.
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
  #3 (permalink)  
Old June 18th, 2007, 11:19 PM
Registered User
 
Join Date: Jun 2007
Location: , , .
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.

  #4 (permalink)  
Old June 19th, 2007, 10:41 AM
Registered User
 
Join Date: Jun 2007
Location: , , .
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..

 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off




All times are GMT -4. The time now is 10:02 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.