Ruby 1.8.6 on Mac
-
a couple of weeks ago I changed the ruby Sketchup to use my system ruby
as I'm still on OSX 10.5.8 that means it's now 1.8.6. reported in SU Ruby Console
the reason for this post is to report that nearly everything appears to work the same.
the main difference and a slight problem is it changes permissions of Sketchup and I can no longer do some things as a User or root.
the main one is my bugsplat bailout [ killall Sketchup ] which I use in a couple of tools
now even when tried in Terminal I get No matching processes belonging to you were found
any one know why? and/or how to get permissions back but keep system ruby...
john
-
I hope you installed the 287 patch level of 1.8.6 (at least.)
Where did you install the 1.8.6 Ruby dirs..
.. in the System path ?
.. in the User path ?
.. or beneath the Sketchup application dirs? ie:
/Applications/Google/SketchUp 8/SketchUP.app/Contents/Ruby.framework/Versions/X
(where X would be another version letter.)My "feeling" is that you/users should be able to have a custom version(s) of Ruby, for use only with Sketchup, that would not interfer with whatever "system" Ruby you wanted to have for other uses external to Sketchup.
That would likely mean, having them beneath the Sketchup application dirs. (I did this on Windows.) -
hi Dan,
I failed at pointing to a separate 'user' version in the past, so this time (following the Stackoverflow code) I pointed to system and with a little tweaking it worked,
so currently I've got
1.8.6 (2009-06-08 patchlevel 369) [universal-darwin9.0]
I think, using the same method, I could now re-point it to usr/local/bin/ruby which is
ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin9.7.0]
I think that's what others are using, so I'll probably try it and it should return permissions back to me as well.
cheers
john
-
The original SU Ruby is installed under the application, which is on the System path, and so would be available to all users?
Would you need to install the "new" Ruby.. and change the symbolic links when logged on as 'root' instead of logging on as 'John' ?
-
And the next step.. when you get it working is to make up a how to guide for others.
Maybe a shell script to automate the task?
It would be nice to have a script that could reset the symbolic links back to OEM default.
-
@dan rathbun said:
The original SU Ruby is installed under the application, which is on the System path, and so would be available to all users?
Would you need to install the "new" Ruby.. and change the symbolic links when logged on as 'root' instead of logging on as 'John' ?
when using the system ruby, logging in as root still doesn't allow the 'killall', I guess system is protecting it's ruby.
I believe usr/local/ is any user as there's also Users/ for private stuff, but I need an arch- i386 version of 1.8.7 before i can try that,
In the meanwhile I made 2 new folders in SU 'contents' folder called su_Ruby.framework and su_modRuby.framework and by switching the original and the system version in and out of there I can easily change between versions (and that could be automated)
so for now I can have 'killall' back when I'm expecting to need it.
john
-
I changed two linkes to get the os x 10.6 bundled ruby 1.8.7 (patchlevel 174)
Also for me everything seems to work.
cd /Applications/Google SketchUp 8/SketchUp.app/Contents/Frameworks/Ruby.framework/Versions/A mv Resources Resources.back mv Ruby Ruby.back ln -s /System/Library/Frameworks/Ruby.framework/Versions/Current/Resources Resources ln -s /System/Library/Frameworks/Ruby.framework/Versions/Current/Ruby Ruby
to change back:
cd /Applications/Google SketchUp 8/SketchUp.app/Contents/Frameworks/Ruby.framework/Versions/A rm Resources rm Ruby mv Resources.back Resources mv Ruby.back Ruby
Advertisement