Skip to content
This repository has been archived by the owner on Aug 10, 2022. It is now read-only.

Doesn't work with ruby 1.9 #18

Closed
adamsalter opened this issue Sep 21, 2009 · 4 comments
Closed

Doesn't work with ruby 1.9 #18

adamsalter opened this issue Sep 21, 2009 · 4 comments

Comments

@adamsalter
Copy link

Passenger prefpane doesn't work with ruby1.9 installed.

Kind of hard to give a way for you to test this, but:

  • install ruby1.9 with MacPorts
  • set ruby1.9 as the default (change the /usr/bin/ruby etc. to point to /opt/local/bin/ruby1.9 version)
  • install ruby compliled passenger and passenger module.
  • restart apache.

Everything works as before, but passenger prefpane gives errors about not being able to save, and doesn't save any changes.

Thanks for a great prefpane,

@alloy
Copy link
Contributor

alloy commented Sep 21, 2009

You shouldn't touch /usr/bin, stuff like the pane that may depend on it will break.

It would still be fairly easy to fix this in the pref pane, but like I said, you shouldn't be changing anything that comes with the system in /usr/bin in the first place.

If you want to use a different Ruby yourself, then simply make sure that that Ruby is in front of /usr/bin in your PATH.

PS: If some blog post advised to do install Ruby 1.9 this way, please tell them to not do that.

Thanks

@alloy
Copy link
Contributor

alloy commented Sep 21, 2009

I should add, if you do really want this to work this way, make sure the config_installer.rb and config_uninstaller.rb are being executed by the right Ruby. I suspect that is the problem, check the logs in Console.app for more info.

Cheers

@adamsalter
Copy link
Author

NVM...

That works... Umm re-symlinking /usr/bin/ruby was my solution after many different configurations... the default /usr/bin/ruby* files are only symlinks anyway.

I've also encountered trouble with the /usr/bin/rails and using ruby1.9 since it uses /usr/bin/env ruby... Anyway, thanks. ;)

@alloy
Copy link
Contributor

alloy commented Sep 22, 2009

Well, I guess I could change the passenger pane to use the actual bin in /System instead of /usr/bin. I'll open a new ticket for that. Thanks for the discussion :)

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants