Fingertips / passengerpane

A Mac OS X preference pane for easily configuring Rails applications with Passenger.
http://www.fngtps.com/2008/06/putting-the-pane-back-into-deployment
Other
592 stars 42 forks source link

Install issues for Snow Leopard 10.6.2 #43

Closed spletta closed 14 years ago

spletta commented 14 years ago

Hi, I'm finally breaking down and submitting a ticket. I can't get the Passenger PrefsPane to install correctly on Snow Leopard 10.6.2. After I double click the PrefrencesPane icon to install and give my password.. I get an Apple Prefrences Pane error Warning. "Could not load Passenger preference pane." The only thing that pops up in the Console utility is:

3/24/10 10:47:25 AM System Preferences[3294] NSPrefPaneBundle instantiatePrefPaneObject: principalClass is nil. 3/24/10 10:47:25 AM [0x0-0x12b12b].com.apple.systempreferences 2010-03-24 10:47:25.313 System Preferences[3294:903] NSPrefPaneBundle instantiatePrefPaneObject: principalClass is nil.

If I need to provide more info let me know.. thanks in advance Remington

alloy commented 14 years ago

Are you using the default Apple supplied Ruby and RubyCocoa? Or did you install any of these yourself?

spletta commented 14 years ago

http://www.robbyonrails.com/articles/2010/02/08/installing-ruby-on-rails-passenger-postgresql-mysql-oh-my-zsh-on-snow-leopard-fourth-edition?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed%3A+RobbyOnRails+%28Robby+on+Rails%29

Ruby Cocoa I re-installed today with the dmg from the website.

$ ruby -v ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10]

$ which ruby /opt/local/bin/ruby

Does that help?

spletta commented 14 years ago

sorry it cut off my message.. before the link I wrote.

I reinstalled ruby from scratch following (link above now) this post.

alloy commented 14 years ago

In this article the system Ruby is moved away, this is not a ‘good’ way of doing things and one that we can’t support. The rule of thumb is that the user does not touch anything in /usr. The right way to do this is move your prefix (/opt/local) before /usr in your $PATH.

Also, another problem with these custom setups vs something expected (Apple's default setup) is that version differences can creep in way to easily. For instance, the Ruby version that Robby has installed is 1.8.7 patchlevel 249, yours however is patchlevel 174. And Maybe there are differences in the rb-cocoa port as well, but I don't know that.

So I suggest making the Apple Ruby work again, check if the pane works, then adjust your personal user's $PATH to use your custom Ruby for your own apps.

HTH.

alloy commented 14 years ago

Thanks for pointing me to the article btw, I’ve left a comment explaining the same issue. And asked for a motivation :)

http://www.robbyonrails.com/articles/2010/02/08/installing-ruby-on-rails-passenger-postgresql-mysql-oh-my-zsh-on-snow-leopard-fourth-edition#comment-34041

spletta commented 14 years ago

yeah of course... and thanks the for advice.. I'll try and cleans things up locally then try again.

alloy commented 14 years ago

Thanks, please do let me know how it worked out.

spletta commented 14 years ago

So.. I'm back and I have some questions. Actually just one.. whats the best way going about cleaning up the ruby installs on my Dev machine (Snow Leopard)?

spletta commented 14 years ago

should I show the results of

$ sudo find /* -name ruby

?

alloy commented 14 years ago

Maybe looking for the irb/erb command line tools is more helpful? If you want to have a pristine OS X ruby installation again, I guess doing an ‘archive and install’ of OS X would be the best option.

HTH

spletta commented 14 years ago

yeah.. I think I'll wait on the archive and install for my next mac (6 months).. what about upgrading to ruby 1.9?

$ sudo find /* -name irb Password: /Applications/eclipse/plugins/org.jruby_1.2.0.9419p2/lib/ruby/1.8/irb /Applications/NetBeans/NetBeans 6.7.1.app/Contents/Resources/NetBeans/ruby2/jruby-1.2.0/lib/ruby/1.8/irb /Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/irb /Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/irb /Library/Frameworks/MacRuby.framework/Versions/0.5/usr/lib/ruby/1.9.0/irb /Users/fanboy/.rvm/src/ruby-1.9.2-preview1/bin/irb /Users/fanboy/.rvm/src/ruby-1.9.2-preview1/doc/irb /Users/fanboy/.rvm/src/ruby-1.9.2-preview1/lib/irb find: /dev/fd/3: Not a directory find: /dev/fd/4: Not a directory /opt/local/bin/irb /opt/local/lib/ruby/1.8/irb /opt/local/var/macports/software/ruby/1.8.7-p174_0+darwin+thread_hooks/opt/local/bin/irb /opt/local/var/macports/software/ruby/1.8.7-p174_0+darwin+thread_hooks/opt/local/lib/ruby/1.8/irb

I think I'll be using Time Machine more often after this : |

alloy commented 14 years ago

I wouldn't install Ruby 1.9 in /usr if that’s what you mean. Don't you have the original files anymore? In the article of Robby, he renames them. Eg: /usr/bin/ruby.orig If you do have them, then I guess renaming them back should be enough.

spletta commented 14 years ago

No. You're right about archiving and re-installing. I'm going to try using passenger without the Pane in the mean time. Thanks for your help!