sketchucation logo sketchucation
    • Login
    🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    Ruby 1.8.6 on Mac

    Scheduled Pinned Locked Moved Developers' Forum
    7 Posts 3 Posters 694 Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D Offline
      driven
      last edited by

      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

      learn from the mistakes of others, you may not live long enough to make them all yourself...

      1 Reply Last reply Reply Quote 0
      • Dan RathbunD Offline
        Dan Rathbun
        last edited by

        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.)

        I'm not here much anymore.

        1 Reply Last reply Reply Quote 0
        • D Offline
          driven
          last edited by

          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

          learn from the mistakes of others, you may not live long enough to make them all yourself...

          1 Reply Last reply Reply Quote 0
          • Dan RathbunD Offline
            Dan Rathbun
            last edited by

            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' ?

            I'm not here much anymore.

            1 Reply Last reply Reply Quote 0
            • Dan RathbunD Offline
              Dan Rathbun
              last edited by

              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.

              I'm not here much anymore.

              1 Reply Last reply Reply Quote 0
              • D Offline
                driven
                last edited by

                @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

                learn from the mistakes of others, you may not live long enough to make them all yourself...

                1 Reply Last reply Reply Quote 0
                • M Offline
                  mberger
                  last edited by

                  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
                  
                  
                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post
                  Buy SketchPlus
                  Buy SUbD
                  Buy WrapR
                  Buy eBook
                  Buy Modelur
                  Buy Vertex Tools
                  Buy SketchCuisine
                  Buy FormFonts

                  Advertisement